Inkscape links to local raster files (includes hard drive path)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When artists create SVG files and they want to include a raster file, Inkscape puts in the absolute path to the PNG/JPG. This is a problem because the image is not portable:
<image xlink:href=
This is specifically a problem for artists who don't know any better and think that once they've imported a raster it is now PART of the SVG file. This is also somewhat of a security problem because it reveals local hard drive information if the SVG file is shared on the web, etc.
My suggested solution for this is to embed the raster using a data: URL and base64 encode the image. See http://
I have started a project to clean up SVG files saved from Inkscape, Adobe Illustrator, etc and make them suitable for the web: http://
One of the things that the script does is automatically find an locally referenced rasters, base 64 encode them and change them into data: URLs. This Python script could be easily adapted into either base Inkscape functionality ("Save For Web"?) or as an extension. I encourage participation in the scour project at http://
P.S. It seems that this bug is somewhat different than Bug 168163 https:/
Also, this is a big problem on Wikipedia (MediaWiki): https:/ /bugzilla. wikimedia. org/show_ bug.cgi? id=3537