Compare commits

...

4 commits

2 changed files with 19 additions and 212 deletions

View file

@ -13,7 +13,6 @@ matrix:
- netpbm
- ghostscript
- mupdf-tools
- icc-profiles-free
- name: "python 3.9 Windows"
os: windows
language: shell # 'language: python' is an error on Travis CI Windows

View file

@ -20,6 +20,19 @@ import warnings
import json
import pathlib
SCRIPT_DIR = pathlib.Path(__file__).resolve().parent
ICC_PROFILE = None
ICC_PROFILE_PATHS = (
"/usr/share/color/icc/ghostscript/srgb.icc",
"/usr/share/ghostscript/9.54.0/iccprofiles/srgb.icc",
"/usr/share/color/icc/sRGB.icc",
"/usr/share/color/icc/OpenICC/sRGB.icc",
)
for path in ICC_PROFILE_PATHS:
if os.path.exists(path):
ICC_PROFILE = path
break
HAVE_MUTOOL = True
try:
ver = subprocess.check_output(["mutool", "-v"], stderr=subprocess.STDOUT)
@ -304,7 +317,9 @@ def compare(im1, im2, exact, icc, cmyk):
else:
iccargs = []
if icc:
iccargs = ["-profile", "/usr/share/color/icc/sRGB.icc"]
if ICC_PROFILE is None:
pytest.skip("Could not locate an ICC profile")
iccargs = ["-profile", ICC_PROFILE]
psnr = subprocess.run(
["compare"]
+ iccargs
@ -417,6 +432,8 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False):
)
else:
if icc:
if ICC_PROFILE is None:
pytest.skip("Could not locate an ICC profile")
psnr = subprocess.run(
[
"compare",
@ -424,7 +441,7 @@ def compare_pdfimages_png(tmpdir, img, pdf, exact=True, icc=False):
"PSNR",
"(",
"-profile",
"/usr/share/color/icc/ghostscript/srgb.icc",
ICC_PROFILE,
"-depth",
"8",
str(img),
@ -968,10 +985,6 @@ def jpg_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1028,10 +1041,6 @@ def jpg_rot_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1071,10 +1080,6 @@ def jpg_cmyk_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1109,9 +1114,6 @@ def jpg_2000_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1145,9 +1147,6 @@ def png_rgb8_img(tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1164,7 +1163,6 @@ def png_rgb8_img(tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -1198,9 +1196,6 @@ def png_rgb16_img(tmp_normal16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1217,7 +1212,6 @@ def png_rgb16_img(tmp_normal16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
== "16"
@ -1255,9 +1249,6 @@ def png_rgba8_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1274,7 +1265,6 @@ def png_rgba8_img(tmp_path_factory, tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -1309,9 +1299,6 @@ def png_rgba16_img(tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1328,7 +1315,6 @@ def png_rgba16_img(tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
== "16"
@ -1379,9 +1365,6 @@ def png_gray8a_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1398,7 +1381,6 @@ def png_gray8a_img(tmp_path_factory, tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -1445,9 +1427,6 @@ def png_gray16a_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1464,7 +1443,6 @@ def png_gray16a_img(tmp_path_factory, tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
== "16"
@ -1503,9 +1481,6 @@ def png_interlaced_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1522,7 +1497,6 @@ def png_interlaced_img(tmp_path_factory, tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -1558,9 +1532,6 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1577,7 +1548,6 @@ def png_gray1_img(tmp_path_factory, tmp_gray1_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
), str(identify)
@ -1612,9 +1582,6 @@ def png_gray2_img(tmp_path_factory, tmp_gray2_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1631,7 +1598,6 @@ def png_gray2_img(tmp_path_factory, tmp_gray2_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
), str(identify)
@ -1666,9 +1632,6 @@ def png_gray4_img(tmp_path_factory, tmp_gray4_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1685,7 +1648,6 @@ def png_gray4_img(tmp_path_factory, tmp_gray4_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
), str(identify)
@ -1720,9 +1682,6 @@ def png_gray8_img(tmp_path_factory, tmp_gray8_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1739,7 +1698,6 @@ def png_gray8_img(tmp_path_factory, tmp_gray8_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -1774,9 +1732,6 @@ def png_gray16_img(tmp_path_factory, tmp_gray16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1793,7 +1748,6 @@ def png_gray16_img(tmp_path_factory, tmp_gray16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig")
== "16"
@ -1829,9 +1783,6 @@ def png_palette1_img(tmp_path_factory, tmp_palette1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1848,7 +1799,6 @@ def png_palette1_img(tmp_path_factory, tmp_palette1_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "1"
), str(identify)
@ -1883,9 +1833,6 @@ def png_palette2_img(tmp_path_factory, tmp_palette2_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1902,7 +1849,6 @@ def png_palette2_img(tmp_path_factory, tmp_palette2_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "2"
), str(identify)
@ -1937,9 +1883,6 @@ def png_palette4_img(tmp_path_factory, tmp_palette4_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -1956,7 +1899,6 @@ def png_palette4_img(tmp_path_factory, tmp_palette4_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "4"
), str(identify)
@ -1991,9 +1933,6 @@ def png_palette8_img(tmp_path_factory, tmp_palette8_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2010,7 +1949,6 @@ def png_palette8_img(tmp_path_factory, tmp_palette8_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)
@ -2045,10 +1983,6 @@ def gif_transparent_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2084,10 +2018,6 @@ def gif_palette1_img(tmp_path_factory, tmp_palette1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2123,10 +2053,6 @@ def gif_palette2_img(tmp_path_factory, tmp_palette2_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2162,10 +2088,6 @@ def gif_palette4_img(tmp_path_factory, tmp_palette4_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2201,10 +2123,6 @@ def gif_palette8_img(tmp_path_factory, tmp_palette8_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2244,10 +2162,6 @@ def gif_animation_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2277,10 +2191,6 @@ def gif_animation_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2327,9 +2237,6 @@ def tiff_float_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2351,7 +2258,6 @@ def tiff_float_img(tmp_path_factory, tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("quantum:format")
== "floating-point"
@ -2384,9 +2290,6 @@ def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2407,7 +2310,6 @@ def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2445,9 +2347,6 @@ def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2468,7 +2367,6 @@ def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2496,9 +2394,6 @@ def tiff_rgb8_img(tmp_path_factory, tmp_normal_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2519,7 +2414,6 @@ def tiff_rgb8_img(tmp_path_factory, tmp_normal_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2548,9 +2442,6 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2575,7 +2466,6 @@ def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2604,9 +2494,6 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2631,7 +2518,6 @@ def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2660,9 +2546,6 @@ def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2683,7 +2566,6 @@ def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2712,9 +2594,6 @@ def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2735,7 +2614,6 @@ def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
), str(identify)
@ -2764,9 +2642,6 @@ def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2787,7 +2662,6 @@ def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unassociated"
), str(identify)
@ -2814,9 +2688,6 @@ def tiff_gray1_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2837,7 +2708,6 @@ def tiff_gray1_img(tmp_path_factory, tmp_gray1_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2865,9 +2735,6 @@ def tiff_gray2_img(tmp_path_factory, tmp_gray2_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2888,7 +2755,6 @@ def tiff_gray2_img(tmp_path_factory, tmp_gray2_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2916,9 +2782,6 @@ def tiff_gray4_img(tmp_path_factory, tmp_gray4_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2939,7 +2802,6 @@ def tiff_gray4_img(tmp_path_factory, tmp_gray4_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -2967,9 +2829,6 @@ def tiff_gray8_img(tmp_path_factory, tmp_gray8_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -2990,7 +2849,6 @@ def tiff_gray8_img(tmp_path_factory, tmp_gray8_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3018,9 +2876,6 @@ def tiff_gray16_img(tmp_path_factory, tmp_gray16_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3041,7 +2896,6 @@ def tiff_gray16_img(tmp_path_factory, tmp_gray16_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3073,9 +2927,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3096,7 +2947,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3117,9 +2967,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3140,7 +2987,6 @@ def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3168,9 +3014,6 @@ def tiff_palette1_img(tmp_path_factory, tmp_palette1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3193,7 +3036,6 @@ def tiff_palette1_img(tmp_path_factory, tmp_palette1_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3220,9 +3062,6 @@ def tiff_palette2_img(tmp_path_factory, tmp_palette2_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3245,7 +3084,6 @@ def tiff_palette2_img(tmp_path_factory, tmp_palette2_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3272,9 +3110,6 @@ def tiff_palette4_img(tmp_path_factory, tmp_palette4_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3297,7 +3132,6 @@ def tiff_palette4_img(tmp_path_factory, tmp_palette4_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3324,9 +3158,6 @@ def tiff_palette8_img(tmp_path_factory, tmp_palette8_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3348,7 +3179,6 @@ def tiff_palette8_img(tmp_path_factory, tmp_palette8_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
), str(identify)
@ -3389,9 +3219,6 @@ def tiff_ccitt_lsb_m2l_white_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3471,9 +3298,6 @@ def tiff_ccitt_msb_m2l_white_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3554,9 +3378,6 @@ def tiff_ccitt_msb_l2m_white_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3642,9 +3463,6 @@ def tiff_ccitt_lsb_m2l_black_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3733,9 +3551,6 @@ def tiff_ccitt_nometa1_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3818,9 +3633,6 @@ def tiff_ccitt_nometa2_img(tmp_path_factory, tmp_gray1_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3880,9 +3692,6 @@ def png_icc_img(tmp_icc_png):
identify = [identify]
assert "image" in identify[0]
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("geometry") == {
"width": 60,
@ -3899,7 +3708,6 @@ def png_icc_img(tmp_icc_png):
"x": 0,
"y": 0,
}, str(identify)
assert identify[0]["image"].get("compression") == "Zip", str(identify)
assert (
identify[0]["image"].get("properties", {}).get("png:IHDR.bit-depth-orig") == "8"
), str(identify)