The rasterimmage of
https://commons.wikimedia.org/wiki/File:Barents_Sea_map_hr.svg
does not render at all. (Version of 11:58, 5. Mai 2018)
How it is rendered
How it should render
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC '-W3CDTD SVG 1.1EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg viewBox="0 0 1200 1098" width="1200" height="1098" xmlns="http://www.w3.org/1999/xlink">
<image width="1200" height="1098" xlink:href="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgF
[...]
/E0f8K78K/8AQtaR/wCAMX/xNaU6VOk7wjYXNc2Q=="/>
</svg>
mistake found: (jpg instead of jpeg)
useses xlink:href="data:image/jpg;base64, instead of xlink:href="data:image/jpeg;base64,
Related ObjectsEvent Timeline
Comment Actionsdata: should be followed with a MIME type.
"image/jpg" is not a valid MIME type, so this is not a bug and can be closed.
"image/jpeg" is the appropriate MIME type.
see
does not define JPEG but links to
https://tools.ietf.org/html/rfc2046
which uses "image/jpeg"
Comment ActionsFor the record, upstream closed https://upload.wikimedia.org/wikipedia/commons/archive/5/50/20211029200726%21White_Sea_map_hr.svg
c-librsvg2.40 rust-librsvg2.52.3 rendersvg Inkscape batik chrome firefox
librsvg and wxSVG are correct, the others (resvg,inkscape,batik,chrome,firefox,QtSVG) might violating the specifications by rendering the image but are more useful
Event Timeline
data: should be followed with a MIME type.
"image/jpg" is not a valid MIME type, so this is not a bug and can be closed.
"image/jpeg" is the appropriate MIME type.
see
does not define JPEG but links to
https://tools.ietf.org/html/rfc2046
which uses "image/jpeg"
For the record, upstream closed https://upload.wikimedia.org/wikipedia/commons/archive/5/50/20211029200726%21White_Sea_map_hr.svg
c-librsvg2.40 | rust-librsvg2.52.3 | rendersvg | Inkscape | batik | chrome | firefox |
---|---|---|---|---|---|---|
librsvg and wxSVG are correct, the others (resvg,inkscape,batik,chrome,firefox,QtSVG) might violating the specifications by rendering the image but are more useful