Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Magick

Status
Not open for further replies.

dalhousi

Programmer
Mar 26, 2007
21
CA
Hi Everyone,

I'm trying to write some text on an picture and display this picture. I'm using Perl with the library Magick. However, it seems that it is not working. I cannot even read a picture and display it.

I used the following example code but i got nothing:
Code:
  #!/usr/local/bin/perl
  use Image::Magick;

  my($image, $x);

  $image = Image::Magick->new;
  $x = $image->Read('1.gif', '2.gif', '3.gif');
  warn "$x" if "$x";

  $x = $image->Crop(geometry=>'100x100+100+100');
  warn "$x" if "$x";

  $x = $image->Write('x.png');
  warn "$x" if "$x";

Anything wrong with my code?

Thanks in advance
Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top