I currently have a PERL script that takes an animated GIF and splits it
in to its individual components, but it relies upon externally calling
"convert" to perform the action:
system("/usr/bin/convert +adjoin -coalesce " . $path . "anim.gif " .
$path . "%01d");
And then it relies on "ls" to determine how many pieces of the animated
GIF were created:
open (LS, "ls -l $path\* |");
while (<LS>)
{
++$i if ((/$path/) && !(/anim.gif/));
}
close (LS);
But, really, that's just a hack. I need to make it more portable, and I
would like to use the Image::Magick perl module. Documentation on this
functionality is slim to start with (not putting any blame here), but I
did find some which led me to the original solution of using "convert".
Unfortunately, I'm coming up completely dry when trying to come up with
the right method for doing this in perl using the perl module..
Any ideas?
-Rich
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users