note 99458 added to function.imagick-setimageformat

From: Date: Wed, 18 Aug 2010 16:35:07 +0000
Subject: note 99458 added to function.imagick-setimageformat
Groups: php.notes 
Request: Send a blank email to php-notes+get-171816@lists.php.net to get a copy of this message
For those of you completely confused by the utter lack of documentation for this class (including notes being dropped, probably this one included), the differences between any "setXXX" and "setImageXXX" seems to be entirely dependently on HOW the image was loaded. If the image was loaded at object constructor time, it seems that you use "setXXX" - if you loaded it after the fact (such as via "readImageBlob") then you use "setImageXXX". This is irregular, however. For example: <?php $image = new Imagick(); $image->setResolution(300, 300); $image->readImageBlob(...); // convert the output to JPEG $image->setImageFormat('jpeg'); $image->setImageCompressionQuality(90); ?> Note that we use "setResolution" not "setImageResolution". ---- Server IP: 66.207.199.35 Probable Submitter: 173.180.121.225 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-setimageformat.php Edit -- https://master.php.net/note/edit/99458 Del: integrated -- https://master.php.net/note/delete/99458/integrated Del: useless -- https://master.php.net/note/delete/99458/useless Del: bad code -- https://master.php.net/note/delete/99458/bad+code Del: spam -- https://master.php.net/note/delete/99458/spam Del: non-english -- https://master.php.net/note/delete/99458/non-english Del: in docs -- https://master.php.net/note/delete/99458/in+docs Del: other reasons-- https://master.php.net/note/delete/99458 Reject -- https://master.php.net/note/reject/99458 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171816) next »