src/img2pdf_test.py: compare icc images as non-exact

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-04-12 06:21:29 +02:00
parent 0e4f0047b2
commit d08d8c5be9
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -5471,9 +5471,9 @@ def test_png_palette8(tmp_path_factory, png_palette8_img, png_palette8_pdf):
)
def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf):
tmpdir = tmp_path_factory.mktemp("png_icc")
compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, icc=True)
compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, exact=False, icc=True)
compare_poppler(tmpdir, png_icc_img, png_icc_pdf, exact=False, icc=True)
# mupdf ignores the ICC profile
# mupdf ignores the ICC profile in Debian (needs patched thirdparty liblcms2-art)
compare_pdfimages_png(tmpdir, png_icc_img, png_icc_pdf, exact=False, icc=True)