2009.07.02 12:03 "[Tiff] (no subject)", by Alejandro Herrero

2009.07.02 18:18 "Re: [Tiff] (no subject)", by Bob Friesenhahn

We are not able to correctly define the XRESOLUTION and YRESOLUTUON properties when generating a TIFF image. The values seem to be correctly established and the compilation and execution are right so that the image is correctly generated. But when checking the DPI values, they are incorrect. We attach the section of the code implied:

*float xres, yres;
> xres = 300.0;
> yres = 200.0;
> TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
> TIFFSetField(out, TIFFTAG_XRESOLUTION, xres);
> TIFFSetField(out, TIFFTAG_YRESOLUTION, yres);

Is there really supposed to be a '*' in front of 'float xres, yres'?

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