images icon indicating copy to clipboard operation
images copied to clipboard

text on svg is vanished

Open VenomFate-619 opened this issue 1 year ago • 2 comments

expected:-

https://metadata.ens.domains/mainnet/0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85/0xca850e1deb88aef9579ee738493bc2bb1cbdf05978b968c337588b55ecb6528f/image

image

output:-

https://images.weserv.nl/?url=https://metadata.ens.domains/mainnet/0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85/0xca850e1deb88aef9579ee738493bc2bb1cbdf05978b968c337588b55ecb6528f/image

image

content-type is wrong of this

image

VenomFate-619 avatar Aug 11 '22 05:08 VenomFate-619

So , how to serve SVGs

VenomFate-619 avatar Aug 11 '22 05:08 VenomFate-619

SVG images are rasterized to pixels since they are not just images, but documents with full access to all HTML and JavaScript functions. It would be a security threat to serve SVG images as-is.

As for this particular image, you could try removing the feDropShadow filter and references, since it's currently unsupported by librsvg - see: https://gitlab.gnome.org/GNOME/librsvg/-/issues/743

kleisauke avatar Aug 11 '22 08:08 kleisauke

I hope this information helped. Please feel free to re-open if questions remain.

kleisauke avatar Nov 17 '22 10:11 kleisauke