Received: from mailgate010.isp.belgacom.be (mailgate010.isp.belgacom.be [195.238.6.3])
	by maildelivery015.isp.belgacom.be (Postfix) with ESMTP id 87DF14F80C1
	for <joris.at.lebbeke@skynet.be>; Sat,  8 Dec 2007 16:08:48 +0100 (CET)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 08 Dec 2007 16:08:47 +0100
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 lB8EunhM015568;
	Sat, 8 Dec 2007 09:57:40 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id lB8Eujv3015565
	for <tiff@lists.maptools.org>; Sat, 8 Dec 2007 09:56:46 -0500
Received: from freddy (freddy.simplesystems.org [65.66.246.65])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	lB8EuYkZ019487; Sat, 8 Dec 2007 08:56:34 -0600 (CST)
Date: Sat, 8 Dec 2007 08:56:34 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy
To: Ron Croonenberg <ronc@depauw.edu>
Subject: Re: [Tiff] dpi settings
In-Reply-To: <475A30CD.3010402@depauw.edu>
Message-ID: <Pine.SOC.4.64.0712080852340.2729@freddy>
References: <47447E82.4050600@pobox.com> <475A30CD.3010402@depauw.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: TIFF mailing list <tiff@lists.maptools.org>
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.0000291d
X-MSP-STORE: Sat, 08 Dec 2007 16:08:48 +0100
Status: RO

On Sat, 8 Dec 2007, Ron Croonenberg wrote:

> Hello,
>
> Is there a way to set the dpi settings for/in a tiff file ? (and if so
> how do I do set them ?)

Yes.  Use the TIFF tags TIFFTAG_RESOLUTIONUNIT, TIFFTAG_XRESOLUTION, 
and TIFFTAG_YRESOLUTION with the TIFFSetField() function.

TIFFTAG_RESOLUTIONUNIT supports the values RESUNIT_NONE, RESUNIT_INCH, 
or RESUNIT_CENTIMETER.

If you mean to do this from the command line, then see the 
documentation for the 'tiffset' utilitity.  This documentation even 
comes with an example for how to set the resolution.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

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