note 78350 added to function.imagick-setimageformat
| From: | Devo at osu1 dot php dot net | Date: | Mon, 08 Oct 2007 03:02:57 +0000 |
| Subject: | note 78350 added to function.imagick-setimageformat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131217@lists.php.net to get a copy of this message | ||
A list of formats can be found here: http://www.imagemagick.org/script/formats.php
Formats marked with a W can be output to file with writeImage (capabilities depend on your
particular installation of course).
For example:
<?php
// create new imagick object from image.jpg
$im = new Imagick( "image.jpg" );
// change format to png
$im->setImageFormat( "png" );
// output the image to the browser as a png
header( "Content-Type: image/png" );
echo $im;
// or you could output the image to a file:
//$im->writeImage( "image.png" );
?>
----
Server IP: 208.69.120.35
Probable Submitter: 68.97.112.153
----
Manual Page -- http://www.php.net/manual/en/function.imagick-setimageformat.php
Edit -- https://master.php.net/note/edit/78350
Del: integrated -- https://master.php.net/note/delete/78350/integrated
Del: useless -- https://master.php.net/note/delete/78350/useless
Del: bad code -- https://master.php.net/note/delete/78350/bad+code
Del: spam -- https://master.php.net/note/delete/78350/spam
Del: non-english -- https://master.php.net/note/delete/78350/non-english
Del: in docs -- https://master.php.net/note/delete/78350/in+docs
Del: other reasons-- https://master.php.net/note/delete/78350
Reject -- https://master.php.net/note/reject/78350
Search -- https://master.php.net/manage/user-notes.php