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');