forked from josch/img2pdf
Compare commits
3 commits
2c287a6e98
...
4166367318
Author | SHA1 | Date | |
---|---|---|---|
4166367318 | |||
dfcaa52bec | |||
a143e31eb1 |
3 changed files with 5 additions and 212 deletions
|
@ -13,7 +13,6 @@ matrix:
|
||||||
- netpbm
|
- netpbm
|
||||||
- ghostscript
|
- ghostscript
|
||||||
- mupdf-tools
|
- mupdf-tools
|
||||||
- icc-profiles-free
|
|
||||||
- name: "python 3.9 Windows"
|
- name: "python 3.9 Windows"
|
||||||
os: windows
|
os: windows
|
||||||
language: shell # 'language: python' is an error on Travis CI Windows
|
language: shell # 'language: python' is an error on Travis CI Windows
|
||||||
|
|
|
@ -20,6 +20,9 @@ import warnings
|
||||||
import json
|
import json
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
|
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
|
||||||
|
ICC_PROFILE = SCRIPT_DIR / "tests" / "data" / "sRGB.icc"
|
||||||
|
|
||||||
HAVE_MUTOOL = True
|
HAVE_MUTOOL = True
|
||||||
try:
|
try:
|
||||||
ver = subprocess.check_output(["mutool", "-v"], stderr=subprocess.STDOUT)
|
ver = subprocess.check_output(["mutool", "-v"], stderr=subprocess.STDOUT)
|
||||||
|
@ -304,7 +307,7 @@ def compare(im1, im2, exact, icc, cmyk):
|
||||||
else:
|
else:
|
||||||
iccargs = []
|
iccargs = []
|
||||||
if icc:
|
if icc:
|
||||||
iccargs = ["-profile", "/usr/share/color/icc/sRGB.icc"]
|
iccargs = ["-profile", ICC_PROFILE]
|
||||||
psnr = subprocess.run(
|
psnr = subprocess.run(
|
||||||
["compare"]
|
["compare"]
|
||||||
+ iccargs
|
+ iccargs
|
||||||
|
@ -424,7 +427,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False):
|
||||||
"PSNR",
|
"PSNR",
|
||||||
"(",
|
"(",
|
||||||
"-profile",
|
"-profile",
|
||||||
"/usr/share/color/icc/ghostscript/srgb.icc",
|
ICC_PROFILE,
|
||||||
"-depth",
|
"-depth",
|
||||||
"8",
|
"8",
|
||||||
str(img),
|
str(img),
|
||||||
|
@ -968,10 +971,6 @@ def jpg_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "Joint Photographic Experts Group JFIF format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1028,10 +1027,6 @@ def jpg_rot_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "Joint Photographic Experts Group JFIF format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1071,10 +1066,6 @@ def jpg_cmyk_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
assert identify[0]["image"].get("format") == "JPEG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "Joint Photographic Experts Group JFIF format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/jpeg", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1109,9 +1100,6 @@ def jpg_2000_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "JP2", str(identify)
|
assert identify[0]["image"].get("format") == "JP2", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "JPEG-2000 File Format Syntax"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/jp2", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/jp2", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1145,9 +1133,6 @@ def png_rgb8_img(tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1164,7 +1149,6 @@ def png_rgb8_img(tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1198,9 +1182,6 @@ def png_rgb16_img(tmp_normal16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1217,7 +1198,6 @@ def png_rgb16_img(tmp_normal16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
||||||
== "16"
|
== "16"
|
||||||
|
@ -1255,9 +1235,6 @@ def png_rgba8_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1274,7 +1251,6 @@ def png_rgba8_img(tmp_path_factory, tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1309,9 +1285,6 @@ def png_rgba16_img(tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1328,7 +1301,6 @@ def png_rgba16_img(tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
||||||
== "16"
|
== "16"
|
||||||
|
@ -1379,9 +1351,6 @@ def png_gray8a_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1398,7 +1367,6 @@ def png_gray8a_img(tmp_path_factory, tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1445,9 +1413,6 @@ def png_gray16a_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1464,7 +1429,6 @@ def png_gray16a_img(tmp_path_factory, tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
||||||
== "16"
|
== "16"
|
||||||
|
@ -1503,9 +1467,6 @@ def png_interlaced_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1522,7 +1483,6 @@ def png_interlaced_img(tmp_path_factory, tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1558,9 +1518,6 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1577,7 +1534,6 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1612,9 +1568,6 @@ def png_gray2_img(tmp_path_factory, tmp_gray2_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1631,7 +1584,6 @@ def png_gray2_img(tmp_path_factory, tmp_gray2_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1666,9 +1618,6 @@ def png_gray4_img(tmp_path_factory, tmp_gray4_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1685,7 +1634,6 @@ def png_gray4_img(tmp_path_factory, tmp_gray4_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1720,9 +1668,6 @@ def png_gray8_img(tmp_path_factory, tmp_gray8_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1739,7 +1684,6 @@ def png_gray8_img(tmp_path_factory, tmp_gray8_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1774,9 +1718,6 @@ def png_gray16_img(tmp_path_factory, tmp_gray16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1793,7 +1734,6 @@ def png_gray16_img(tmp_path_factory, tmp_gray16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
|
||||||
== "16"
|
== "16"
|
||||||
|
@ -1829,9 +1769,6 @@ def png_palette1_img(tmp_path_factory, tmp_palette1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1848,7 +1785,6 @@ def png_palette1_img(tmp_path_factory, tmp_palette1_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1883,9 +1819,6 @@ def png_palette2_img(tmp_path_factory, tmp_palette2_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1902,7 +1835,6 @@ def png_palette2_img(tmp_path_factory, tmp_palette2_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1937,9 +1869,6 @@ def png_palette4_img(tmp_path_factory, tmp_palette4_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -1956,7 +1885,6 @@ def png_palette4_img(tmp_path_factory, tmp_palette4_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -1991,9 +1919,6 @@ def png_palette8_img(tmp_path_factory, tmp_palette8_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2010,7 +1935,6 @@ def png_palette8_img(tmp_path_factory, tmp_palette8_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2045,10 +1969,6 @@ def gif_transparent_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2084,10 +2004,6 @@ def gif_palette1_img(tmp_path_factory, tmp_palette1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2123,10 +2039,6 @@ def gif_palette2_img(tmp_path_factory, tmp_palette2_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2162,10 +2074,6 @@ def gif_palette4_img(tmp_path_factory, tmp_palette4_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2201,10 +2109,6 @@ def gif_palette8_img(tmp_path_factory, tmp_palette8_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2244,10 +2148,6 @@ def gif_animation_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2277,10 +2177,6 @@ def gif_animation_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
assert identify[0]["image"].get("format") == "GIF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"]["formatDescription"]
|
|
||||||
== "CompuServe graphics interchange format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/gif", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2327,9 +2223,6 @@ def tiff_float_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2351,7 +2244,6 @@ def tiff_float_img(tmp_path_factory, tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("quantum:format")
|
identify[0]["image"].get("properties", {}).get("quantum:format")
|
||||||
== "floating-point"
|
== "floating-point"
|
||||||
|
@ -2384,9 +2276,6 @@ def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2407,7 +2296,6 @@ def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2445,9 +2333,6 @@ def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2468,7 +2353,6 @@ def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2496,9 +2380,6 @@ def tiff_rgb8_img(tmp_path_factory, tmp_normal_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2519,7 +2400,6 @@ def tiff_rgb8_img(tmp_path_factory, tmp_normal_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2548,9 +2428,6 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2575,7 +2452,6 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2604,9 +2480,6 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2631,7 +2504,6 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2660,9 +2532,6 @@ def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2683,7 +2552,6 @@ def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2712,9 +2580,6 @@ def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2735,7 +2600,6 @@ def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2764,9 +2628,6 @@ def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2787,7 +2648,6 @@ def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2814,9 +2674,6 @@ def tiff_gray1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2837,7 +2694,6 @@ def tiff_gray1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2865,9 +2721,6 @@ def tiff_gray2_img(tmp_path_factory, tmp_gray2_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2888,7 +2741,6 @@ def tiff_gray2_img(tmp_path_factory, tmp_gray2_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2916,9 +2768,6 @@ def tiff_gray4_img(tmp_path_factory, tmp_gray4_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2939,7 +2788,6 @@ def tiff_gray4_img(tmp_path_factory, tmp_gray4_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -2967,9 +2815,6 @@ def tiff_gray8_img(tmp_path_factory, tmp_gray8_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -2990,7 +2835,6 @@ def tiff_gray8_img(tmp_path_factory, tmp_gray8_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3018,9 +2862,6 @@ def tiff_gray16_img(tmp_path_factory, tmp_gray16_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3041,7 +2882,6 @@ def tiff_gray16_img(tmp_path_factory, tmp_gray16_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3073,9 +2913,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3096,7 +2933,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3117,9 +2953,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3140,7 +2973,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3168,9 +3000,6 @@ def tiff_palette1_img(tmp_path_factory, tmp_palette1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3193,7 +3022,6 @@ def tiff_palette1_img(tmp_path_factory, tmp_palette1_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3220,9 +3048,6 @@ def tiff_palette2_img(tmp_path_factory, tmp_palette2_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3245,7 +3070,6 @@ def tiff_palette2_img(tmp_path_factory, tmp_palette2_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3272,9 +3096,6 @@ def tiff_palette4_img(tmp_path_factory, tmp_palette4_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3297,7 +3118,6 @@ def tiff_palette4_img(tmp_path_factory, tmp_palette4_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3324,9 +3144,6 @@ def tiff_palette8_img(tmp_path_factory, tmp_palette8_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3348,7 +3165,6 @@ def tiff_palette8_img(tmp_path_factory, tmp_palette8_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
@ -3389,9 +3205,6 @@ def tiff_ccitt_lsb_m2l_white_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3471,9 +3284,6 @@ def tiff_ccitt_msb_m2l_white_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3554,9 +3364,6 @@ def tiff_ccitt_msb_l2m_white_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3642,9 +3449,6 @@ def tiff_ccitt_lsb_m2l_black_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3733,9 +3537,6 @@ def tiff_ccitt_nometa1_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3818,9 +3619,6 @@ def tiff_ccitt_nometa2_img(tmp_path_factory, tmp_gray1_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
assert identify[0]["image"].get("format") == "TIFF", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Tagged Image File Format"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3880,9 +3678,6 @@ def png_icc_img(tmp_icc_png):
|
||||||
identify = [identify]
|
identify = [identify]
|
||||||
assert "image" in identify[0]
|
assert "image" in identify[0]
|
||||||
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
assert identify[0]["image"].get("format") == "PNG", str(identify)
|
||||||
assert (
|
|
||||||
identify[0]["image"].get("formatDescription") == "Portable Network Graphics"
|
|
||||||
), str(identify)
|
|
||||||
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
assert identify[0]["image"].get("mimeType") == "image/png", str(identify)
|
||||||
assert identify[0]["image"].get("geometry") == {
|
assert identify[0]["image"].get("geometry") == {
|
||||||
"width": 60,
|
"width": 60,
|
||||||
|
@ -3899,7 +3694,6 @@ def png_icc_img(tmp_icc_png):
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 0,
|
"y": 0,
|
||||||
}, str(identify)
|
}, str(identify)
|
||||||
assert identify[0]["image"].get("compression") == "Zip", str(identify)
|
|
||||||
assert (
|
assert (
|
||||||
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
|
||||||
), str(identify)
|
), str(identify)
|
||||||
|
|
BIN
src/tests/data/sRGB.icc
Normal file
BIN
src/tests/data/sRGB.icc
Normal file
Binary file not shown.
Loading…
Reference in a new issue