2012-04-27 39 views
3

我無法在網上找到任何錯誤,但自從從2.1切換到Imagick 3後,我無法以正確的方式使用writeImages()函數。圖像被保存,但不再被動畫。我已經正確地設置了框架,因爲如果我我得到了動畫。Imagick 3 writeImages()函數不工作

$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); 
+0

這是奇怪的就是一個小臭蟲,我不能複製這種行爲。你有嘗試類似'file_put_contents('animation.gif',$ gif);'? – Roberto 2012-07-22 02:19:15

+1

嗨,羅布,我提出它作爲一個錯誤,它現在已修復https://bugs.php.net/bug.php?id=61879 – jdborg 2012-07-23 06:30:39

回答