mogrify: insufficient image data in file `ScreenShot00021.bm

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
sockster
Posts: 6
Joined: 2011-11-07T20:59:48-07:00
Authentication code: 8675308

mogrify: insufficient image data in file `ScreenShot00021.bm

Post by sockster »

trying to convert bmp to png, but getting this error:

Code: Select all

mogrify -format png *.bmp
mogrify: length and filesize do not match `ScreenShot00021.bmp' @ error/bmp.c/ReadBMPImage/785.
mogrify: insufficient image data in file `ScreenShot00021.bmp' @ error/bmp.c/ReadBMPImage/914.

here is the bmp file:

http://www.mediafire.com/?ge75ov21jskpzm5
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify: insufficient image data in file `ScreenShot0002

Post by fmw42 »

I downloaded your file and IM says it is malformed and will not process it. Also please in the future identify your IM version and platform.


identify -verbose 1ScreenShot00021.bmp
identify: length and filesize do not match `1ScreenShot00021.bmp' @ error/bmp.c/ReadBMPImage/799.
identify: insufficient image data in file `1ScreenShot00021.bmp' @ error/bmp.c/ReadBMPImage/930.
sockster
Posts: 6
Joined: 2011-11-07T20:59:48-07:00
Authentication code: 8675308

Re: mogrify: insufficient image data in file `ScreenShot0002

Post by sockster »

can't I convert by ignoring errors?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: mogrify: insufficient image data in file `ScreenShot0002

Post by magick »

ImageMagick's policy is to reject malformed image files to prevent possible security attacks such as denial-of-service or memory buffer overflows, etc.
sockster
Posts: 6
Joined: 2011-11-07T20:59:48-07:00
Authentication code: 8675308

Re: mogrify: insufficient image data in file `ScreenShot0002

Post by sockster »

I found a way to do it with GIMP batch

431 files from 1.2GB to 338.2MB
Post Reply