jpg to bmp

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
shcsbaker
Posts: 2
Joined: 2015-11-23T09:05:52-07:00
Authentication code: 1151

jpg to bmp

Post 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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: jpg to bmp

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: jpg to bmp

Post 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
shcsbaker
Posts: 2
Joined: 2015-11-23T09:05:52-07:00
Authentication code: 1151

Re: jpg to bmp

Post by shcsbaker »

Awesome! Thanks guys, ended up being BMP3

THanks again!!!
Post Reply