You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However this mapping was missing from the sharp documentation, which commit 6257994 addresses (as well as exposing the missing bilinear kernel). Thanks for reporting.
lovell
changed the title
Kernel other than "nearest" has no effect on upscaling?
Improve resize kernel docs and expose missing (bi)linear kernel
Apr 9, 2024
Question about an existing feature
What are you trying to achieve?
I noticed that i get identical results for all kernels except nearest when upscaling an image. Is this expected behaviour?
Version: 0.33.3
When you searched for similar issues, what did you find that might be related?
—
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
sharp("path-to-image/example.png").resize({ width: 600, height: 600, background: { alpha: 0, r: 0, g: 0, b: 0 }, kernel: 'lanczos2' });
Please provide sample image(s) that help explain this question
Original image
Scaled using cubic kernel
Scaled using lanczos2 kernel
The text was updated successfully, but these errors were encountered: