SkepticaLee -
Joined: 26 Mar 2014 Posts: 1
|
Posted: Wed Mar 26, 2014 4:00 pm Post subject: PHP Imagick creates image, but does not write |
|
|
I am using this code to create an Imagick object, the associated new image which is blue, reading one pixel out of it, which has the correct values. But writeImage does not save the file.
This has been demonstrated to work on an apache server 2.2 under php 5.4, imagick 6.6:
Code: |
$im = new Imagick ();
$im->newImage (320, 240, "blue");
$pixel = $im->exportImagePixels (0, 0, 1, 1, "RGB", Imagick::PIXEL_CHAR);
var_dump ($pixel);
$im->writeImage ("test.png");
$im->destroy ();
echo "<img src=\"test.png\">";
|
Any clues?[/code] |
|