Re: Is it a bug when convert *.bmp -colorspace Gray *.bmp ?
Posted: 2008-01-26T16:03:14-07:00
I believe that all images created or converted within IM will actually have 3 channels, even if they are all the same grayscale channel. Thus the filesize will not change as you still have 3 channels and not one channel.
The commands
convert <inflle> -colorspace Gray <outfile>
and
convert <infile> -type Grayscale <outfile>
will still create a 3-channel image, but all 3 channels will be the same grayscale image.
I don't know of any way to save a single channel image within IM. If you import a single channel image into IM, as soon as you process it, it will become 3 channels.
Someone else may be able to correct me on this, if I am wrong.
The commands
convert <inflle> -colorspace Gray <outfile>
and
convert <infile> -type Grayscale <outfile>
will still create a 3-channel image, but all 3 channels will be the same grayscale image.
I don't know of any way to save a single channel image within IM. If you import a single channel image into IM, as soon as you process it, it will become 3 channels.
Someone else may be able to correct me on this, if I am wrong.