Page 1 of 1

jpg -> bmp convert bug?

Posted: 2007-07-24T20:07:07-07:00
by rjoyal
app name: convert
tested versions: 6.2.8 on Linux, 6.2.6 on Windows 2000, 6.3.5-3-Q16 on WinXP (downloaded today...)
bug: windows desktop wallpaper selector doesn't see the converted files as valid

I have lots jpegs that I'm converting to bmps for use as windows wallpapers. I have 4 jpegs that convert ok, I can open them in paint, xnview, anything but the windows desktop wallpaper selector.

the command line I'm using is
convert file.jpg file.bmp

When I open the affected bmp in a hex editor, at offset 14 is a value of 124 decimal instead of 40.
Changing this fixes it.

I posted the original jpg at http://www.rollingviolation.com/pix/mis ... ck_bug.jpg

What's interesting is opening and resaving the jpg also fixes it, so I suspect there's something funky in the jpg that trips up the converter.

I don't have any windows C compilers, but I do have linux (Slackware) so I'm game to try patching the source if someone can help me through it. (some kind of debug mode to show where it's tripping up?)

Ray

Re: jpg -> bmp convert bug?

Posted: 2007-07-24T20:14:01-07:00
by magick
Try this command:
  • convert file.jpg bmp3:file.bmp

Re: jpg -> bmp convert bug?

Posted: 2007-07-24T20:46:31-07:00
by rjoyal
That worked.
Thanks a bunch!
(and fast response too!) :D

Any idea why it would only do this on 4 of 900+ jpegs?
What's interesting is they are pics originally taken by my buddy's camera and saved on a Mac... but I'm sure I resized and cropped them on my PC using either convert or xnview.