Animated gif resize
Posted: 2008-01-11T21:21:09-07:00
Greetings
I've just started using Imagick and I'm writing image preview script.
Here is a part of code:
This is good when script is provided with jpg/png... but animated gif is problem.
Only first frame is resized
Could ony1 show me how ti loop trough all frames and output animated image?
tnx in advance
I've just started using Imagick and I'm writing image preview script.
Here is a part of code:
Code: Select all
$img_path = $_SERVER['DOCUMENT_ROOT'].'/images/themes/my_img.jpg';
$image = new Imagick($img_path);
$type = $image->getFormat();
$image->thumbnailImage(200, 0);
header('Content-type: '.$type);
echo $image;
Only first frame is resized
Could ony1 show me how ti loop trough all frames and output animated image?
tnx in advance