note 110393 added to imagick.coalesceimages
| From: | ktr | Date: | Wed, 17 Oct 2012 20:06:53 +0000 |
| Subject: | note 110393 added to imagick.coalesceimages | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191357@lists.php.net to get a copy of this message | ||
//resize and/or crop an animated GIF
$image = new Imagick($file_src);
$image = $image->coalesceImages();
foreach ($image as $frame) {
$frame->cropImage($crop_w, $crop_h, $crop_x, $crop_y);
$frame->thumbnailImage($size_w, $size_h);
$frame->setImagePage($size_w, $size_h, 0, 0);
}
$image = $image->deconstructImages();
$image->writeImages($file_dst, true);
----
Server IP: 69.147.83.199
Probable Submitter: 64.236.128.40
----
Manual Page -- http://www.php.net/manual/en/imagick.coalesceimages.php
Edit -- https://master.php.net/note/edit/110393
Del: integrated -- https://master.php.net/note/delete/110393/integrated
Del: useless -- https://master.php.net/note/delete/110393/useless
Del: bad code -- https://master.php.net/note/delete/110393/bad+code
Del: spam -- https://master.php.net/note/delete/110393/spam
Del: non-english -- https://master.php.net/note/delete/110393/non-english
Del: in docs -- https://master.php.net/note/delete/110393/in+docs
Del: other reasons-- https://master.php.net/note/delete/110393
Reject -- https://master.php.net/note/reject/110393
Search -- https://master.php.net/manage/user-notes.php