sharp icon indicating copy to clipboard operation
sharp copied to clipboard

SVG: support for vector-effect SVG2 property

Open Annsanbudeyu opened this issue 3 years ago • 5 comments

  • environment nodejs: 14.18.3 sharp: 0.30.6

  • svg svg in chrome svg code

  • code convert code

  • output output png

Annsanbudeyu avatar Jun 12 '22 09:06 Annsanbudeyu

Please can you provide the complete source SVG image rather than screengrabs.

lovell avatar Jun 12 '22 09:06 lovell

svg

Annsanbudeyu avatar Jun 13 '22 01:06 Annsanbudeyu

Thank you, the vector-effect property is part of SVG2 and is not yet supported by librsvg:

https://gitlab.gnome.org/GNOME/librsvg/-/blob/main/src/properties.rs#L486

I can't find a specific tracking issue for this property at https://gitlab.gnome.org/GNOME/librsvg/-/issues so perhaps you could open an enhancement request and provide this SVG as an example.

lovell avatar Jun 13 '22 11:06 lovell

Thank you for your answer; i will open an enhancement request for libsvg.

Annsanbudeyu avatar Jun 15 '22 01:06 Annsanbudeyu

Looks like this has just been reported upstream at https://gitlab.gnome.org/GNOME/librsvg/-/issues/885.

kleisauke avatar Jul 30 '22 13:07 kleisauke

Implemented in librsvg v2.56.0, which is included in the prebuilt binaries for sharp v0.32.0.

lovell avatar Mar 29 '23 08:03 lovell