note 114714 added to imagick.writeimage
| From: | SkepticaLee | Date: | Thu, 27 Mar 2014 14:30:11 +0000 |
| Subject: | note 114714 added to imagick.writeimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199057@lists.php.net to get a copy of this message | ||
When running Imagick as packaged with the Abyss Web Server, neither this method nor writeImages ()
works. Instead the format has to be declared and the file saved by using another method or
procedure, e.g.:
<?php
$im = new Imagick ();
$im->newImage (300, 225, "blue");
$im->writeImage ("test_0.jpg"); // fails with no error message
//instead
$im->setImageFormat ("jpeg");
file_put_contents ("test_1.jpg", $im); // works, or:
$im->imageWriteFile (fopen ("test_2.jpg", "wb")); //also works
?>
----
Server IP: 212.124.37.9
Probable Submitter: 130.75.198.156
----
Manual Page -- http://php.net/manual/en/imagick.writeimage.php
Edit -- https://master.php.net/note/edit/114714
Del: integrated -- https://master.php.net/note/delete/114714/integrated
Del: useless -- https://master.php.net/note/delete/114714/useless
Del: bad code -- https://master.php.net/note/delete/114714/bad+code
Del: spam -- https://master.php.net/note/delete/114714/spam
Del: non-english -- https://master.php.net/note/delete/114714/non-english
Del: in docs -- https://master.php.net/note/delete/114714/in+docs
Del: other reasons-- https://master.php.net/note/delete/114714
Reject -- https://master.php.net/note/reject/114714
Search -- https://master.php.net/manage/user-notes.php