[magick-users] perl use - Big Picture
Jim Shupert, Jr.
jshupert at theppsgroup.com
Wed Dec 17 06:20:36 PST 2008
friends ,
i thought it would be - dead easy - to convert my imagemagik efforts into
a perl script. It seems I am very wrong.
Being new to perl and new to imagemagick i suppose i could use " plenty
of help" -- but if I could get some Big picture suggestions - that would
be great.
my 1st efforts results in so many errors -- oh where to begin -- so i read
that there is PerlMagic
I am currently reading http://www.imagemagick.org/script/perl-magick.php
and http://www.imagemagick.org/script/examples.php
excellent examples -- i am going to be working through some of that
( i wish there was a convert example that added text )
Q1 - the install doc talk about XP - can this work on a win2003 server -
the same?
Q2 - would a better idea be to have a linux server ( Ubuntu or centOS5 )
actually DO the PerlMagic image manipulation ( the making of the pdfs )
meaning - Are the "resources' for learning are more Lnx than win?
Q3 - I would love to know ... what is :
warn "$x" if "$x"; # print the error message
so is "$X" defined defined in the PerlMagic install ?
Thanks
example -- here is my perl on winXP ( hey - thought you could use a laugh )
#C:\perl\bin\perl
use warnings;
use strict;
convert D:\ss\mich-b.jpg ^
-fill black -pointsize 24 -draw "text 150,460 'File Name : FName7'" ^
-fill black -pointsize 24 -draw "text 150,490 'Title : TName7'" ^
-fill black -pointsize 24 -draw "text 150,520 'Creator : Creater7'" ^
-fill black -pointsize 20 -draw "text 150,550 'Time : hh:mm:ss'" ^
-fill black -pointsize 18 -draw "text 150,580 'Date : mm/dd/yy'" ^
D:\ss\mich-b-7.pdf
exit;
-----------
and happy holidays!
J
More information about the Magick-users
mailing list