PHP 8.5.0 Alpha 4 available for testing

Voting

: zero plus six?
(Example: nine)

The Note You're Voting On

StealthFox at live dot com
16 years ago
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. :)

<< Back to user notes page

To Top