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

Support kernel option in resize #142

Closed
1 task done
kyranet opened this issue Jun 23, 2023 · 0 comments · Fixed by #143
Closed
1 task done

Support kernel option in resize #142

kyranet opened this issue Jun 23, 2023 · 0 comments · Fixed by #143

Comments

@kyranet
Copy link
Contributor

kyranet commented Jun 23, 2023

Describe the feature

Right now, the library defines three options (out of many):

return pipe.resize(width, height, {
fit: context.fit,
position: context.position,
background: context.background,
});

The kernel option allows us to set one of nearest, cubic, mitchell, lanczos2, and lanczos3, which by default uses the last one. However, for pixel art, this is far from ideal, as it blurs the pixels.

Additional information

  • Would you be willing to help implement this feature?
kyranet added a commit to kyranet/ipx that referenced this issue Jun 23, 2023
@pi0 pi0 added the enhancement label Sep 5, 2023
@pi0 pi0 closed this as completed in #143 Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants