Page 1 of 1

"Insufficient image data" error with a couple of BMPs

Posted: 2018-11-15T19:14:43-07:00
by Dinkleberg
They're probably badly made BMPs, but hey, other programs can process them, why can't Imagemagick?

Code: Select all

$ identify -version
Version: ImageMagick 6.9.10-11 Q16 x86_64 2018-09-08 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): autotrace bzlib cairo fftw fontconfig fpx freetype gslib jbig jng jp2 jpeg lcms lzma pangocairo png ps rsvg tiff webp x xml zlib
$ identify rudolf_weapon.bmp
identify: insufficient image data in file `rudolf_weapon.bmp' @ error/bmp.c/ReadBMPImage/970.
$ identify henry_wind.bmp
identify: insufficient image data in file `henry_wind.bmp' @ error/bmp.c/ReadBMPImage/970.
$ identify jan_chaseh.bmp
identify: insufficient image data in file `jan_chaseh.bmp' @ error/bmp.c/ReadBMPImage/970.
Files here: https://my.mixtape.moe/bxoyta.zip

Re: "Insufficient image data" error with a couple of BMPs

Posted: 2018-11-15T20:36:24-07:00
by fmw42
I get the same message with IM 6.9.10.14 Q16 Mac OSX. I can open them with Mac Preview, GraphicConverter and Photoshop.

I even tried prefacing with BMP: BMP3: and BMP2:, but that did not work, either.

Re: "Insufficient image data" error with a couple of BMPs

Posted: 2018-11-15T23:32:48-07:00
by dlemstra
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.