Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas018.isp.belgacom.be (localhost [127.0.0.1])
        by inav015.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k6ACh184018874
        for <joris.at.lebbeke@skynet.be>; Mon, 10 Jul 2006 14:43:01 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.5.90])
        by inas018.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k6ACgp8I015353
        for <joris.at.lebbeke@skynet.be>; Mon, 10 Jul 2006 14:42:54 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx012.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k6ACge7G031388
        for <joris.at.lebbeke@skynet.be>; Mon, 10 Jul 2006 14:42:41 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k6ACYjuJ024848;
	Mon, 10 Jul 2006 08:34:51 -0400
Received: from outmx028.isp.belgacom.be (outmx028.isp.belgacom.be
	[195.238.5.49])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k6ACYiE2024845
	for <tiff@lists.maptools.org>; Mon, 10 Jul 2006 08:34:44 -0400
Received: from outmx028.isp.belgacom.be (localhost [127.0.0.1])
	by outmx028.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with ESMTP id k6ACYgrM013746
	for <tiff@lists.maptools.org>; Mon, 10 Jul 2006 14:34:42 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (12.185-246-81.adsl-dyn.isp.belgacom.be
	[81.246.185.12])
	by outmx028.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with SMTP id k6ACYeu6013708; Mon, 10 Jul 2006 14:34:40 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <004301c6a41d$5a2e2be0$0cb9f651@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "<hotmail>xiaotiger666" <xiaotiger666@hotmail.com>,
        "tiff" <tiff@lists.maptools.org>
References: <BAY103-DAV16CD92A616749307AB60248B6B0@phx.gbl>
Subject: Re: [Tiff] How modify
Date: Mon, 10 Jul 2006 14:35:38 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
Cc: 
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001852
X-MSP-STORE: Mon, 10 Jul 2006 14:43:09 +0200
Status:   

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.

Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
