Page 2 of 2

Re: Crop to 16:9 and zoom with maximal quality

Posted: 2014-02-13T07:40:07-07:00
by mrmattnc
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?

Re: Crop to 16:9 and zoom with maximal quality

Posted: 2014-02-13T15:47:44-07:00
by fmw42
Sorry I do not know PerlMagick.