php ImageMagick gif resize keep animation -
after upload, gif resized animation lost. doing wrong?
try { $animation = new imagick($this->image_filename); foreach ($animation $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 )
try this: http://www.php.net/manual/en/imagick.coalesceimages.php
first comment seems u need. , u should never mix gd2 library ("imagecreatefromgif") , imagick.
Comments
Post a Comment