diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-12 20:50:17 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-05-12 20:50:17 +0000 |
| commit | b81edb009eabf2b10f7d34c416af691a8d4952f8 (patch) | |
| tree | aa0ead927103d164bf2356a8def0574dec81269a /share | |
| parent | Fixes bugs: #1770760, #1770761, #1770763, #1770769 related to linked SVG (diff) | |
| download | inkscape-b81edb009eabf2b10f7d34c416af691a8d4952f8.tar.gz inkscape-b81edb009eabf2b10f7d34c416af691a8d4952f8.zip | |
Allow embed on SVG imports
Diffstat (limited to 'share')
| -rwxr-xr-x | share/extensions/embedimage.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py index 9ebe084a3..33819a5b0 100755 --- a/share/extensions/embedimage.py +++ b/share/extensions/embedimage.py @@ -100,6 +100,8 @@ class Embedder(inkex.Effect): #ico files lack any magic... therefore we check the filename instead elif(path.endswith('.ico')): type='image/x-icon' #official IANA registered MIME is 'image/vnd.microsoft.icon' tho + elif(path.endswith('.svg')): + type='image/svg+xml' else: embed=False if (embed): @@ -107,7 +109,7 @@ class Embedder(inkex.Effect): if (absref != None): del node.attrib[inkex.addNS('absref',u'sodipodi')] else: - inkex.errormsg(_("%s is not of type image/png, image/jpeg, image/bmp, image/gif, image/tiff, or image/x-icon") % path) + inkex.errormsg(_("%s is not of type image/svg, image/png, image/jpeg, image/bmp, image/gif, image/tiff, or image/x-icon") % path) if __name__ == '__main__': e = Embedder() |
