1
0
Fork 0
forked from josch/img2pdf

src/img2pdf_test.py: allow Bilevel as well as Grayscale type for png_gray1_img (closes: #161)

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-06-11 13:24:30 +02:00
parent 85cbe1d128
commit 64d27f4a8b
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -1628,7 +1628,7 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
"y": 0, "y": 0,
}, str(identify) }, str(identify)
assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify)
assert identify[0]["image"].get("type") == "Bilevel", str(identify) assert identify[0]["image"].get("type") in ["Bilevel", "Grayscale"], str(identify)
assert identify[0]["image"].get("depth") == 1, str(identify) assert identify[0]["image"].get("depth") == 1, str(identify)
assert identify[0]["image"].get("pageGeometry") == { assert identify[0]["image"].get("pageGeometry") == {
"width": 60, "width": 60,