2 ms·
> best results with Triangle also known as bilinear interpolation Just no. Use bilinear only when you need very fast resizing and don't care about quality much
by cabirum 11y ago
> best results with Triangle also known as bilinear interpolation
Just no. Use bilinear only when you need very fast resizing and don't care about quality much. Lanczos and sinc [1] filters are considered "best" for wide range of images (no visible blurring or sharpening, almost no moire effects), but they are also among slower ones. Use Catmull-Rom when images need to be sharpened a bit. (See [2] for comparison and scripts) There's also faster and less buggy fork named GraphicsMagick [3]
[1] https://en.wikipedia.org/wiki/Sinc_filter https://en.wikipedia.org/wiki/Sinc_filter
[2] http://www.dylanbeattie.net/magick/filters/result.html http://www.dylanbeattie.net/magick/filters/result.html
[3] http://www.graphicsmagick.org/ http://www.graphicsmagick.org/
- rvavruch 11y agoI second GraphicsMagick over ImageMagick. In PHP found it performed especially well when executing through exec() rather than the extension. See Gifsicle [1] for easy animated GIF resizing, which I found buggy in both IM and GM. [1] https://www.lcdf.org/gifsicle/ https://www.lcdf.org/gifsicle/
- detrino 11y agoLanczos-2 is pretty much identical to Catmull-Rom, and Lanczos-3+ are all sharper than Catmull-Rom, but at the cost of ringing artifacts.
- aliwiki 11y agohello