J'ai quelques fichiers JPEG et je veux créer une animation GIF avec eux. Cependant, ce code ne fonctionne pas. Pouvez-vous voir quel est le problème?PHP Imagick créer une animation GIF
// animation
$animation = new Imagick();
$animation->setFormat("GIF");
// frames
foreach($tmpJpegPath as $jpepPath) {
$frame = new Imagick($jpepPath);
$frame->thumbnailImage(176, 144);
$animation->addImage($frame);
$animation->setImageDelay(100);
$animation->nextImage();
}
// save gif animation
$animation->writeImages('./animation.gif', true);
Bien sûr, le support jpeg est-il intégré? Comment cela ne fonctionne-t-il pas exactement? Les erreurs? – ficuscr
@ficuscr si votre moyenne est $ jpepPath est un chemin pour mes fichiers jpeg. C'est vrai. – sweb
problème résolu ... imagick doit être> = 3.1.0RC1 – sweb