crop command not working
Posted: 2016-03-09T11:54:21-07:00
hello , first post here 
I'm trying to crop a HD picture into a mosaic of overlapping pictures.
if I use convert : convert HD.jpg -crop 6x9+233+233@ tmp.gif it works perfectly
but inside a perl script it fails (ie I got only one picture with bad size)
code :
thanks for any help.
luc

I'm trying to crop a HD picture into a mosaic of overlapping pictures.
if I use convert : convert HD.jpg -crop 6x9+233+233@ tmp.gif it works perfectly
but inside a perl script it fails (ie I got only one picture with bad size)
code :
Code: Select all
$HDIMAGE="HD.jpg";
$hd = Image::Magick->new;
$hd->Read($HDIMAGE);
$crop = $hd->Clone();
$GEOMETRY="6x9+233+233@";
$crop->Crop(geometry=>$GEOMETRY);
$crop->Write('tmp.gif');
luc