SVG linking does not work in Inkscape
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
SVG spec supports linking of external files including jpegs, pngs, and other svg files.
Inkscape does not support svg file linking properly, though it seems that it does try...
Steps to reproduce:
1. Create a new Inkscape document
2. Drag and drop a jpg or png from the filesystem onto the canvas and choose "link"
3. right-click the image and choose image properties
4. Change the URL to an svg file you have saved somewhere.
Result: Inkscape shows you a pixelated low res version of the svg instead of a vector representation of the svg file.
What should happen instead?
When you drag an svg file from the file system into Inkscape, it should offer a similar dialog to import for bitmap imports - you should be able to link or embed it (Inkscape currently just embeds the svg when you perform this action).
It should then display the linked svg as it would any other vector content in the file, but in a locked state (not editable), with the right-click option to embed the svg available if editing is later desired.
Inkscape ver 0.92.0+
summary: |
- SVG linking + SVG linking does not work in Inkscape |
Hi CR, thanks for fill the bug.
In trunk you are allowed to embed and link a SVG is a work done in last hackfest in Sevilla. Is linked as image so we need to set a DPI to it. You have a preference option to show the resolution of showed images so you can change from 696->300 or 600 DPI. Not tested for drag and drop but yes for import normal but for what you say work ok.
The remaining problem is a SVG is a res independent file not like a normal image. In normal image his DPI is know, in a SVG no. If is important have diferent DPI between documents we can add a inkscape:DPI new property related to images so when open a image tag with a SVG use this DPI for display, export PNG... with a fallback to current preference values.
Please could you create a survey in Inkscape Devel mailing list to get feedback about it? It help me in futures surveys, also if I do it is my 3 survey in 2 days ;)
Regards, Jabier.