joedborg
joedborg

Reputation: 18353

Imagick 3 writeImages() function not working

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

Answers (1)

joedborg
joedborg

Reputation: 18353

Was a bug in PHP https://bugs.php.net/bug.php?id=61879

Upvotes: 1

Related Questions