AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.09.27 10:01 "[Tiff] help", by Robert Scheck
2006.09.26 14:22 "[Tiff] 2003.08.07 16:40 "Custom tags", by Andrey Kiselev", by Robert Scheck
2006.10.11 10:21 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Sebastian Boehmer
2006.10.12 13:01 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Anurag Singh
2006.10.12 13:41 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Sebastian_Böhmer
2006.10.13 05:16 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Anurag Singh
2006.10.14 12:58 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Anurag Singh
2006.10.16 19:35 "Re: [Tiff] Handling Of SubIFD in Libtiff Ver 3.8.3", by Sebastian Boehmer
2006.09.27 12:43 "Re: [Tiff] help", by Joris Van Damme
2006.09.27 13:26 "Re: [Tiff] help", by Gerben Vos
2006.09.27 13:47 "Re: [Tiff] help", by Joris Van Damme

2006.09.27 13:26 "Re: [Tiff] help", by Gerben Vos

I try to make a simple copy of 'in.tif'. It's a Jpg-In-Tiff File.

New style, luckily. Mentioning as soon as possible that you aren't using old-style JPEG-in-TIFF helps keep our blood pressure down. :-)

In the output file there are new tags:

  JPEGTables (347) UNDEFINED (7) 2000<00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 ...>

This TIFF is hopelessly corrupt. You should complain to whoever wrote it.

The code you wrote would indeed help in making this TIFF correct, for this specific TIFF only. If you ever want to try this code with other TIFFs, be careful with fixed-size buffers and be prepared for multi- strip images. But I hope you know that already.

Gerben Vos.