From 255ef779a5dd3fe34febb53c05664fc7c4755cf7 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 1 Oct 2008 19:48:16 -0500 Subject: Add some command line options to inkscape --- fedora_business_cards/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fedora_business_cards') 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,) -- cgit