GNOME Bugzilla – Bug 736456
librsvg doesn't read the content-type headers of files
Last modified: 2017-12-13 18:03:40 UTC
As stated in this forum post: http://www.imagemagick.org/discourse-server/viewtopic.php?f=27&t=26225 The librsvg parser doesn't recognize images without a file ending. It would be nice if the librsvg library could read the content type headers of the file. Example SVG: <?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> This can't be rasterized by ImageMagick because the image won't be regocnized because it has no file ending. This SVG works: <?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>
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/93.