Code: Select all
$image = new Image::Magick;
print($image->Get('version'));
http://www.imagemagick.org/script/perl- ... -attribute
Am I on shaky ground using this "undocumented" feature?
Rick
Code: Select all
$image = new Image::Magick;
print($image->Get('version'));
rmabry wrote: Sorry 'bout that.
Code: Select all
use Image::Magick;
$image = new Image::Magick;
$image->Set(size=>'1x1');
$image->Read('xc:white');
$uhoh = $image->Draw(primitive => 'point', points => '0,0', newopt=>'whatever');
if($uhoh) { do something else... }
magick wrote: In your case you could tryand if see if it returns an error.
- $x = $image->Get('origin');
Code: Select all
$ok = $image->Get('origin');
($ok) ? print("$ok\n") : print("Get(origin) ok\n");
$ok = $image->Get('origami');
($ok) ? print("$ok\n") : print("Get(origami) ok\n");
Code: Select all
use Image::Magick;
$image=Image::Magick->new();
$image->Read('logo:');
$x = $image->Draw(origin=>"+0+0");
warn "$x" if "$x";
$x = $image->Draw(orgami=>"+0+0");
warn "$x" if "$x";