jimp icon indicating copy to clipboard operation
jimp copied to clipboard

Add Lanczos & Mitchell resize & rotate modes

Open samuelgoff opened this issue 5 years ago • 5 comments

I'm trying to achieve the best possible image quality when resizing or rotating images. For most photographic or textural image types, as well as some illustrations or line art, Lanczos (Lanczos3 approximation of Sinc) produces the best quality for scaling up or down, as well as rotation. Mitchell can produce excellent quality with better performance when scaling down, though not necessarily superior to Lanczos, it would still be nice to have this as an option when choosing trade-offs between image quality and performance.

I would like to see Lanczos (specifically Lanczos3) and Mitchell resize and rotate modes added to Jimp.

Existing resize modes of nearest neighbor, bilinear, bicubic, hermite, and bezier are all noticeably lower quality than Lanczos.

samuelgoff avatar Apr 15 '19 18:04 samuelgoff

👍

elad-yosifon avatar Oct 17 '19 12:10 elad-yosifon

+1

voidpls avatar Aug 16 '20 07:08 voidpls

Maybe of some use... https://github.com/rgba-image/lanczos

Steve-Mcl avatar Aug 17 '20 15:08 Steve-Mcl

I would like to see this feature as well.

delebash avatar Oct 15 '21 00:10 delebash

+1

stephan-fischer avatar Jan 26 '22 17:01 stephan-fischer