[PATCH 4/4] regtest: render cairo at 72ppi
Adrian Johnson
ajohnson at redneon.com
Mon Sep 19 05:34:27 PDT 2011
For consistency with splash. It is faster and easier to compare with splash results.
---
regtest/backends/cairo.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/regtest/backends/cairo.py b/regtest/backends/cairo.py
index 0ec361f..a990ddf 100644
--- a/regtest/backends/cairo.py
+++ b/regtest/backends/cairo.py
@@ -28,8 +28,8 @@ class Cairo(Backend):
def create_refs(self, doc_path, refs_path):
out_path = os.path.join(refs_path, 'cairo')
- p1 = subprocess.Popen([self._pdftocairo, '-cropbox', '-e', '-png', doc_path, out_path], stderr = subprocess.PIPE)
- p2 = subprocess.Popen([self._pdftocairo, '-cropbox', '-o', '-png', doc_path, out_path], stderr = subprocess.PIPE)
+ p1 = subprocess.Popen([self._pdftocairo, '-cropbox', '-r', '72', '-e', '-png', doc_path, out_path], stderr = subprocess.PIPE)
+ p2 = subprocess.Popen([self._pdftocairo, '-cropbox', '-r', '72', '-o', '-png', doc_path, out_path], stderr = subprocess.PIPE)
return self._check_exit_status2(p1, p2, out_path)
def _create_diff(self, ref_path, result_path):
--
1.7.4.1
--------------030001020904050704020307--
More information about the poppler
mailing list