writeImage sets resolution to integers

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
atomicplayboy

writeImage sets resolution to integers

Post by atomicplayboy »

I have a problem with writeImage. I use setImageResolution to set the "pint size" as exact as possible and it works fine (getImageResolution shows the x and y resolution as floats). But when I use writeImage and yet again check the x&y resolution it shows as integers.

ex.
I have an image I want to be as close to 60 x 80 cm as possible for printing.
If I set the resolution to 105,495 dpi, it becomes 60 x 80,01 cm for printing (close enough).
After I use writeImage, it gets 105 dpi and is 60,28 x 80,38 cm (not close enough).


Any ideas?
Post Reply