Page 1 of 1

How to change an image dpi

Posted: 2007-02-20T05:36:46-07:00
by Senthilnathanns
Hi All,

I'm using image magick 6.3.0 library with php. I need to change an image dpi using imagick_setdpi to change the image dpi from 600dpi to 300dpi. This changes should be done before resize and i put echo for imagick_getdpix and imagick_getdpiy. Both comes 300dpi but the image resized and stored using imagick_write.

But the resized image dpi not set to 300dpi and remains the original image dpi(600dpi). How can i change the image dpi using image magick library. Please anyone help me to sort out the problem.

Thanks.