Reading animated gif -> 'invalid colormap index' error in version 7
Posted: 2017-07-27T12:51:05-07:00
Not certain if this is bug or not, but after upgrading to imagemagick version 7, attempting to read or resize many animated gifs result in an 'invalid colormap index' error. This is also happening when trying to open animated gifs with Magick::readImages when using Magick++. This happens on both Mac OS X and Ubuntu 14.04. If this is in fact correct and intended behavior, I would appreciate it greatly if somebody could indicate to me what in particular is wrong with the gif below.
Here's a sample file: https://www.dropbox.com/s/wlz7hdkbz430y44/test.gif?dl=0
The following works as expected:
The output: https://www.dropbox.com/s/sb3bfqwov09r5 ... 0.gif?dl=0
This part doesn't work:
Thank you for your time!
Here's a sample file: https://www.dropbox.com/s/wlz7hdkbz430y44/test.gif?dl=0
The following works as expected:
Code: Select all
$ convert --version
Version: ImageMagick 6.9.9-3 Q8 x86_64 2017-07-27 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib fontconfig freetype jng jpeg ltdl lzma png tiff xml zlib
$ convert test.gif -coalesce -resize x100 test_100.gif
This part doesn't work:
Code: Select all
$ convert -version
Version: ImageMagick 7.0.6-1 Q8 x86_64 2017-07-18 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib fftw fontconfig freetype jng jpeg ltdl lzma png tiff x xml zlib
$ convert test.gif -coalesce -resize x100 test_100_v7.gif
convert: invalid colormap index `test.gif' @ error/colormap-private.h/ConstrainColormapIndex/34.