NUKnightLab / NUKnightLab/scenevr-author

Thumbnail generation (and thus upload) fails for wide aspect ratios

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
2
Forks
2
Avg merge
1m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the thumbnail-generation and upload path, then reproduce the failure with an image wider than the stated 15:1 ratio. Decide whether the completed fix should improve error reporting or cap thumbnail dimensions, and verify that wide-image uploads no longer fail or clearly explain the restriction.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.