summaryrefslogtreecommitdiffstats
path: root/share/extensions
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-05-23 17:42:34 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-05-23 17:42:34 +0000
commit53f447bcd122cdf45b145f512f717272687650e9 (patch)
tree6a2c5e371d803fed8b77a7a0a9a8e5f469d56483 /share/extensions
parentpo/POTFILES.in: Regenerate with the new generate_POTFILES.sh version. (diff)
downloadinkscape-53f447bcd122cdf45b145f512f717272687650e9.tar.gz
inkscape-53f447bcd122cdf45b145f512f717272687650e9.zip
enable embedding of tiff images
(bzr r5747)
Diffstat (limited to 'share/extensions')
-rw-r--r--share/extensions/embedimage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/extensions/embedimage.py b/share/extensions/embedimage.py
index 059bc063e..80030a000 100644
--- a/share/extensions/embedimage.py
+++ b/share/extensions/embedimage.py
@@ -89,6 +89,8 @@ class Embedder(inkex.Effect):
type='image/bmp'
elif (file[:6]=='GIF87a' or file[:6]=='GIF89a'):
type='image/gif'
+ elif (file[:4]=='MM\x00\x2a' or file[:4]=='II\x2a\x00'):
+ type='image/tiff'
#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
@@ -99,7 +101,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 or image/x-icon") % path)
+ inkex.errormsg(_("%s is not of type image/png, image/jpeg, image/bmp, image/gif, image/tiff, or image/x-icon") % path)
else:
inkex.errormsg(_("Sorry we could not locate %s") % path)