TIFF and LibTiff Mail List Archive


2004.09.02 00:16 "[Tiff] bug in Make scripts (tiff2pdf)", by Michael Strecke
2004.09.02 16:27 "Re: [Tiff] bug in Make scripts (tiff2pdf)", by Ross A. Finlayson
2004.09.02 19:46 "Re: [Tiff] bug in Make scripts (tiff2pdf)", by Andrey Kiselev

2004.09.02 00:16 "[Tiff] bug in Make scripts (tiff2pdf)", by Michael Strecke


it took me the better part of this evening to (re-)find a bug in the Makescript of libtiff-util. I then remembered that I found the same one some time ago, and I am quite sure that I have reported it.

And as your bugzilla is down again, I have no way to check :-)

I use Debian Sarge with xsane as scan utility. Xsane produces TIFF with JPEG encoding.

I wanted to convert these TIFFs to PDF using "tiff2pdf -j ...." but I always got a warning that "libtiff had to be compilied with the jpeg option".

tiff2pdf.c uses some defines (in this case JPEG_SUPPORT) that are set when compiling the libtiff branch, but not during the compilation of the "tools" branch.

/usr/bin/gcc -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT   -c -o tif_fax3sm.o tif_fax3sm.c
/usr/bin/gcc -c -g -O -I. -I../../libtiff -DJPEG_SUPPORT -DZIP_SUPPORT
-DPIXARLOG_SUPPORT ../../libtiff/tif_getimage.c
make[1]: Entering directory `/usr/src/tiff-3.6.1/tools'
/usr/bin/gcc -c -I../libtiff -I../libtiff -g -O -I. -I../tools
-I../libtiff ../tools/fax2tiff.c
/usr/bin/gcc -o fax2tiff -g -O -I. -I../tools -I../libtiff fax2tiff.o
../libtiff/ -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/fax2ps.c
/usr/bin/gcc -o fax2ps -g -O -I. -I../tools -I../libtiff fax2ps.o
../libtiff/ -L../../src/jpeg-6b -ljpeg -L../../zlib -lz
/usr/bin/gcc -c -g -O -I. -I../tools -I../libtiff ../tools/gif2tiff.c

As a quick fix I put a !#define JPEG_SUPPORT 1" into tiff2pdf.c and got the functionality I wanted.

Kind regards