2004.09.14 13:50 "[Tiff] Removing reduced resolution pages", by Han The Man

2004.09.15 15:17 "Re: [Tiff] Removing reduced resolution pages", by Han The Man

I want to remove any pages in those TIFF files marked as reduced-resolution. So in essence, I want to replace the original file with a new file not having reduced-resolution pages.

Can I do that reliably using libtiff?

Absolutely.

You can use tiffcp to copy only some subimages, eg.:

        tiffcp in.tif,0,2 out.tif

To identify the subimages you want, write a shell script or batch file that parses the output of tiffinfo, maybe with a bit of perl or awk.

That's my second problem. How do I reliably idenity "reduced resolution" pages?

The tiffinfo returns a subtype of 0x03, but the standard says reduced resolution pages are 0x02.

Have I misunderstood or is this a bug in libtiff?