Open TimPietrusky opened 3 years ago
OffscreenCanvas doesn't support drawing SVGs as there is no DOM to read the SVG data and convert to a usable format.
We could use the MediaManager to convert the SVG to an image, as we convert GIFs to video?
We could also take a look at https://github.com/canvg/canvg
@TimPietrusky looks like a good option! I'd be in favour of real time conversion/holding in memory to avoid stale assets on disk.
Is your feature request related to a problem? Please describe. Provide support for SVG.
Describe the solution you'd like What could be done already is to update
src/media-manager/read-handlers/image.js
and addsvg
to the array, but then when loading thesvg
I see this error:Uncaught (in promise) Error: The source image could not be decoded.
Describe alternatives you've considered Converting the image to PNG.