After upload, the gif is resized but the animation is lost. What am I doing wrong?
try
{
$animation = new Imagick($this->image_filename);
foreach ($animation as $frame)
{
$frame->thumbnailImage($width, $height);
$frame->setImagePage($width, $height, 0, 0);
}
$animation->writeImages($this->image_filename, true);
echo "<img src='".$this->image_filename."' />";
$this->image = imagecreatefromgif($this->image_filename);
}
catch(Exception $e){ echo $e->getMessage(); }
No exception caught.
Array
(
[versionNumber] => 1608
[versionString] => ImageMagick 6.4.8 2011-03-20 Q16 OpenMP http://www.imagemagick.org
)