AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.09.14 13:50 "Removing reduced resolution pages", by Han The Man
2004.09.15 10:10 "Re: Removing reduced resolution pages", by Gerben Vos
2004.09.15 15:17 "Re: Removing reduced resolution pages", by Han The Man
2004.09.15 17:51 "Re: Removing reduced resolution pages", by Andrey Kiselev
2004.09.15 23:00 "Re: Removing reduced resolution pages", by Frank Warmerdam
2004.09.15 23:24 "Re: Removing reduced resolution pages", by Han The Man

2004.09.15 10:10 "Re: Removing reduced resolution pages", by Gerben Vos

Han The Man wrote:

> 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.

Alternatively, take the tiffcp source code and tweak it to do what you want.
Or write your own code; that isn't too hard if you know that all your TIFFs
are tiled or not. tiffcp already knows how to take care of both strips and
tiles and conversion between the two formats, which is the main reason I find
tiffcp a bit hard to read.

					Gerben Vos.