Using Morph with image transitions
Posted: 2015-02-13T08:32:25-07:00
Hello,
I'm trying to create a transition between images, everything correct, finally manage to create the GIF.
now i want to create some transition between the images using Morph, but, with a delay on each image, is this possible??
i saw this: http://www.imagemagick.org/Usage/anim_mods/#morph
how can i convert this code to Perl code?
i have a set of 5 images, i want a fade between them, but a longer delay on each image, is this possible from PerlMagick??
i'm using this, but seems that apply the 10 delay to all:
Big thanks!
I'm trying to create a transition between images, everything correct, finally manage to create the GIF.
now i want to create some transition between the images using Morph, but, with a delay on each image, is this possible??
i saw this: http://www.imagemagick.org/Usage/anim_mods/#morph
how can i convert this code to Perl code?
Code: Select all
-set delay '%[fx:(t>0&&t<n-1)?10:240]'
i'm using this, but seems that apply the 10 delay to all:
Code: Select all
# ($animation is my image that have 5 images readed)
my $p = $animation->Morph(frames=>9);
$p->Set(delay => "%[fx:(t%10!=0 || t==n-1)?10:240]");
$p->Write($tmpFolder . 'animation.gif');