2006.09.27 10:01 "[Tiff] help", by Robert Scheck

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.