Page 1 of 1

convert 24bit jpg to 8bit bmp

Posted: 2011-11-03T09:37:38-07:00
by timkelley66
I am trying to convert (using convert.exe) a jpg to a bmp file and change the color depth to 8 bits. Here are the commands I have tried:
Convert.exe 501021.jpg -depth 8 -resize 172x228! 501021.bmp
Convert.exe 501021.jpg -color 256 -resize 172x228! 501021.bmp
The new bmp file is still at 24bits.
Is there another option I need to be using?

IM 6.6.1-7 Q16

Re: convert 24bit jpg to 8bit bmp

Posted: 2011-11-03T10:34:30-07:00
by fmw42
The problem is that you need to resize before -colors 256 or -depth 8. The resizing will create new colors.