-
2007.12.08 14:56 "Re: [Tiff] dpi settings", by Bob Friesenhahn
- 2007.12.08 18:34 "Re: [Tiff] dpi settings", by Ron Croonenberg
-
2007.12.09 03:02 "Re: [Tiff] dpi settings", by Graeme Gill
-
2007.12.09 14:05 "Re: [Tiff] dpi settings", by Toby Thain
-
2007.12.09 14:44 "Re: [Tiff] dpi settings", by Graeme Gill
- 2007.12.09 15:03 "Re: [Tiff] dpi settings", by Toby Thain
- 2007.12.09 15:58 "Re: [Tiff] dpi settings", by Bob Friesenhahn
-
2007.12.09 14:44 "Re: [Tiff] dpi settings", by Graeme Gill
-
2007.12.09 14:05 "Re: [Tiff] dpi settings", by Toby Thain
2007.12.08 18:34 "Re: [Tiff] dpi settings", by Ron Croonenberg
Hi 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
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.
--
=================================================================
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 |
=================================================================