Tokens
"Heartbreak" token, awarded by Liuxinyu970226.

Description

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/xNaU6VOk7wjYXNc
2Q=="/>
</svg>

mistake found: (jpg instead of jpeg)
useses xlink:href="data:image/jpg;base64, instead of xlink:href="data:image/jpeg;base64,

Related Objects

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"

JoKalliauer renamed this task from ekdaaaaaaa to Raster image in an SVG not displayed (due to invalid MIME type "image/jpg").Jul 1 2018, 7:22 AM
JoKalliauer closed this task as Invalid.
JoKalliauer lowered the priority of this task from High to Low.
JoKalliauer updated the task description. (Show Details)
JoKalliauer added a subscriber: Aklapper.

For the record, upstream closed https://upload.wikimedia.org/wikipedia/commons/archive/5/50/20211029200726%21White_Sea_map_hr.svg

c-librsvg2.40rust-librsvg2.52.3rendersvgInkscapebatikchromefirefox

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