jeffpflueger has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use Image::Magick; my $image = Image::Magick->new; my $x = $image->Read("robert.jpg"); warn "$x" if "$x"; $x = $image->Annotate(text=>'Hello...Are you there?'); warn "$x" if "$x"; $x = $image->Write("robertanno.jpg"); warn "$x" if "$x";
This is the simplest example I could make to demonstrate the problem that I'm having.
This loads robert.jpg and saves robertanno.jpg fine, but the Annotate returns the following error PERL:
sh: gs: command not found sh: gs: command not found
Any ideas about what is happenning? I've experimented with setting some of the other parameters for Annotate (font=>'font', gravity=>'whatever', fill=>'color' ) but I keep getting the same error. Is it that Image::Magick doesn't have something available to it that it expects? (font libraries....something?)
Any help would be great! Thanks!
An aside: By placing a
print "Error is happening either before or after me";
either before or after the Annotate command, the output is still the error and THEN what perl prints. Sort of weird. I'm curious why this is happenning. Its like the error is coming from Image::Magick maybe, and then Perl gets its chance to print its separte errors afterwards....I dunno though...any ideas on this?
Jeff Pflueger - Struggling Perl knowledge sponge
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Annotate and Image::Magick
by jlawrenc (Scribe) on Mar 26, 2001 at 05:42 UTC | |
|
Re: Annotate and Image::Magick
by martian (Novice) on Mar 26, 2001 at 03:00 UTC | |
|
Re: Annotate and Image::Magick
by coolmichael (Deacon) on Mar 26, 2001 at 04:34 UTC | |
|
Re: Annotate and Image::Magick
by Anonymous Monk on Mar 26, 2001 at 09:14 UTC | |
|
Re: Annotate and Image::Magick
by knobunc (Pilgrim) on Mar 26, 2001 at 19:03 UTC |