#!/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
In reply to Annotate and Image::Magick by jeffpflueger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |