note 86550 added to class.imagick
| From: | StealthFox at live dot com | Date: | Thu, 23 Oct 2008 14:15:13 +0000 |
| Subject: | note 86550 added to class.imagick | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145640@lists.php.net to get a copy of this message | ||
Users looking to save with these functions should know it can be done easily, for example
header ("Content-Type: image/{$Imagick->getImageFormat()}");
$data = $Imagick->getImageBlob ();
echo $data;
file_put_contents ('test.png', $data);
That would display the image, and then save it to test.png. Such things are helpful especially when
you need to reload images after creating them or save for later. :)
----
Server IP: 208.69.120.35
Probable Submitter: 65.78.155.17
----
Manual Page -- http://www.php.net/manual/en/class.imagick.php
Edit -- https://master.php.net/note/edit/86550
Del: integrated -- https://master.php.net/note/delete/86550/integrated
Del: useless -- https://master.php.net/note/delete/86550/useless
Del: bad code -- https://master.php.net/note/delete/86550/bad+code
Del: spam -- https://master.php.net/note/delete/86550/spam
Del: non-english -- https://master.php.net/note/delete/86550/non-english
Del: in docs -- https://master.php.net/note/delete/86550/in+docs
Del: other reasons-- https://master.php.net/note/delete/86550
Reject -- https://master.php.net/note/reject/86550
Search -- https://master.php.net/manage/user-notes.php