note 106739 added to function.imagick-resampleimage

From: Date: Fri, 02 Dec 2011 20:14:06 +0000
Subject: note 106739 added to function.imagick-resampleimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-184865@lists.php.net to get a copy of this message
Lets say you want to reduce the resolution of uploaded images for the web. The following will load a image at whatever resolution and resample it down to 72 dpi and save as a different file. The dpi for setImageResolution() and resampleImage() should be whatever dpi your resampling too. $image = new Imagick(); $image->readImage('image.jpg'); $image->setImageResolution(72,72); $image->resampleImage(72,72,imagick::FILTER_UNDEFINED,0); $image->writeImage('image72.jpg'); ---- Server IP: 69.147.83.197 Probable Submitter: 64.60.148.178 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-resampleimage.php Edit -- https://master.php.net/note/edit/106739 Del: integrated -- https://master.php.net/note/delete/106739/integrated Del: useless -- https://master.php.net/note/delete/106739/useless Del: bad code -- https://master.php.net/note/delete/106739/bad+code Del: spam -- https://master.php.net/note/delete/106739/spam Del: non-english -- https://master.php.net/note/delete/106739/non-english Del: in docs -- https://master.php.net/note/delete/106739/in+docs Del: other reasons-- https://master.php.net/note/delete/106739 Reject -- https://master.php.net/note/reject/106739 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184865) next »