Replace invalid mime type image/jpg with image/jpeg

Bug #1389931 reported by Foddy Zip
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

Had this issue come up at Wikipedia. An SVG with an embedded JPG was edited and resaved. When MediaWiki rasterized it into a PNG (using Librsvg) the embedded image didn't show up. After a bit of investigating the cause was found to be a mime type issue. When the SVG was first constructed (with an older version of Inkscape as far as I can tell) a JPG was embedded and asigned the mime type "image/jpg". When Librsvg got hold of it, it didn't recognize "image/jpg"... it wanted "image/jpeg"... and so simply ignored the embedded JPG. It would be good (I would think) for Inkscape to detect that invalid(?) mime type and automatically change it to "image/jpeg". Below are two examples. The first is normal. The second is broken by Librsvg.

https://commons.wikimedia.org/wiki/File:Missing_embedded_JPG_example_1.svg

https://commons.wikimedia.org/wiki/File:Missing_embedded_JPG_example_2.svg

jazzynico (jazzynico)
tags: added: bitmap importing
jazzynico (jazzynico)
summary: - passes along embedded image mime type image/jpg
+ Replace invalid mime type image/jpg with image/jpeg
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.