Incredibly slow SRT operation when scaling to small size

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Incredibly slow SRT operation when scaling to small size

Post by fmw42 »

snibgo wrote:We often suffer from brevity; I should have said it resembles the infinite horizon issue.
No problem. Perhaps I took your comment too literally and more importantly did not read his original post carefully enough. So, I became confused and totally missed the real issue and you had it pinned exactly.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Incredibly slow SRT operation when scaling to small size

Post by anthony »

When you get a slow distortion on an image involving extreme reducitons. my first suggestion would to turn off EWA filtering.

That is add -filter point

This means only ONE (unscaled) interpolative lookup is used for each output pixel (at most a 16 pixel lookup limit, depending on the current interpolation setting). It will not attempt to merge (according to the current filter) a large elliptical area of pixels for each output pixel.

If this works you can try using a super-sampling method. That should work especially well for SRT distortions whcih are uniformly scaled across the whole image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply