You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the cause of this issue is the <clipPath> tag as this is not supported by Sharp. Instead of interpreting this as a clipping path, Sharp simply renders the content. Since the enclosed rect is by default filled as black, the a 300x300 black rectangle is rendered before any other content.
There are two possible workarounds:
Specify the fill opacity of the clipping path as transparent by setting fill-opacity="0" on the enclosed rect, or
Remove the clipping path altogether.
Perhaps a future version will ignore clipping path altogether as I think it's a bit too ambitious to implement clipping paths as per the SVG spec.
Hi.
Nice library, thanks a lot :)
I am having problems when loading some SVG with transparent background, for example https://back.webel.es/v1/images/categorias/5c12552f15e4fd133439cd97.svg
The transparent background appears black on an Android device using Sharp. Any idea?
Thanks in advance.
The text was updated successfully, but these errors were encountered: