| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2007.12.08 18:34 "Re: dpi settings", by Ron CroonenbergHi Bob, thanks. No I am not doing that from the command line. I have a few functions in a c program that creates images from simulations. So basically this would set my image to 600dpi, both directions: TIFFSetField(tiff, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH); TIFFSetField(tif, TIFFTAG_XRESOLUTION, 600); TIFFSetField(tif, TIFFTAG_YRESOLUTION, 600); thanks, Ron Bob Friesenhahn wrote: > 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/ > -- ================================================================= Ron Croonenberg | | Phone: 1 765 658 4761 Lab Instructor & | Fax: 1 765 658 4732 Technology Coordinator | | Department of Computer Science | e-mail: ronc@DePauw.edu DePauw University | 275 Julian Science & Math Center | 602 South College Ave. | Greencastle, IN 46135 | ================================================================= |
|||||||