summaryrefslogtreecommitdiffstats
path: root/fedora_business_cards
diff options
context:
space:
mode:
authorIan Weller <ianweller@gmail.com>2008-10-01 19:48:16 -0500
committerIan Weller <ianweller@gmail.com>2008-10-01 19:48:16 -0500
commit255ef779a5dd3fe34febb53c05664fc7c4755cf7 (patch)
tree2dd8868ac652071c6573d02f7512b5f4421690a5 /fedora_business_cards
parent6d1a7721d161405d5fcb4e51850f896907ba9391 (diff)
downloadfedora-business-cards-255ef779a5dd3fe34febb53c05664fc7c4755cf7.tar.gz
fedora-business-cards-255ef779a5dd3fe34febb53c05664fc7c4755cf7.tar.xz
fedora-business-cards-255ef779a5dd3fe34febb53c05664fc7c4755cf7.zip
Add some command line options to inkscape
Diffstat (limited to 'fedora_business_cards')
-rw-r--r--fedora_business_cards/export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fedora_business_cards/export.py b/fedora_business_cards/export.py
index 1adf7ba..5e4c23e 100644
--- a/fedora_business_cards/export.py
+++ b/fedora_business_cards/export.py
@@ -42,7 +42,7 @@ def svg_to_pdf_png(xmlstring, filename, format='png', dpi=300):
dpi = DPI to export PNG with (default: 300)
"""
stdin = xmlstring.encode('utf-8')
- command = ['inkscape', '-d', str(dpi), '-e', filename, '/dev/stdin']
+ command = ['inkscape', '-C -z -d', str(dpi), '-e', filename, '/dev/stdin']
if format == 'png':
sp = subprocess.Popen(' '.join(command), shell=True,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,)