File: imdepth.patch

package info (click to toggle)
img2pdf 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,136 kB
  • sloc: python: 9,181; sh: 1,287; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download
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,