1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
--- a/src/img2pdf_test.py
+++ b/src/img2pdf_test.py
@@ -2439,7 +2439,8 @@ def tiff_rgb12_img(tmp_path_factory, tmp
assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
identify
) # FIXME: should be LSB
- assert identify[0]["image"].get("depth") == 12, str(identify)
+ assert identify[0]["image"].get("depth") == 16, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 12, str(identify)
assert identify[0]["image"].get("pageGeometry") == {
"width": 60,
"height": 60,
@@ -2490,7 +2491,8 @@ def tiff_rgb14_img(tmp_path_factory, tmp
assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
identify
) # FIXME: should be LSB
- assert identify[0]["image"].get("depth") == 14, str(identify)
+ assert identify[0]["image"].get("depth") == 16, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 14, str(identify)
assert identify[0]["image"].get("pageGeometry") == {
"width": 60,
"height": 60,
|