2006.07.10 12:15 "[Tiff] How modify", by

2006.07.10 12:39 "Re: [Tiff] How modify", by

Joris:

    thanks for your reply.
    do u have a good idea for modifing tiff's XResolution and YResolution.

----- Original Message -----
From: "Joris" <joris.at.lebbeke@skynet.be>

To: "<hotmail>xiaotiger666" <xiaotiger666@hotmail.com>; "tiff" <tiff@lists.maptools.org> Sent: Monday, July 10, 2006 8:35 PM

Subject: Re: [Tiff] How modify

Robert Zhang wrote:

I have a large number of TIF images where XResolution are  204 and YResolution are 98.  Image Height = 1136 and Image Width =  1728.  Now ,How modify tiff  to  the resolution to 204x196 and  height is 2272 and width  is 1728 ???.

This is beyond the functionality of LibTiff. LibTiff is a codec, which means it is able to both decode and encode an TIFF file. That does not include resizing capabilities. So use LibTiff to decode the file to a raster or scanline stream or whatever, add resizing from your own hand or from another library, and use LibTiff again to encode the results to a new TIFF file.