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

Flag for progressive downscaling on/off #7

Open
donaldgray opened this issue May 7, 2020 · 1 comment
Open

Flag for progressive downscaling on/off #7

donaldgray opened this issue May 7, 2020 · 1 comment

Comments

@donaldgray
Copy link
Member

PR #4 fixed a scaling issue by removing progressive downscaling.

This ensures that the returned values are correct but takes slightly longer to calculate. If the calling system is aware of what the sizes should be, then they may be willing to accept a slight margin for error in the returned values. Have a flag to allown progressive downcaling to be enabled/disabled depending on needs of consuming app.

Either on startup or per request? Or a default of 'correct', but can be overriden per request.

@stephenwf
Copy link

Reducing gap could help maintain performance:
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.thumbnail

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

No branches or pull requests

2 participants