Page 1 of 1

Problems converting gif to tif and jpg to tif on Linux Suse8

Posted: 2008-05-08T11:35:33-07:00
by hastingsr
I'm running on a Linux Suse8 system with Ghostscript 8.6.2 and ImageMagick 6.4.0-9.
Everything works except I cannot convert gif to tif or jpg to tif. The same files convert fine on my windows system.

GIF to TIF:

convert Peppers_closeup.gif peppers.tif
convert: ../libtiff/tif_predict.c:476: TIFFPredictorCleanup: Assertion `sp != 0' failed.


I compiled the components on my Linux systems and I see a few errors in config.log regarding
tif. Is there something I am missing? A library perhaps?

From config.log:

configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/ccWWLAoy.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:210: undefined reference to `TIFFGetConfiguredCODECs'
collect2: ld returned 1 exit status

configure:39597: result: no
configure:39512: checking for TIFFMergeFieldInfo
configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/ccaB1gYK.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:210: undefined reference to `TIFFMergeFieldInfo'
configure:39597: result: no
configure:39512: checking for TIFFReadEXIFDirectory
configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/cc8ErfEZ.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:210: undefined reference to `TIFFReadEXIFDirectory'
collect2: ld returned 1 exit status
configure:39597: result: no
configure:39512: checking for TIFFSetErrorHandlerExt
configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/ccmsKrat.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:210: undefined reference to `TIFFSetErrorHandlerExt'
configure:39512: checking for TIFFSetWarningHandlerExt
configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/ccamr1eX.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:211: undefined reference to `TIFFSetWarningHandlerExt'
collect2: ld returned 1 exit status
configure:39597: result: no
configure:39512: checking for TIFFSwabArrayOfTriples
configure:39568: gcc -o conftest -g -O2 -Wall -W -pthread -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -L/usr/X11R6/lib -lfreetype conftest.c -ltiff -llcms -ljpeg -lpng -lfreetype -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm -ldl -lpthread >&5
/tmp/ccMP2pw4.o: In function `main':
/usr/local/ImageMagick-6.4.0/conftest.c:211: undefined reference to `TIFFSwabArrayOfTriples'
collect2: ld returned 1 exit status

Re: Problems converting gif to tif and jpg to tif on Linux Suse8

Posted: 2008-05-08T11:43:43-07:00
by magick
Seems to be a problem with your TIFF delegate library. In the mean-time try this:
  • convert Peppers_closeup.gif -compress none peppers.tif

Re: Problems converting gif to tif and jpg to tif on Linux Suse8

Posted: 2008-05-08T12:18:06-07:00
by hastingsr
That worked for both gif to tif and jpg to tif. What does the "-compress none" option do
or not do?

Also, what would cause the problem in the delegate library? Do I need to rebuild with some
options on or off?

Re: Problems converting gif to tif and jpg to tif on Linux Suse8

Posted: 2008-05-08T13:13:46-07:00
by magick
Notice how the error is in TIFF, not ImageMagick:
  • convert: ../libtiff/tif_predict.c:476: TIFFPredictorCleanup: Assertion `sp != 0' failed.
Looks like a problem with zip compression in the TIFF library. Can you upgrade that library? If not, don't use zip compression when creating TIFF image files.

Re: Problems converting gif to tif and jpg to tif on Linux Suse8

Posted: 2008-05-08T13:44:20-07:00
by hastingsr
Thanks!

This resolves the problem for me. We are using libtiff.so.3.5.7. I'll see what I can find. Is
there a recommended version of libtiff?

Also, from your post, I'm assuming that the zip compression is the default for tiff images.