Reputation: 18353
I can't find any bugs online but since switching to Imagick 3 from 2.1 I can't use the writeImages() function in the proper way. An image is saved, but it's not animated any more. I've set the frames up correctly because if I echo $gif
I get the animation.
$gif = new Imagick();
$gif->setFormat("gif");
foreach ($files as $file) {
$frame = new Imagick();
$frame->readImage($file);
$gif->addImage($frame);
$gif->setImageDelay(1);
}
$path = "/any/path/will/do/animation.gif";
$gif->writeImages($path,true);
Upvotes: 3
Views: 1912