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 generation (and thus upload) fails for wide aspect ratios #31

Open
scott2b opened this issue Jul 15, 2019 · 0 comments
Open

Comments

@scott2b
Copy link
Member

scott2b commented Jul 15, 2019

Due to PIL's 65,500 pixel limitation to an image dimension, the 4096 height thumbnail cannot be generated for images with a w:h aspect ratio greater than 15:1 (4069 * 16 = 65,536)

The result is an exception thrown by PIL when attempting to save the generated 4096 image.

Recommended either better error reporting (e.g. inform the user to restrict images to < 15:1). Or, depending on implications for display, perhaps limit thumbnail dimensions explicitly to < 65,000.

Current workaround is for the user to ensure uploading only images with aspect ratio of 15:1 or less.

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