How to change an image dpi

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Senthilnathanns

How to change an image dpi

Post 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.
Post Reply