I currently converting a SVG to PNG, which works pretty well.
Due a technical limitation in the backend of my companies software, all images will be saved without a file extensions (stone instead of stone.png), just the MIME types is set.
The SVG which will now be generated may look something like this (simplified):
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" version="1.1" viewBox="0 0 619 345" width="619" height="345">
<image width="300" height="232" opacity="1" xlink:href="https://devpublic.blob.core.windows.net/companies/INDIVALUE/resources/02449SLRKtc" />
<rect width="100" height="50" style="fill:rgb(0,0,255);" />
</svg>
If I add a file with a extension, everything works like a charm.
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" version="1.1" viewBox="0 0 619 345" width="619" height="345">
<image width="300" height="232" opacity="1" xlink:href="https://devpublic.blob.core.windows.net/companies/INDIVALUE/resources/02449SLRKtc.png" />
<rect width="100" height="50" style="fill:rgb(0,0,255);" />
</svg>