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

thumbnail dimensions can be incorrectly calculated #547

Open
jerzyk opened this issue Aug 26, 2020 · 0 comments
Open

thumbnail dimensions can be incorrectly calculated #547

jerzyk opened this issue Aug 26, 2020 · 0 comments

Comments

@jerzyk
Copy link

jerzyk commented Aug 26, 2020

when trying to generate a thumbnail for the image with strange dimensions (e.g. 600x1) existing calculation can calculate 0 (zero) as one of the dimensions - thus generating exception while creating thumbnail (width and height must be > 0)

imho best option will be to set a 1px as a minimum thumbnail size (processors.py: 189-192 and 204-206):

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

1 participant