i tried a whole day now for my problem and googling my hands off but couldnt find a real solution for my problem:
I have an animated gif and a static PNG. The static PNG should get the "background" of the animated GIF (the animated GIF also has a transparency).
I tried things like:
Code: Select all
$a = new Imagick('../a.gif');
$b = new Imagick('../b.png');
$b->compositeimage($a, imagick::COMPOSITE_MULTIPLY, 0, 0);
$b->writeimages('../img/test.gif', true);
$a->compositeimage($b, imagick::COMPOSITE_MULTIPLY, 0,0 );
$a->writeimages('../img/test2.gif', TRUE);
Any hints would be great..
Thanks in advance