From c97ea1f2a98f81b266dbb4a78014c1be63b4c9b3 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 6 May 2017 22:34:01 -0700 Subject: [PATCH] Update high DPI test case to confirm the output image is not downsampled --- tests/test_main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_main.py b/tests/test_main.py index 3cc87335..e38e6217 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -749,6 +749,11 @@ def test_very_high_dpi(spoof_tesseract_cache, resources, outpdf): "Checks for a Decimal quantize error with high DPI, etc" check_ocrmypdf(resources / '2400dpi.pdf', outpdf, env=spoof_tesseract_cache) + pdfinfo = pdf_get_all_pageinfo(outpdf) + + image = pdfinfo[0]['images'][0] + assert image['dpi_w'] == image['dpi_h'] + assert image['dpi_w'] == 2400 def test_overlay(spoof_tesseract_noop, resources, outpdf):