Hi -
I use the -extract option in shell processing (convert) to load just a
portion of an image; this functionally is not in PerlMagick. The
following patch puts 'extract' into PerlMagick:
--- ImageMagick-6.3.5.untouched/PerlMagick/Magick.xs 2007-07-15
15:29:19.000000000 -1000
+++ ImageMagick-6.3.5/PerlMagick/Magick.xs 2007-07-18 23:59:04.000000000 -1000
@@ -1274,6 +1274,14 @@
image->endian=(EndianType) sp;
break;
}
+ if (LocaleCompare(attribute,"extract") == 0)
+ {
+ /*
+ Set image extract geometry.
+ */
+ (void) CloneString(&info->image_info->extract,SvPV(sval,na));
+ break;
+ }
ThrowPerlException(exception,OptionError,"UnrecognizedAttribute",
attribute);
break;
The patch has been successfully tested in 6.2.4 and 6.3.5-2. Should I
post this somewhere else?
Aloha => Beau;
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users