summaryrefslogtreecommitdiff
path: root/support/inkscape/__main__.py
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-09-30 18:19:14 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-09-30 18:19:50 +0200
commitb74aa3b7ce691126216e659a06808905649dd37b (patch)
treecb5d00b77f240da3d010d99b17ce3c998b6fa697 /support/inkscape/__main__.py
parent7a0be0c8126945f7fa4b68cc9d93a73ef4341189 (diff)
downloadpogojig-b74aa3b7ce691126216e659a06808905649dd37b.tar.gz
pogojig-b74aa3b7ce691126216e659a06808905649dd37b.tar.bz2
pogojig-b74aa3b7ce691126216e659a06808905649dd37b.zip
Reject documents without absolute size.
Reject document which do not have a viewBox and a height attribute with absolute measures. In documents without these, the size of a pixel cannot be determined and the scale out the exported shape depends on the Inkscape version. This fixes #16.
Diffstat (limited to 'support/inkscape/__main__.py')
-rw-r--r--support/inkscape/__main__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/inkscape/__main__.py b/support/inkscape/__main__.py
index e68341e..78ffb55 100644
--- a/support/inkscape/__main__.py
+++ b/support/inkscape/__main__.py
@@ -41,6 +41,7 @@ def main(in_path, out_path):
try:
_, out_suffix = os.path.splitext(out_path)
+ effect.ExportEffect.check_document_units(in_path)
with util.TemporaryDirectory() as temp_dir:
temp_svg_path = os.path.join(temp_dir, os.path.basename(in_path))