Re: set depth of bitmap image

Fred Weinhaus <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <p06240801c7ea417eff43@[192.168.1.2]>
>Newbie trying to set the pixel depth when creating a bitmap image 
>from raw 8-bit grayscale data (i.e. each byte is one pixel 0x00 - 
>0xff)
>
>  > convert -size 100x200 -depth 8 gray:rawdata image.bmp
>
>This gives me image.bmp with 24-bit depth. But how can I force .bmp 
>to be also only 8-bit?



try

convert -size 100x200 gray:rawdata -type palette image.bmp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.