note 79343 added to function.imagick-setimageformat

From: Date: Wed, 21 Nov 2007 23:09:41 +0000
Subject: note 79343 added to function.imagick-setimageformat
Groups: php.notes 
Request: Send a blank email to php-notes+get-132473@lists.php.net to get a copy of this message
The previous example did not work for me. I received an error that the IMagick object cannot be converted to string. This example uses the IMagick::getImageBlob() method to properly output the contents of the converted image: function getImage($filename) { $image->readImage($filename); $image->setImageFormat("png"); header("Content-type: image/png"); echo $image->getImageBlob(); } Hope this helps! ---- Server IP: 69.147.83.197 Probable Submitter: 83.143.254.110 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-setimageformat.php Edit -- https://master.php.net/note/edit/79343 Del: integrated -- https://master.php.net/note/delete/79343/integrated Del: useless -- https://master.php.net/note/delete/79343/useless Del: bad code -- https://master.php.net/note/delete/79343/bad+code Del: spam -- https://master.php.net/note/delete/79343/spam Del: non-english -- https://master.php.net/note/delete/79343/non-english Del: in docs -- https://master.php.net/note/delete/79343/in+docs Del: other reasons-- https://master.php.net/note/delete/79343 Reject -- https://master.php.net/note/reject/79343 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132473) next »