keep 8-bit depth grayscale colorspace for output BMP
Posted: 2007-12-30T19:54:52-07:00
I just started using imagemagick.
With command-line "convert" utility, I am trying to append two images together and have the output file be in the same format as the input images.
My two input images are grayscale (8-bit) BMP images.
(They are 320x480 pixels each, so that's exactly the number of bytes that is contained in the data).
If I do
convert <first_image> <second_image> -color 256 <output_file>, I get an image that's somehow only 144KB (instead of the expected 302KB), while the image properties (in windows) state that it is a "32-bit" image.
If I use identify for my input images I get:
...1.bmp BMP 320x480 320x480+0+0 PseudoClass 256c 8-bit 151.053kb
I don't know what is "PseudoClass", but how do I get my output image to be that type as well?
Thanks,
a1
With command-line "convert" utility, I am trying to append two images together and have the output file be in the same format as the input images.
My two input images are grayscale (8-bit) BMP images.
(They are 320x480 pixels each, so that's exactly the number of bytes that is contained in the data).
If I do
convert <first_image> <second_image> -color 256 <output_file>, I get an image that's somehow only 144KB (instead of the expected 302KB), while the image properties (in windows) state that it is a "32-bit" image.
If I use identify for my input images I get:
...1.bmp BMP 320x480 320x480+0+0 PseudoClass 256c 8-bit 151.053kb
I don't know what is "PseudoClass", but how do I get my output image to be that type as well?
Thanks,
a1