Update high DPI test case to confirm the output image is not downsampled

This commit is contained in:
James R. Barlow
2017-05-06 22:34:01 -07:00
parent fd27df2abb
commit c97ea1f2a9
+5
View File
@@ -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):