IM 6.6.3-0 : error message using convert & GIF file

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
elendil

IM 6.6.3-0 : error message using convert & GIF file

Post by elendil »

Hello,

i have a bug using IM 6.6.3-0 (linux Fedora 13) on a GIF file, here is what the command return :

Code: Select all

# convert sample.gif sample.jpg
convert: no decode delegate for this image format `sample.gif' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `sample.jpg' @ error/convert.c/ConvertImageCommand/2970.
The same command with a IM 6.4.2 on the same GIF file works fine and produce a JPG file.

Here is the configure command output :

Code: Select all

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=no             no
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB             --with-bzlib=yes              no
Autotrace         --with-autotrace=no           no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes         yes
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (unknown)
Ghostscript fonts --with-gs-font-dir=default    none
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                no
LCMS v1           --with-lcms=yes               no
LCMS v2           --with-lcms2=yes              no
LQR               --with-lqr=yes                no
Magick++          --with-magick-plus-plus=yes   no (failed tests)
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=no                no
PNG               --with-png=yes                yes
RSVG              --with-rsvg=yes               no
TIFF              --with-tiff=yes               no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                no
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.6.3
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -fopenmp -g -O2 -Wall -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         =
  MAGICK_LDFLAGS  = -L/usr/local/lib
  LIBS            = -lMagickCore -lfreetype -ljpeg -lpng -lfontconfig -lXext -lX11 -lxml2 -lz -lm -lgomp -lpthread
  CXX             = g++
  CXXFLAGS        = -pthread
but when i list the supported formats once the IM 6.6.3-0 install is completed

Code: Select all

# identify -list format | grep JPEG
will only print

Code: Select all

           see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
while i got this on the IM 6.4.2

Code: Select all

                 see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
           and supplement 61 which adds JPEG-2000 encoding.
      JNG* PNG       rw-   JPEG Network Graphics
      JPEG* JPEG      rw-   Joint Photographic Experts Group JFIF format (62)
      JPG* JPEG      rw-   Joint Photographic Experts Group JFIF format
    PJPEG* JPEG      rw-   Progessive Joint Photographic Experts Group JFIF
So even though the configure command tell me that the jpeg support is enabled (--with-jpeg=yes => yes) and though i installed the libjpeg as mentionned in the Install-unix.txt file, the jpeg does not seem to be supported (or may i have forgotten some thing ?).

One more thing is that if i open the file sample.gif file with Paint.net and do "save as" to another GIF file, this time the new file coming from Paint.net can be converted with IM 6.6.3...

Any idea greatly appreciated :)

Thanks !
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: IM 6.6.3-0 : error message using convert & GIF file

Post by fmw42 »

sounds like a corrupt gif. try posting a link to the forum and let others examine it.
elendil

Re: IM 6.6.3-0 : error message using convert & GIF file

Post by elendil »

Hi,

thanks for the response, here is a direct link to the image :
Image.

I forgot to mention that both install of IM, 6.6.3 that cannot convert the file and 6.4.2 that can, are installed on 2 distinct servers. The first in installed on a fedora 13 and the second on a CentOs.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: IM 6.6.3-0 : error message using convert & GIF file

Post by Drarakel »

elendil wrote:i have a bug using IM 6.6.3-0 (linux Fedora 13) on a GIF file
That is a JPG file. So, you have the wrong file ending.
(On my system with IM v6.6.3-9 Q16 on Windows XP, your file can be decoded/converted even with the wrong file ending - but the behaviour in such a situation seems to be different on some IM installations.)
elendil

Re: IM 6.6.3-0 : error message using convert & GIF file

Post by elendil »

ok, i'm a little bit confused :? i should have checked files at least

I installed IM 6.6.3-9 and everything is running well now

thanks for the response !
Post Reply