Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lanczos as a resampling option to the resize menu #1232

Open
Matthieu-LAURENT39 opened this issue Jan 25, 2025 · 2 comments
Open

Add Lanczos as a resampling option to the resize menu #1232

Matthieu-LAURENT39 opened this issue Jan 25, 2025 · 2 comments

Comments

@Matthieu-LAURENT39
Copy link
Contributor

Matthieu-LAURENT39 commented Jan 25, 2025

Description
I often need to resize images in Pinta. Currently, it seems to use a single resampling algorithm, which works fine for most images.
However, when working on something like pixel art, it can lead to blurry results, which would be fixed by using "Nearest Neighbor" resampling.

Additional context
Paint.net already offers to choose the resampling algorithm when resizing.
While adding all the same resampling options is a bit much, it would be nice to at the very least add "Nearest Neighbor" in addition to the current one. Lanczos would also be nice, it can give great results at the cost of being more expensive.

@Matthieu-LAURENT39
Copy link
Contributor Author

I just realized nearest neighbor resampling was already a thing on the master branch, i forgot the latest official release was quite old and so that's why i didn't have it yet. 😅

Although, i'd like to keep this open for the "Lanczos" resampling method, which i also use quite often as it gives great results when upscaling images. It would definitely a nice addition to Pinta.
I'll rename the issue to fit.

@Matthieu-LAURENT39 Matthieu-LAURENT39 changed the title Add a resampling option to the resize menu Add Lanczos as a resampling option to the resize menu Jan 25, 2025
@cameronwhite
Copy link
Member

Currently the resizing is done via Cairo, so adding other resampling modes beyond the available filters from Cairo (https://www.cairographics.org/manual/cairo-cairo-pattern-t.html#cairo-filter-t) would involve some additional work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants