SVG does not render embedded image with a dimension greater than 10000 pixels
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 32.7k
- Forks
- 1.4k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
"After upgrading from version 0.33.4 to 0.33.5 of the sharp library, the memory leak issue has been resolved, but there are rendering failures with high-resolution images."
sharp(imgBuffer, {
unlimited: true
})
.toFormat(type)
.withMetadata({ density: dpi, icc: colourspace } as any)
.toBuffer((err, data) => {
})
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 with the provided sharp(imgBuffer, { unlimited: true }) reproduction and compare rendering behavior between versions 0.33.4 and 0.33.5 for an SVG containing an embedded image larger than 10000 pixels. Confirm done when the high-resolution SVG renders successfully without reintroducing the reported memory leak.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100