after trying for 2 hrs I think it would be better to come here for help. Here is the description, thank you in advance for any hints.
WHAT I WANT: to resample A 300ppi jpg Image to 72 ppi
WHAT I GET: a resampled jpg image with a resolution of "300 x 72 ppi"
Code: Select all
$pathRetinaImage ='retinaimage.jpg'; $image = new Imagick(); $image->readImage($pathRetinaImage); $image->resampleImage( 72, 72, imagick::FILTER_UNDEFINED,0); $image->writeImage($upload_path.$standardFilename);
I also have had tried following codes:
And with all possible combinations, it didn't change anything.
Thank you very much for any hints.