Handle too large images
Open
Nobody has claimed this yet.
bug
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 160
- PR merge metrics
- No merged PRs in 30d
Description
Right now it just fails:
colorworker.893f8723.js:1 Uncaught (in promise) RangeError: offset is out of bounds
at Int8Array.set (<anonymous>)
at colorworker.893f8723.js:1:3204
at array (colorworker.893f8723.js:1:3213)
at JA (colorworker.893f8723.js:1:3311)
at E (colorworker.893f8723.js:1:71498)
at eA (colorworker.893f8723.js:1:71745)
at async colorworker.893f8723.js:1:72579
Ideally we catch this and retry with a reduced image size.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported RangeError with a large bitmap and trace the image-processing path that reaches the failing typed-array operation in the bundled color worker. Done means oversized images no longer fail silently: processing retries with a reduced image size and produces the expected SVG.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100