Page 1 of 1

jpg to bmp

Posted: 2015-11-23T09:36:02-07:00
by shcsbaker
I'm using convert.exe to convert my jpg into a bmp with the following command:
convert 1.jpg 1.bmp

This works, however I have a custom application that can't read the new bmp file. I open the bmp in Windows Paint, click save and close paint. After doing this, my application can read the file. Is there something I'm missing in the imageMagik that would fix this?

Thanks
Kevin

Re: jpg to bmp

Posted: 2015-11-23T10:49:52-07:00
by Bonzo
This may help:
bmp:format=value
valid values are bmp2, bmp3, and bmp4. This option can be useful when the method of prepending "BMP2:" to the output filename is inconvenient or is not available, such as when using the mogrify utility.

Re: jpg to bmp

Posted: 2015-11-23T11:07:22-07:00
by fmw42
As bonzo suggests, your other tool needs an older bmp format. So try

Code: Select all

convert 1.jpg BMP3:1.bmp
or

Code: Select all

convert 1.jpg BMP2:1.bmp

see http://www.imagemagick.org/Usage/formats/#bmp

Re: jpg to bmp

Posted: 2015-11-23T11:21:09-07:00
by shcsbaker
Awesome! Thanks guys, ended up being BMP3

THanks again!!!