Hi,
Sorry if this is a basic question, I've found this effect that I really like from this page:
http://www.imagemagick.org/Usage/thumbnails/
And the convert command is like this:
{quote}
convert thumbnail.gif \
\( +clone -threshold -1 -virtual-pixel black \
-spread 10 -blur 0x3 -threshold 50% -spread 1 -blur 0x.7 \) \
+matte -compose Copy_Opacity -composite torn_paper.png
{quote}
How is that command applied? Is it a sequence? How do I translate it into perl?
Thanks!
Converting a 'convert' command to PerlMagick?
Re: Converting a 'convert' command to PerlMagick?
What have you tried? The Perl syntax is a bit sideways of what the command-line syntax is, but once you figure it out the learning curve eases out. I'd start small with something like:
$image->Border
http://www.imagemagick.org/script/perl-magick.php has the details in mind-numbing complexity, while
/root/ImageMagick-6.5.6-10/PerlMagick/demo/ has some demo programs, including demo.pl, which has a very simple demo of lots of functions.
While I'm certainly no expert, I suspect you need to do this in several steps.
That is a nice effect, let us know what you come up with!
$image->Border
http://www.imagemagick.org/script/perl-magick.php has the details in mind-numbing complexity, while
/root/ImageMagick-6.5.6-10/PerlMagick/demo/ has some demo programs, including demo.pl, which has a very simple demo of lots of functions.
While I'm certainly no expert, I suspect you need to do this in several steps.
That is a nice effect, let us know what you come up with!