note 86550 modified in class.imagick by thiago
| From: | thiago@php.net | Date: | Thu, 23 Oct 2008 14:23:44 +0000 |
| Subject: | note 86550 modified in class.imagick by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145641@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
<?php
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. :)
--was--
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. :)
http://php.net/manual/en/class.imagick.php