AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.06.25 12:51 "RE: Pb with TIFFWriteScanline", by Rainer Wiesenfarth
2003.06.25 12:18 "Pb with TIFFWriteScanline", by Marine Martin-Guillerez
2003.08.18 05:44 "[Tiff] Crashes", by Javier Kohen
2003.08.18 06:28 "[Tiff] Crashes", by Andrey Kiselev
2003.08.18 07:20 "[Tiff] Crashes", by Javier Kohen

2003.06.25 12:51 "RE: Pb with TIFFWriteScanline", by Rainer Wiesenfarth

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

From: Marine Martin-Guillerez [mailto:marine.mg@wanadoo.fr] > For writing an image TIFF i use the following code:

> (...)

>     TIFFSetField (ImageDst, TIFFTAG_COMPRESSION, Compress);
>     TIFFSetField (ImageDst, TIFFTAG_PLANARCONFIG, PlanarConf);
>     TIFFWriteDirectory (ImageDst);

Here's the problem: do not call TIFFWriteDirectory() explicitely, as it writes out the current directory and starts a new one. Commenting out this line should solve your problem.

>     // Ecriture
>     for (y = 0; y < FileHeight; y ++)
>      TIFFWriteScanline (ImageDst, BufImage, y);

> (...)

- -- Smaragdweg 1                  Phone : +49 711 22881-10
- -- 70174 Stuttgart               Fax   : +49 711 22881-11
- -- Germany                       URL   : http://www.inpho.de

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPvmaylAwQIMgoAFnEQJicwCeIHqmSbXrsZYiSOH4Iog3CE8m8Y4An3HG W8X2Zxc9X50qzVGkXcH8/imw

=EcwI
-----END PGP SIGNATURE-----