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

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

Hello,

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);
> *

Once the image is generated, the values for the properties are xResolution = 1 and yResolution = 0

Can you please give us any hint about what is wrong? Thanks in advance Best Regards,

Alex