Page 1 of 1

mogrify: insufficient image data in file `ScreenShot00021.bm

Posted: 2012-08-08T16:07:28-07:00
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

Re: mogrify: insufficient image data in file `ScreenShot0002

Posted: 2012-08-08T19:15:11-07:00
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.

Re: mogrify: insufficient image data in file `ScreenShot0002

Posted: 2012-08-09T02:47:59-07:00
by sockster
can't I convert by ignoring errors?

Re: mogrify: insufficient image data in file `ScreenShot0002

Posted: 2012-08-09T04:17:19-07:00
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.

Re: mogrify: insufficient image data in file `ScreenShot0002

Posted: 2012-08-09T06:15:18-07:00
by sockster
I found a way to do it with GIMP batch

431 files from 1.2GB to 338.2MB