svgedit icon indicating copy to clipboard operation
svgedit copied to clipboard

When I upload svg with raster image embedded in it whether base64 or withing foreign obejct, image does not supported by editor.

Open khanamirabes opened this issue 1 year ago • 1 comments

When I upload svg with raster image embedded in it whether base64 or withing foreign obejct, image does not supported by editor. If I uploaded a svg with raster image, I can see only svg elements in editor not raster image. Please let me know what is the issue or how can I make editor to support raster image also.

I have attached the svg with raster image(base64). When I open this svg into browser, I can see raster image there but when I upload same svg in editor, raster image can not be seen.

Please help. Thanks in advance. airport

khanamirabes avatar Nov 27 '23 18:11 khanamirabes

Indeed, SVGEdit does not support the 'href' followed by the image content. You may see in the console that the href was "sanitized" with the following message "sanitizeSvg: attribute href in element image not in whitelist is removed" Unfortunately, changing this has several side effects (mainly because SVGEdit supports only xlink:href that is now deprecated in favor of href as of SVG2). This is not really a bug but this definitely needs to be improved.

jfhenon avatar Dec 09 '23 10:12 jfhenon