sharp icon indicating copy to clipboard operation
sharp copied to clipboard

SVG polygon clip path not respected on text node

Open TrevorSayre opened this issue 4 years ago • 2 comments

Are you using the latest version? Is the version currently in use as reported by npm ls sharp the same as the latest version as reported by npm view sharp dist-tags.latest?

Yes, [email protected]

What are the steps to reproduce?

const { data: svg } = await axios({
  url: "https://etg.dek.im/deck/08mqs066uq066ui067ar047ne018pj.svg",
  responseType: "arraybuffer",
});

const png = await sharp(svg).png().toBuffer();

What is the expected behaviour?

Are you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?

See above.

Are you able to provide a sample image that helps explain the problem?

image

What is the output of running npx envinfo --binaries --system?

System: OS: macOS 10.15.7 CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz Memory: 1.26 GB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.18.3 - ~/.n/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.9 - ~/.n/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman

TrevorSayre avatar Feb 09 '21 23:02 TrevorSayre

Please can you report this upstream at https://gitlab.gnome.org/GNOME/librsvg

$ rsvg-convert -v
rsvg-convert version 2.51.0
$ rsvg-convert 08mqs066uq066ui067ar047ne018pj.svg > out.png

lovell avatar Feb 10 '21 13:02 lovell

https://gitlab.gnome.org/GNOME/librsvg/-/issues/681 created upstream

serprex avatar Feb 10 '21 16:02 serprex