2007.12.08 05:51 "[Tiff] dpi settings", by Ron Croonenberg

2007.12.08 14:56 "Re: [Tiff] dpi settings", by Bob Friesenhahn

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/