I used to use Crop() in perlMagick and it worked fine, but now not for some .tiff images, it threw out some errors:
Code: Select all
my $bb = $img->Get('bounding-box');
my $x = $img->Crop(geometry=>$bb);
warn "$x" if "$x";
If I tried the command line asException 310: geometry does not contain image ' *.tif'
Code: Select all
convert -crop a.tif -crop geometry +repage b.tif
Does anyone know how to use Crop() reliably in PerlMagick?convert: geometry does not contain image '*.tif'
Thanks!
-J