fmw42 wrote:If speed is more important than quality, then add -filter point and use viewport cropping. You can do fx calculations in the viewport crop
convert in.png -background somecolor -virtual-pixel background -define distort:viewport=WxH+X+Y -filter point -distort SRT scale,0 out.png
see
http://www.imagemagick.org/Usage/distor ... t_viewport
http://www.imagemagick.org/Usage/distorts/#lookup
http://www.imagemagick.org/Usage/distor ... red_square
Just to be thorough, it doesn't look like -filter is an image attribute but a subroutine to run on an image. How would you implement this in PerlMagick?