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

Check if resizing to the same size #1763

Merged
merged 8 commits into from
Jul 24, 2022
Merged

Conversation

drewcassidy
Copy link
Contributor

Addresses #1738 by checking if resizing is to the same size the image already is.

there's a lot more optimizations that could be made here, such as detecting integer scaling or a Pillow-style "reduce gap" method (maybe as an additional filter mode, since it only makes sense for bilinear). However from #1718 it looks like you may be planning a refactor of the backing data structures for pixels?

src/imageops/sample.rs Outdated Show resolved Hide resolved
src/imageops/sample.rs Outdated Show resolved Hide resolved
src/imageops/sample.rs Show resolved Hide resolved
src/imageops/sample.rs Outdated Show resolved Hide resolved
@fintelia fintelia merged commit c24aecb into image-rs:master Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants