note 97014 added to function.imagick-setimagecompression
| From: | snipes2083 | Date: | Sun, 28 Mar 2010 18:03:35 +0000 |
| Subject: | note 97014 added to function.imagick-setimagecompression | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167463@lists.php.net to get a copy of this message | ||
Above it says "One of the COMPRESSION constants" for the parameters. For any of you that
found this confusing, you can find a list of the constants here:
Predefined Constants
http://www.php.net/manual/en/imagick.constants.php
As an example for working with a jpeg image:
<?php
$image = 'jpeg_image.jpg';
$comression_type = Imagick::COMPRESSION_JPEG;
$im = new Imagick($image);
$im->setImageCompression($compression_type);
?>
This class does not actually compress the images but rather sets the compression type that is going
to be used.
If you would like to see how to compress the image see:
Imagick::setImageCompressionQuality
----
Server IP: 69.147.83.197
Probable Submitter: 65.12.181.174
----
Manual Page -- http://www.php.net/manual/en/function.imagick-setimagecompression.php
Edit -- https://master.php.net/note/edit/97014
Del: integrated -- https://master.php.net/note/delete/97014/integrated
Del: useless -- https://master.php.net/note/delete/97014/useless
Del: bad code -- https://master.php.net/note/delete/97014/bad+code
Del: spam -- https://master.php.net/note/delete/97014/spam
Del: non-english -- https://master.php.net/note/delete/97014/non-english
Del: in docs -- https://master.php.net/note/delete/97014/in+docs
Del: other reasons-- https://master.php.net/note/delete/97014
Reject -- https://master.php.net/note/reject/97014
Search -- https://master.php.net/manage/user-notes.php