lovell / lovell/sharp

SVG does not render embedded image with a dimension greater than 10000 pixels

Open
#4,309 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

blocked-upstream-dependency bug
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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.