thorvg / thorvg

Thor Vector Graphics is a lightweight portable library used for drawing vector-based scenes and animations including SVG and Lottie. It can be freely utilized across various software platforms and applications to visualize graphical contents.

Home Page:https://www.thorvg.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svg: support the background-image:url in style

fire opened this issue · comments

Appears to need extra support implemented for embedded images

godotengine/godot#91901 (comment)

Edited:

Not in the original report, but also svg too.

@fire could you please provide any sample?

Expected:

image

Result:

image

A couple more examples from testing godotengine/godot#91901:

drawing
drawing2

Those SVGs were generated with Inkscape 1.3.2 on Linux by simply using the "Import" (Ctrl+I) option, selecting a WEBP, PNG, or JPG file, and choosing "Embed" as import type:
image

Then saved as Inkscape SVG, and attempted to load them in Godot or ThorVG Viewer.

A couple more examples from testing godotengine/godot#91901:

these I'll fix tmr.

this one is more complicated. set an image as svg background, scales it, applies "image-rendering:pixelated"

background-image:url in style is not supported:
download