Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing setuptools-build-hook Using setuptoolsBuildPhase Using setuptoolsShellHook Sourcing pip-install-hook Using pipInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-namespaces-hook Sourcing setuptools-check-hook Using setuptoolsCheckPhase Sourcing pytest-check-hook Using pytestCheckPhase Removing setuptoolsCheckPhase @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/a07lg5fmm5019mwr53sqxsqmdfkj8pkq-img2pdf-0.4.3.tar.gz source root is img2pdf-0.4.3 setting SOURCE_DATE_EPOCH to timestamp 1635087090 of file img2pdf-0.4.3/setup.cfg @nix { "action": "setPhase", "phase": "patchPhase" } patching sources @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "configurePhase" } configuring no configure script, doing nothing @nix { "action": "setPhase", "phase": "buildPhase" } building Executing setuptoolsBuildPhase running bdist_wheel running build running build_py creating build creating build/lib copying src/img2pdf.py -> build/lib copying src/jp2.py -> build/lib running egg_info writing src/img2pdf.egg-info/PKG-INFO writing dependency_links to src/img2pdf.egg-info/dependency_links.txt writing entry points to src/img2pdf.egg-info/entry_points.txt writing requirements to src/img2pdf.egg-info/requires.txt writing top-level names to src/img2pdf.egg-info/top_level.txt reading manifest file 'src/img2pdf.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'test.sh' warning: no files found matching 'magick.py' adding license file 'LICENSE' writing manifest file 'src/img2pdf.egg-info/SOURCES.txt' installing to build/bdist.linux-aarch64/wheel running install running install_lib creating build/bdist.linux-aarch64 creating build/bdist.linux-aarch64/wheel copying build/lib/jp2.py -> build/bdist.linux-aarch64/wheel copying build/lib/img2pdf.py -> build/bdist.linux-aarch64/wheel running install_egg_info Copying src/img2pdf.egg-info to build/bdist.linux-aarch64/wheel/img2pdf-0.4.3-py3.9.egg-info running install_scripts adding license file "LICENSE" (matched pattern "LICEN[CS]E*") creating build/bdist.linux-aarch64/wheel/img2pdf-0.4.3.dist-info/WHEEL creating 'dist/img2pdf-0.4.3-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'img2pdf.py' adding 'jp2.py' adding 'img2pdf-0.4.3.dist-info/LICENSE' adding 'img2pdf-0.4.3.dist-info/METADATA' adding 'img2pdf-0.4.3.dist-info/WHEEL' adding 'img2pdf-0.4.3.dist-info/entry_points.txt' adding 'img2pdf-0.4.3.dist-info/pbr.json' adding 'img2pdf-0.4.3.dist-info/top_level.txt' adding 'img2pdf-0.4.3.dist-info/zip-safe' adding 'img2pdf-0.4.3.dist-info/RECORD' removing build/bdist.linux-aarch64/wheel Finished executing setuptoolsBuildPhase @nix { "action": "setPhase", "phase": "glibPreInstallPhase" } glibPreInstallPhase @nix { "action": "setPhase", "phase": "installPhase" } installing Executing pipInstallPhase /build/img2pdf-0.4.3/dist /build/img2pdf-0.4.3 Processing ./img2pdf-0.4.3-py3-none-any.whl Requirement already satisfied: pikepdf in /nix/store/dp5zhqb9xj21clcqhzmb06x7a0is4w90-python3.9-pikepdf-4.2.0/lib/python3.9/site-packages (from img2pdf==0.4.3) (4.2.0) Requirement already satisfied: Pillow in /nix/store/035z0riric0vw6xahzgj2rvzjq00ql7m-python3.9-Pillow-8.4.0/lib/python3.9/site-packages (from img2pdf==0.4.3) (8.4.0) Requirement already satisfied: lxml>=4.0 in /nix/store/hfbk7v1p206wwa02flx4qpq2i55x0wcr-python3.9-lxml-4.6.4-5/lib/python3.9/site-packages (from pikepdf->img2pdf==0.4.3) (4.6.4) Installing collected packages: img2pdf Successfully installed img2pdf-0.4.3 /build/img2pdf-0.4.3 Finished executing pipInstallPhase @nix { "action": "setPhase", "phase": "glibPreFixupPhase" } glibPreFixupPhase @nix { "action": "setPhase", "phase": "fixupPhase" } post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3 strip is /nix/store/jzqbpnkmlddcgkmhs89ki2q84bqyjs34-gcc-wrapper-9.3.0/bin/strip stripping (with command strip and flags -S) in /nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3/lib /nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3/bin patching script interpreter paths in /nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3 checking for references to /build/ in /nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3... Rewriting #!/nix/store/1kd9waqj6a8jcvcjjnkfw4l5m2043ymk-python3-3.9.9/bin/python3.9 to #!/nix/store/1kd9waqj6a8jcvcjjnkfw4l5m2043ymk-python3-3.9.9 wrapping `/nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3/bin/img2pdf-gui'... Rewriting #!/nix/store/1kd9waqj6a8jcvcjjnkfw4l5m2043ymk-python3-3.9.9/bin/python3.9 to #!/nix/store/1kd9waqj6a8jcvcjjnkfw4l5m2043ymk-python3-3.9.9 wrapping `/nix/store/lhmw810zs6gpcca3z2iipmnsxrncadpf-python3.9-img2pdf-0.4.3/bin/img2pdf'... Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir @nix { "action": "setPhase", "phase": "installCheckPhase" } running install tests no Makefile or custom installCheckPhase, doing nothing @nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" } pythonCatchConflictsPhase @nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" } pythonRemoveBinBytecodePhase @nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" } pythonImportsCheckPhase Executing pythonImportsCheckPhase Check whether the following modules can be imported: img2pdf @nix { "action": "setPhase", "phase": "pytestCheckPhase" } pytestCheckPhase Executing pytestCheckPhase ============================= test session starts ============================== platform linux -- Python 3.9.9, pytest-6.2.5, py-1.11.0, pluggy-1.0.0 rootdir: /build/img2pdf-0.4.3 collecting ...  collecting 301 items  collected 301 items / 12 deselected / 289 selected  src/img2pdf_test.py ......ss................................ss.......... [ 17%] ..EEEEEEEEEEEEEEEEEEEEEEEEEE............................................ [ 42%] ........................................................................ [ 67%] ........................................................................ [ 92%] ..................... [100%] ==================================== ERRORS ==================================== _________________ ERROR at setup of test_tiff_float[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_float_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-depth", "32", "-define", "quantum:format=floating-point", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "TrueColor", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 32, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19055.6, 'median': 0, 'standardDeviation': 27243.5, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19057.6, 'median': 0, 'standardDeviation': 27236.4, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 65535, 'mean': 19088.9, 'median': 0, 'standardDeviation': 27257.5, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 65535, 'mean': 19020.4, 'median': 0, 'standardDeviation': 27236.6, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '89879B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 32, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2298: AssertionError __________________ ERROR at setup of test_tiff_float[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_float_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-depth", "32", "-define", "quantum:format=floating-point", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "TrueColor", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 32, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19055.6, 'median': 0, 'standardDeviation': 27243.5, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19057.6, 'median': 0, 'standardDeviation': 27236.4, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 65535, 'mean': 19088.9, 'median': 0, 'standardDeviation': 27257.5, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 65535, 'mean': 19020.4, 'median': 0, 'standardDeviation': 27236.6, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '89879B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 32, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2298: AssertionError _________________ ERROR at setup of test_tiff_cmyk8[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_cmyk8") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-colorspace", "cmyk", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "CMYK", str(identify) assert identify[0]["image"].get("type") == "ColorSeparation", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_cmyk80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'ColorSeparation', 'endianness': 'MSB', 'colorspace': 'CMYK', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'cyan': 8, 'magenta': 8, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 109.364, 'median': 63.75, 'standardDeviation': 119.38, 'kurtosis': -1.83677, 'skewness': 0.283457, 'entropy': 0.386969}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 255, 'mean': 111.073, 'median': 0, 'standardDeviation': 122.544, 'kurtosis': -1.88637, 'skewness': 0.256167, 'entropy': 0.313817}, 'magenta': {'min': 0, 'max': 255, 'mean': 112.166, 'median': 0, 'standardDeviation': 122.27, 'kurtosis': -1.8898, 'skewness': 0.238371, 'entropy': 0.312564}, 'yellow': {'min': 0, 'max': 255, 'mean': 112.434, 'median': 0, 'standardDeviation': 122.348, 'kurtosis': -1.89217, 'skewness': 0.234551, 'entropy': 0.311477}, 'black': {'min': 0, 'max': 255, 'mean': 101.782, 'median': 255, 'standardDeviation': 110.36, 'kurtosis': -1.64994, 'skewness': 0.400325, 'entropy': 0.610017}}, 'totalInkDensity': '299.216%', 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '3080B', 'numberPixels': '3600', 'pixelsPerSecond': '82339B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2359: AssertionError __________________ ERROR at setup of test_tiff_cmyk8[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_cmyk8") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-colorspace", "cmyk", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "CMYK", str(identify) assert identify[0]["image"].get("type") == "ColorSeparation", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_cmyk80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'ColorSeparation', 'endianness': 'MSB', 'colorspace': 'CMYK', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'cyan': 8, 'magenta': 8, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 109.364, 'median': 63.75, 'standardDeviation': 119.38, 'kurtosis': -1.83677, 'skewness': 0.283457, 'entropy': 0.386969}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 255, 'mean': 111.073, 'median': 0, 'standardDeviation': 122.544, 'kurtosis': -1.88637, 'skewness': 0.256167, 'entropy': 0.313817}, 'magenta': {'min': 0, 'max': 255, 'mean': 112.166, 'median': 0, 'standardDeviation': 122.27, 'kurtosis': -1.8898, 'skewness': 0.238371, 'entropy': 0.312564}, 'yellow': {'min': 0, 'max': 255, 'mean': 112.434, 'median': 0, 'standardDeviation': 122.348, 'kurtosis': -1.89217, 'skewness': 0.234551, 'entropy': 0.311477}, 'black': {'min': 0, 'max': 255, 'mean': 101.782, 'median': 255, 'standardDeviation': 110.36, 'kurtosis': -1.64994, 'skewness': 0.400325, 'entropy': 0.610017}}, 'totalInkDensity': '299.216%', 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '3080B', 'numberPixels': '3600', 'pixelsPerSecond': '82339B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2359: AssertionError _________________ ERROR at setup of test_tiff_cmyk16[internal] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_cmyk16") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-depth", "16", "-colorspace", "cmyk", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "CMYK", str(identify) assert identify[0]["image"].get("type") == "ColorSeparation", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_cmyk160/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'ColorSeparation', 'endianness': 'MSB', 'colorspace': 'CMYK', 'depth': 16, 'baseDepth': 16, 'channelDepth': {'cyan': 16, 'magenta': 16, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 28106.2, 'median': 16383.8, 'standardDeviation': 30679.2, 'kurtosis': -1.83663, 'skewness': 0.283467, 'entropy': 0.380729}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 65535, 'mean': 28545.4, 'median': 0, 'standardDeviation': 31491.6, 'kurtosis': -1.8862, 'skewness': 0.256177, 'entropy': 0.307185}, 'magenta': {'min': 0, 'max': 65535, 'mean': 28826.3, 'median': 0, 'standardDeviation': 31421.2, 'kurtosis': -1.88962, 'skewness': 0.238392, 'entropy': 0.303386}, 'yellow': {'min': 0, 'max': 65535, 'mean': 28895, 'median': 0, 'standardDeviation': 31441.4, 'kurtosis': -1.89199, 'skewness': 0.234569, 'entropy': 0.30233}, 'black': {'min': 0, 'max': 65535, 'mean': 26158, 'median': 65535, 'standardDeviation': 28362.5, 'kurtosis': -1.64994, 'skewness': 0.400325, 'entropy': 0.610017}}, 'totalInkDensity': '299.216%', 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'c691d0d59f0f71a8dedae7cb5048ac0ca431dc7b71ac89a83b6b2a44a616a442', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '4660B', 'numberPixels': '3600', 'pixelsPerSecond': '82954B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2418: AssertionError _________________ ERROR at setup of test_tiff_cmyk16[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_cmyk16") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-depth", "16", "-colorspace", "cmyk", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "CMYK", str(identify) assert identify[0]["image"].get("type") == "ColorSeparation", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_cmyk160/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'ColorSeparation', 'endianness': 'MSB', 'colorspace': 'CMYK', 'depth': 16, 'baseDepth': 16, 'channelDepth': {'cyan': 16, 'magenta': 16, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 28106.2, 'median': 16383.8, 'standardDeviation': 30679.2, 'kurtosis': -1.83663, 'skewness': 0.283467, 'entropy': 0.380729}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 65535, 'mean': 28545.4, 'median': 0, 'standardDeviation': 31491.6, 'kurtosis': -1.8862, 'skewness': 0.256177, 'entropy': 0.307185}, 'magenta': {'min': 0, 'max': 65535, 'mean': 28826.3, 'median': 0, 'standardDeviation': 31421.2, 'kurtosis': -1.88962, 'skewness': 0.238392, 'entropy': 0.303386}, 'yellow': {'min': 0, 'max': 65535, 'mean': 28895, 'median': 0, 'standardDeviation': 31441.4, 'kurtosis': -1.89199, 'skewness': 0.234569, 'entropy': 0.30233}, 'black': {'min': 0, 'max': 65535, 'mean': 26158, 'median': 65535, 'standardDeviation': 28362.5, 'kurtosis': -1.64994, 'skewness': 0.400325, 'entropy': 0.610017}}, 'totalInkDensity': '299.216%', 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'c691d0d59f0f71a8dedae7cb5048ac0ca431dc7b71ac89a83b6b2a44a616a442', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '4660B', 'numberPixels': '3600', 'pixelsPerSecond': '82954B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2418: AssertionError _________________ ERROR at setup of test_tiff_gray1[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray1_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray1_png0/gray1.png') @pytest.fixture(scope="session") def tiff_gray1_img(tmp_path_factory, tmp_gray1_png): in_img = tmp_path_factory.mktemp("tiff_gray1") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray1_png), "-depth", "1", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Bilevel", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray10/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Bilevel', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '562B', 'numberPixels': '3600', 'pixelsPerSecond': '92324B', 'userTime': '0.040u', 'elapsedTime': '0:01.038', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 1, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2810: AssertionError __________________ ERROR at setup of test_tiff_gray1[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray1_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray1_png0/gray1.png') @pytest.fixture(scope="session") def tiff_gray1_img(tmp_path_factory, tmp_gray1_png): in_img = tmp_path_factory.mktemp("tiff_gray1") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray1_png), "-depth", "1", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Bilevel", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray10/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Bilevel', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '562B', 'numberPixels': '3600', 'pixelsPerSecond': '92324B', 'userTime': '0.040u', 'elapsedTime': '0:01.038', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 1, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2810: AssertionError _________________ ERROR at setup of test_tiff_gray2[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray2_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray2_png0/gray2.png') @pytest.fixture(scope="session") def tiff_gray2_img(tmp_path_factory, tmp_gray2_png): in_img = tmp_path_factory.mktemp("tiff_gray2") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray2_png), "-depth", "2", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray20/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 2, 'baseDepth': 2, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 3, 'mean': 1.315, 'median': 0, 'standardDeviation': 1.0873, 'kurtosis': -1.24094, 'skewness': 0.236132, 'entropy': 0.989108}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '714B', 'numberPixels': '3600', 'pixelsPerSecond': '90055B', 'userTime': '0.040u', 'elapsedTime': '0:01.039', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 2, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2867: AssertionError __________________ ERROR at setup of test_tiff_gray2[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray2_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray2_png0/gray2.png') @pytest.fixture(scope="session") def tiff_gray2_img(tmp_path_factory, tmp_gray2_png): in_img = tmp_path_factory.mktemp("tiff_gray2") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray2_png), "-depth", "2", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray20/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 2, 'baseDepth': 2, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 3, 'mean': 1.315, 'median': 0, 'standardDeviation': 1.0873, 'kurtosis': -1.24094, 'skewness': 0.236132, 'entropy': 0.989108}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '714B', 'numberPixels': '3600', 'pixelsPerSecond': '90055B', 'userTime': '0.040u', 'elapsedTime': '0:01.039', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 2, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2867: AssertionError _________________ ERROR at setup of test_tiff_gray4[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray4_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray4_png0/gray4.png') @pytest.fixture(scope="session") def tiff_gray4_img(tmp_path_factory, tmp_gray4_png): in_img = tmp_path_factory.mktemp("tiff_gray4") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray4_png), "-depth", "4", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray40/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 4, 'baseDepth': 4, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 15, 'mean': 6.58306, 'median': 0, 'standardDeviation': 5.14943, 'kurtosis': -1.33592, 'skewness': 0.173306, 'entropy': 0.92194}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1056B', 'numberPixels': '3600', 'pixelsPerSecond': '90478B', 'userTime': '0.040u', 'elapsedTime': '0:01.039', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 4, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2924: AssertionError __________________ ERROR at setup of test_tiff_gray4[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray4_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray4_png0/gray4.png') @pytest.fixture(scope="session") def tiff_gray4_img(tmp_path_factory, tmp_gray4_png): in_img = tmp_path_factory.mktemp("tiff_gray4") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray4_png), "-depth", "4", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray40/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 4, 'baseDepth': 4, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 15, 'mean': 6.58306, 'median': 0, 'standardDeviation': 5.14943, 'kurtosis': -1.33592, 'skewness': 0.173306, 'entropy': 0.92194}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1056B', 'numberPixels': '3600', 'pixelsPerSecond': '90478B', 'userTime': '0.040u', 'elapsedTime': '0:01.039', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 4, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2924: AssertionError _________________ ERROR at setup of test_tiff_gray8[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray8_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray8_png0/gray8.png') @pytest.fixture(scope="session") def tiff_gray8_img(tmp_path_factory, tmp_gray8_png): in_img = tmp_path_factory.mktemp("tiff_gray8") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray8_png), "-depth", "8", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 254, 'mean': 111.517, 'median': 0, 'standardDeviation': 87.1815, 'kurtosis': -1.3425, 'skewness': 0.17345, 'entropy': 0.803611}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1706B', 'numberPixels': '3600', 'pixelsPerSecond': '89092B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2981: AssertionError __________________ ERROR at setup of test_tiff_gray8[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray8_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray8_png0/gray8.png') @pytest.fixture(scope="session") def tiff_gray8_img(tmp_path_factory, tmp_gray8_png): in_img = tmp_path_factory.mktemp("tiff_gray8") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray8_png), "-depth", "8", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 254, 'mean': 111.517, 'median': 0, 'standardDeviation': 87.1815, 'kurtosis': -1.3425, 'skewness': 0.17345, 'entropy': 0.803611}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1706B', 'numberPixels': '3600', 'pixelsPerSecond': '89092B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:2981: AssertionError _________________ ERROR at setup of test_tiff_gray16[internal] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray16_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray16_png0/gray16.png') @pytest.fixture(scope="session") def tiff_gray16_img(tmp_path_factory, tmp_gray16_png): in_img = tmp_path_factory.mktemp("tiff_gray16") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray16_png), "-depth", "16", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray160/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 16, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 65534, 'mean': 28769.9, 'median': 0, 'standardDeviation': 22445.6, 'kurtosis': -1.34052, 'skewness': 0.171573, 'entropy': 0.758063}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '4188B', 'numberPixels': '3600', 'pixelsPerSecond': '88697B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3038: AssertionError _________________ ERROR at setup of test_tiff_gray16[pikepdf] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_gray16_png = PosixPath('/build/pytest-of-nixbld/pytest-0/gray16_png0/gray16.png') @pytest.fixture(scope="session") def tiff_gray16_img(tmp_path_factory, tmp_gray16_png): in_img = tmp_path_factory.mktemp("tiff_gray16") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_gray16_png), "-depth", "16", "-compress", "Zip", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "Gray", str(identify) assert identify[0]["image"].get("type") == "Grayscale", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_gray160/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Grayscale', 'endianness': 'MSB', 'colorspace': 'Gray', 'depth': 16, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 65534, 'mean': 28769.9, 'median': 0, 'standardDeviation': 22445.6, 'kurtosis': -1.34052, 'skewness': 0.171573, 'entropy': 0.758063}}, 'renderingIntent': 'Undefined', 'gamma': 0.454545, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '4188B', 'numberPixels': '3600', 'pixelsPerSecond': '88697B', 'userTime': '0.040u', 'elapsedTime': '0:01.040', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3038: AssertionError _______________ ERROR at setup of test_tiff_multipage[internal] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') tmp_inverse_png = PosixPath('/build/pytest-of-nixbld/pytest-0/inverse_png0/inverse.png') @pytest.fixture(scope="session") def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png): in_img = tmp_path_factory.mktemp("tiff_multipage_img") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), str(tmp_inverse_png), "-strip", "-compress", "Zip", str(in_img), ] ) identify = json.loads( subprocess.check_output(CONVERT + [str(in_img) + "[0]", "json:"]) ) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "TrueColor", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_multipage_img0/in.tiff[0]', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '60', 'tiff:subfiletype': 'PAGE'}, 'tainted': False, 'filesize': '4648B', 'numberPixels': '3600', 'pixelsPerSecond': '82675B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3097: AssertionError ________________ ERROR at setup of test_tiff_multipage[pikepdf] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') tmp_inverse_png = PosixPath('/build/pytest-of-nixbld/pytest-0/inverse_png0/inverse.png') @pytest.fixture(scope="session") def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png): in_img = tmp_path_factory.mktemp("tiff_multipage_img") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), str(tmp_inverse_png), "-strip", "-compress", "Zip", str(in_img), ] ) identify = json.loads( subprocess.check_output(CONVERT + [str(in_img) + "[0]", "json:"]) ) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "TrueColor", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_multipage_img0/in.tiff[0]', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '60', 'tiff:subfiletype': 'PAGE'}, 'tainted': False, 'filesize': '4648B', 'numberPixels': '3600', 'pixelsPerSecond': '82675B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3097: AssertionError ________________ ERROR at setup of test_tiff_palette1[internal] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette1_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette1_png0/palette1.png') @pytest.fixture(scope="session") def tiff_palette1_img(tmp_path_factory, tmp_palette1_png): in_img = tmp_path_factory.mktemp("tiff_palette1_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette1_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette1_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 1, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0.00392157, 'max': 0.996078, 'mean': 0.289466, 'median': 0.00784314, 'standardDeviation': 0.444914, 'kurtosis': -1.10431, 'skewness': 0.946328, 'entropy': 0.863645}}, 'channelStatistics': {'red': {'min': 0.00392157, 'max': 0.996078, 'mean': 0.287789, 'median': 0.00392157, 'standardDeviation': 0.44846, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'green': {'min': 0.00784314, 'max': 0.992157, 'mean': 0.289466, 'median': 0.00784314, 'standardDeviation': 0.444914, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'blue': {'min': 0.0117647, 'max': 0.988235, 'mean': 0.291144, 'median': 0.0117647, 'standardDeviation': 0.441369, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}}, 'colormapEntries': 2, 'colormap': ['#010203FF', '#FEFDFCFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '674B', 'numberPixels': '3600', 'pixelsPerSecond': '82830B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 1, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3186: AssertionError ________________ ERROR at setup of test_tiff_palette1[pikepdf] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette1_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette1_png0/palette1.png') @pytest.fixture(scope="session") def tiff_palette1_img(tmp_path_factory, tmp_palette1_png): in_img = tmp_path_factory.mktemp("tiff_palette1_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette1_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette1_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 1, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0.00392157, 'max': 0.996078, 'mean': 0.289466, 'median': 0.00784314, 'standardDeviation': 0.444914, 'kurtosis': -1.10431, 'skewness': 0.946328, 'entropy': 0.863645}}, 'channelStatistics': {'red': {'min': 0.00392157, 'max': 0.996078, 'mean': 0.287789, 'median': 0.00392157, 'standardDeviation': 0.44846, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'green': {'min': 0.00784314, 'max': 0.992157, 'mean': 0.289466, 'median': 0.00784314, 'standardDeviation': 0.444914, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'blue': {'min': 0.0117647, 'max': 0.988235, 'mean': 0.291144, 'median': 0.0117647, 'standardDeviation': 0.441369, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}}, 'colormapEntries': 2, 'colormap': ['#010203FF', '#FEFDFCFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '674B', 'numberPixels': '3600', 'pixelsPerSecond': '82830B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 1, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3186: AssertionError ________________ ERROR at setup of test_tiff_palette2[internal] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette2_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette2_png0/palette2.png') @pytest.fixture(scope="session") def tiff_palette2_img(tmp_path_factory, tmp_palette2_png): in_img = tmp_path_factory.mktemp("tiff_palette2_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette2_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette2_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 2, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 2.98824, 'mean': 0.680654, 'median': 0, 'standardDeviation': 1.25336, 'kurtosis': -0.315289, 'skewness': 1.29798, 'entropy': 0.774059}}, 'channelStatistics': {'red': {'min': 0, 'max': 2.98824, 'mean': 0.696425, 'median': 0, 'standardDeviation': 1.26353, 'kurtosis': -0.406743, 'skewness': 1.26229, 'entropy': 0.7833}, 'green': {'min': 0, 'max': 2.98824, 'mean': 0.674843, 'median': 0, 'standardDeviation': 1.24964, 'kurtosis': -0.281755, 'skewness': 1.31085, 'entropy': 0.770677}, 'blue': {'min': 0, 'max': 2.98824, 'mean': 0.670693, 'median': 0, 'standardDeviation': 1.24691, 'kurtosis': -0.256681, 'skewness': 1.32038, 'entropy': 0.7682}}, 'colormapEntries': 4, 'colormap': ['#000000FF', '#FE0000FF', '#00FE00FF', '#0000FEFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '818B', 'numberPixels': '3600', 'pixelsPerSecond': '83376B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 2, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3236: AssertionError ________________ ERROR at setup of test_tiff_palette2[pikepdf] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette2_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette2_png0/palette2.png') @pytest.fixture(scope="session") def tiff_palette2_img(tmp_path_factory, tmp_palette2_png): in_img = tmp_path_factory.mktemp("tiff_palette2_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette2_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette2_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 2, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 2.98824, 'mean': 0.680654, 'median': 0, 'standardDeviation': 1.25336, 'kurtosis': -0.315289, 'skewness': 1.29798, 'entropy': 0.774059}}, 'channelStatistics': {'red': {'min': 0, 'max': 2.98824, 'mean': 0.696425, 'median': 0, 'standardDeviation': 1.26353, 'kurtosis': -0.406743, 'skewness': 1.26229, 'entropy': 0.7833}, 'green': {'min': 0, 'max': 2.98824, 'mean': 0.674843, 'median': 0, 'standardDeviation': 1.24964, 'kurtosis': -0.281755, 'skewness': 1.31085, 'entropy': 0.770677}, 'blue': {'min': 0, 'max': 2.98824, 'mean': 0.670693, 'median': 0, 'standardDeviation': 1.24691, 'kurtosis': -0.256681, 'skewness': 1.32038, 'entropy': 0.7682}}, 'colormapEntries': 4, 'colormap': ['#000000FF', '#FE0000FF', '#00FE00FF', '#0000FEFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '818B', 'numberPixels': '3600', 'pixelsPerSecond': '83376B', 'userTime': '0.040u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 2, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3236: AssertionError ________________ ERROR at setup of test_tiff_palette4[internal] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette4_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette4_png0/palette4.png') @pytest.fixture(scope="session") def tiff_palette4_img(tmp_path_factory, tmp_palette4_png): in_img = tmp_path_factory.mktemp("tiff_palette4_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette4_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette4_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 4.35056, 'median': 0, 'standardDeviation': 6.10245, 'kurtosis': -0.908749, 'skewness': 0.902293, 'entropy': 0.665013}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 4.86799, 'median': 0, 'standardDeviation': 6.56344, 'kurtosis': -1.29087, 'skewness': 0.739509, 'entropy': 0.662343}, 'green': {'min': 0, 'max': 15, 'mean': 4.27717, 'median': 0, 'standardDeviation': 6.16387, 'kurtosis': -0.883314, 'skewness': 0.931871, 'entropy': 0.658975}, 'blue': {'min': 0, 'max': 15, 'mean': 3.90652, 'median': 0, 'standardDeviation': 5.58004, 'kurtosis': -0.461386, 'skewness': 1.0275, 'entropy': 0.673721}}, 'colormapEntries': 16, 'colormap': ['#000000FF', '#800000FF', '#008000FF', '#808000FF', '#000080FF', '#800080FF', '#008080FF', '#C0C0C0FF', '#808080FF', '#FF0000FF', '#00FF00FF', '#FF0000FF', '#00FF00FF', '#FF00FFFF', '#00FF00FF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1058B', 'numberPixels': '3600', 'pixelsPerSecond': '82179B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 4, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3286: AssertionError ________________ ERROR at setup of test_tiff_palette4[pikepdf] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette4_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette4_png0/palette4.png') @pytest.fixture(scope="session") def tiff_palette4_img(tmp_path_factory, tmp_palette4_png): in_img = tmp_path_factory.mktemp("tiff_palette4_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette4_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette4_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 4.35056, 'median': 0, 'standardDeviation': 6.10245, 'kurtosis': -0.908749, 'skewness': 0.902293, 'entropy': 0.665013}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 4.86799, 'median': 0, 'standardDeviation': 6.56344, 'kurtosis': -1.29087, 'skewness': 0.739509, 'entropy': 0.662343}, 'green': {'min': 0, 'max': 15, 'mean': 4.27717, 'median': 0, 'standardDeviation': 6.16387, 'kurtosis': -0.883314, 'skewness': 0.931871, 'entropy': 0.658975}, 'blue': {'min': 0, 'max': 15, 'mean': 3.90652, 'median': 0, 'standardDeviation': 5.58004, 'kurtosis': -0.461386, 'skewness': 1.0275, 'entropy': 0.673721}}, 'colormapEntries': 16, 'colormap': ['#000000FF', '#800000FF', '#008000FF', '#808000FF', '#000080FF', '#800080FF', '#008080FF', '#C0C0C0FF', '#808080FF', '#FF0000FF', '#00FF00FF', '#FF0000FF', '#00FF00FF', '#FF00FFFF', '#00FF00FF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '1058B', 'numberPixels': '3600', 'pixelsPerSecond': '82179B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 4, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3286: AssertionError ________________ ERROR at setup of test_tiff_palette8[internal] ________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette8_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette8_png0/palette8.png') @pytest.fixture(scope="session") def tiff_palette8_img(tmp_path_factory, tmp_palette8_png): in_img = tmp_path_factory.mktemp("tiff_palette8_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette8_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette8_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.4189, 'median': 0, 'standardDeviation': 106.677, 'kurtosis': -0.998165, 'skewness': 0.9136, 'entropy': 0.575446}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.4925, 'median': 0, 'standardDeviation': 106.619, 'kurtosis': -0.999317, 'skewness': 0.912972, 'entropy': 0.580509}, 'green': {'min': 0, 'max': 255, 'mean': 74.5561, 'median': 0, 'standardDeviation': 106.546, 'kurtosis': -1.00447, 'skewness': 0.911503, 'entropy': 0.566691}, 'blue': {'min': 0, 'max': 255, 'mean': 74.2081, 'median': 0, 'standardDeviation': 106.867, 'kurtosis': -0.992966, 'skewness': 0.915579, 'entropy': 0.579138}}, 'colormapEntries': 256, 'colormap': ['#0F0F0FFF', '#1E1E1EFF', '#2D2D2DFF', '#3C3C3CFF', '#4B4B4BFF', '#5A5A5AFF', '#696969FF', '#787878FF', '#878787FF', '#969696FF', '#A5A5A5FF', '#B4B4B4FF', '#C3C3C3FF', '#D2D2D2FF', '#E1E1E1FF', '#F0F0F0FF', '#000000FF', '#000040FF', '#000080FF', '#0000BFFF', '#0000FFFF', '#002400FF', '#002440FF', '#002480FF', '#0024BFFF', '#0024FFFF', '#004900FF', '#004940FF', '#004980FF', '#0049BFFF', '#0049FFFF', '#006D00FF', '#006D40FF', '#006D80FF', '#006DBFFF', '#006DFFFF', '#009200FF', '#009240FF', '#009280FF', '#0092BFFF', '#0092FFFF', '#00B600FF', '#00B640FF', '#00B680FF', '#00B6BFFF', '#00B6FFFF', '#00DB00FF', '#00DB40FF', '#00DB80FF', '#00DBBFFF', '#00DBFFFF', '#00FF00FF', '#00FF40FF', '#00FF80FF', '#00FFBFFF', '#00FFFFFF', '#330000FF', '#330040FF', '#330080FF', '#3300BFFF', '#3300FFFF', '#332400FF', '#332440FF', '#332480FF', '#3324BFFF', '#3324FFFF', '#334900FF', '#334940FF', '#334980FF', '#3349BFFF', '#3349FFFF', '#336D00FF', '#336D40FF', '#336D80FF', '#336DBFFF', '#336DFFFF', '#339200FF', '#339240FF', '#339280FF', '#3392BFFF', '#3392FFFF', '#33B600FF', '#33B640FF', '#33B680FF', '#33B6BFFF', '#33B6FFFF', '#33DB00FF', '#33DB40FF', '#33DB80FF', '#33DBBFFF', '#33DBFFFF', '#33FF00FF', '#33FF40FF', '#33FF80FF', '#33FFBFFF', '#33FFFFFF', '#660000FF', '#660040FF', '#660080FF', '#6600BFFF', '#6600FFFF', '#662400FF', '#662440FF', '#662480FF', '#6624BFFF', '#6624FFFF', '#664900FF', '#664940FF', '#664980FF', '#6649BFFF', '#6649FFFF', '#666D00FF', '#666D40FF', '#666D80FF', '#666DBFFF', '#666DFFFF', '#669200FF', '#669240FF', '#669280FF', '#6692BFFF', '#6692FFFF', '#66B600FF', '#66B640FF', '#66B680FF', '#66B6BFFF', '#66B6FFFF', '#66DB00FF', '#66DB40FF', '#66DB80FF', '#66DBBFFF', '#66DBFFFF', '#66FF00FF', '#66FF40FF', '#66FF80FF', '#66FFBFFF', '#66FFFFFF', '#990000FF', '#990040FF', '#990080FF', '#9900BFFF', '#9900FFFF', '#992400FF', '#992440FF', '#992480FF', '#9924BFFF', '#9924FFFF', '#994900FF', '#994940FF', '#994980FF', '#9949BFFF', '#9949FFFF', '#996D00FF', '#996D40FF', '#996D80FF', '#996DBFFF', '#996DFFFF', '#999200FF', '#999240FF', '#999280FF', '#9992BFFF', '#9992FFFF', '#99B600FF', '#99B640FF', '#99B680FF', '#99B6BFFF', '#99B6FFFF', '#99DB00FF', '#99DB40FF', '#99DB80FF', '#99DBBFFF', '#99DBFFFF', '#99FF00FF', '#99FF40FF', '#99FF80FF', '#99FFBFFF', '#99FFFFFF', '#CC0000FF', '#CC0040FF', '#CC0080FF', '#CC00BFFF', '#CC00FFFF', '#CC2400FF', '#CC2440FF', '#CC2480FF', '#CC24BFFF', '#CC24FFFF', '#CC4900FF', '#CC4940FF', '#CC4980FF', '#CC49BFFF', '#CC49FFFF', '#CC6D00FF', '#CC6D40FF', '#CC6D80FF', '#CC6DBFFF', '#CC6DFFFF', '#CC9200FF', '#CC9240FF', '#CC9280FF', '#CC92BFFF', '#CC92FFFF', '#CCB600FF', '#CCB640FF', '#CCB680FF', '#CCB6BFFF', '#CCB6FFFF', '#CCDB00FF', '#CCDB40FF', '#CCDB80FF', '#CCDBBFFF', '#CCDBFFFF', '#CCFF00FF', '#CCFF40FF', '#CCFF80FF', '#CCFFBFFF', '#CCFFFFFF', '#FF0000FF', '#FF0040FF', '#FF0080FF', '#FF00BFFF', '#FF00FFFF', '#FF2400FF', '#FF2440FF', '#FF2480FF', '#FF24BFFF', '#FF24FFFF', '#FF4900FF', '#FF4940FF', '#FF4980FF', '#FF49BFFF', '#FF49FFFF', '#FF6D00FF', '#FF6D40FF', '#FF6D80FF', '#FF6DBFFF', '#FF6DFFFF', '#FF9200FF', '#FF9240FF', '#FF9280FF', '#FF92BFFF', '#FF92FFFF', '#FFB600FF', '#FFB640FF', '#FFB680FF', '#FFB6BFFF', '#FFB6FFFF', '#FFDB00FF', '#FFDB40FF', '#FFDB80FF', '#FFDBBFFF', '#FFDBFFFF', '#FFFF00FF', '#FFFF40FF', '#FFFF80FF', '#FFFFBFFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '2928B', 'numberPixels': '3600', 'pixelsPerSecond': '83515B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3336: AssertionError ________________ ERROR at setup of test_tiff_palette8[pikepdf] _________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0')) tmp_palette8_png = PosixPath('/build/pytest-of-nixbld/pytest-0/palette8_png0/palette8.png') @pytest.fixture(scope="session") def tiff_palette8_img(tmp_path_factory, tmp_palette8_png): in_img = tmp_path_factory.mktemp("tiff_palette8_img") / "in.tiff" subprocess.check_call( CONVERT + [str(tmp_palette8_png), "-compress", "Zip", str(in_img)] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "Palette", str(identify) endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness" > assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str( identify ) # FIXME: should be LSB E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_palette8_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'Palette', 'endianness': 'MSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.4189, 'median': 0, 'standardDeviation': 106.677, 'kurtosis': -0.998165, 'skewness': 0.9136, 'entropy': 0.575446}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.4925, 'median': 0, 'standardDeviation': 106.619, 'kurtosis': -0.999317, 'skewness': 0.912972, 'entropy': 0.580509}, 'green': {'min': 0, 'max': 255, 'mean': 74.5561, 'median': 0, 'standardDeviation': 106.546, 'kurtosis': -1.00447, 'skewness': 0.911503, 'entropy': 0.566691}, 'blue': {'min': 0, 'max': 255, 'mean': 74.2081, 'median': 0, 'standardDeviation': 106.867, 'kurtosis': -0.992966, 'skewness': 0.915579, 'entropy': 0.579138}}, 'colormapEntries': 256, 'colormap': ['#0F0F0FFF', '#1E1E1EFF', '#2D2D2DFF', '#3C3C3CFF', '#4B4B4BFF', '#5A5A5AFF', '#696969FF', '#787878FF', '#878787FF', '#969696FF', '#A5A5A5FF', '#B4B4B4FF', '#C3C3C3FF', '#D2D2D2FF', '#E1E1E1FF', '#F0F0F0FF', '#000000FF', '#000040FF', '#000080FF', '#0000BFFF', '#0000FFFF', '#002400FF', '#002440FF', '#002480FF', '#0024BFFF', '#0024FFFF', '#004900FF', '#004940FF', '#004980FF', '#0049BFFF', '#0049FFFF', '#006D00FF', '#006D40FF', '#006D80FF', '#006DBFFF', '#006DFFFF', '#009200FF', '#009240FF', '#009280FF', '#0092BFFF', '#0092FFFF', '#00B600FF', '#00B640FF', '#00B680FF', '#00B6BFFF', '#00B6FFFF', '#00DB00FF', '#00DB40FF', '#00DB80FF', '#00DBBFFF', '#00DBFFFF', '#00FF00FF', '#00FF40FF', '#00FF80FF', '#00FFBFFF', '#00FFFFFF', '#330000FF', '#330040FF', '#330080FF', '#3300BFFF', '#3300FFFF', '#332400FF', '#332440FF', '#332480FF', '#3324BFFF', '#3324FFFF', '#334900FF', '#334940FF', '#334980FF', '#3349BFFF', '#3349FFFF', '#336D00FF', '#336D40FF', '#336D80FF', '#336DBFFF', '#336DFFFF', '#339200FF', '#339240FF', '#339280FF', '#3392BFFF', '#3392FFFF', '#33B600FF', '#33B640FF', '#33B680FF', '#33B6BFFF', '#33B6FFFF', '#33DB00FF', '#33DB40FF', '#33DB80FF', '#33DBBFFF', '#33DBFFFF', '#33FF00FF', '#33FF40FF', '#33FF80FF', '#33FFBFFF', '#33FFFFFF', '#660000FF', '#660040FF', '#660080FF', '#6600BFFF', '#6600FFFF', '#662400FF', '#662440FF', '#662480FF', '#6624BFFF', '#6624FFFF', '#664900FF', '#664940FF', '#664980FF', '#6649BFFF', '#6649FFFF', '#666D00FF', '#666D40FF', '#666D80FF', '#666DBFFF', '#666DFFFF', '#669200FF', '#669240FF', '#669280FF', '#6692BFFF', '#6692FFFF', '#66B600FF', '#66B640FF', '#66B680FF', '#66B6BFFF', '#66B6FFFF', '#66DB00FF', '#66DB40FF', '#66DB80FF', '#66DBBFFF', '#66DBFFFF', '#66FF00FF', '#66FF40FF', '#66FF80FF', '#66FFBFFF', '#66FFFFFF', '#990000FF', '#990040FF', '#990080FF', '#9900BFFF', '#9900FFFF', '#992400FF', '#992440FF', '#992480FF', '#9924BFFF', '#9924FFFF', '#994900FF', '#994940FF', '#994980FF', '#9949BFFF', '#9949FFFF', '#996D00FF', '#996D40FF', '#996D80FF', '#996DBFFF', '#996DFFFF', '#999200FF', '#999240FF', '#999280FF', '#9992BFFF', '#9992FFFF', '#99B600FF', '#99B640FF', '#99B680FF', '#99B6BFFF', '#99B6FFFF', '#99DB00FF', '#99DB40FF', '#99DB80FF', '#99DBBFFF', '#99DBFFFF', '#99FF00FF', '#99FF40FF', '#99FF80FF', '#99FFBFFF', '#99FFFFFF', '#CC0000FF', '#CC0040FF', '#CC0080FF', '#CC00BFFF', '#CC00FFFF', '#CC2400FF', '#CC2440FF', '#CC2480FF', '#CC24BFFF', '#CC24FFFF', '#CC4900FF', '#CC4940FF', '#CC4980FF', '#CC49BFFF', '#CC49FFFF', '#CC6D00FF', '#CC6D40FF', '#CC6D80FF', '#CC6DBFFF', '#CC6DFFFF', '#CC9200FF', '#CC9240FF', '#CC9280FF', '#CC92BFFF', '#CC92FFFF', '#CCB600FF', '#CCB640FF', '#CCB680FF', '#CCB6BFFF', '#CCB6FFFF', '#CCDB00FF', '#CCDB40FF', '#CCDB80FF', '#CCDBBFFF', '#CCDBFFFF', '#CCFF00FF', '#CCFF40FF', '#CCFF80FF', '#CCFFBFFF', '#CCFFFFFF', '#FF0000FF', '#FF0040FF', '#FF0080FF', '#FF00BFFF', '#FF00FFFF', '#FF2400FF', '#FF2440FF', '#FF2480FF', '#FF24BFFF', '#FF24FFFF', '#FF4900FF', '#FF4940FF', '#FF4980FF', '#FF49BFFF', '#FF49FFFF', '#FF6D00FF', '#FF6D40FF', '#FF6D80FF', '#FF6DBFFF', '#FF6DFFFF', '#FF9200FF', '#FF9240FF', '#FF9280FF', '#FF92BFFF', '#FF92FFFF', '#FFB600FF', '#FFB640FF', '#FFB680FF', '#FFB6BFFF', '#FFB6FFFF', '#FFDB00FF', '#FFDB40FF', '#FFDB80FF', '#FFDBBFFF', '#FFDBFFFF', '#FFFF00FF', '#FFFF40FF', '#FFFF80FF', '#FFFFBFFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'TopLeft', 'properties': {'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856', 'tiff:alpha': 'unspecified', 'tiff:endian': 'msb', 'tiff:photometric': 'palette', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '2928B', 'numberPixels': '3600', 'pixelsPerSecond': '83515B', 'userTime': '0.050u', 'elapsedTime': '0:01.043', 'version': 'ImageMagick 7.1.0-19 Q16-HDRI aarch64 2021-12-22 https://imagemagick.org'}}] E assert 'MSB' in ['Undefined', 'LSB'] E + where 'MSB' = ('endianness') E + where = {'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', ...}.get src/img2pdf_test.py:3336: AssertionError =============================== warnings summary =============================== src/img2pdf_test.py:114 /build/img2pdf-0.4.3/src/img2pdf_test.py:114: UserWarning: imagemagick has no jpeg 2000 support, skipping certain checks... warnings.warn("imagemagick has no jpeg 2000 support, skipping certain checks...") -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR src/img2pdf_test.py::test_tiff_float[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_cmyk8[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] - AssertionError: [{'ve... ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_gray1[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_gray1[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_gray2[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_gray2[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_gray4[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_gray4[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_gray8[internal] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_gray8[pikepdf] - AssertionError: [{'vers... ERROR src/img2pdf_test.py::test_tiff_gray16[internal] - AssertionError: [{'ve... ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] - AssertionError: [{'ver... ERROR src/img2pdf_test.py::test_tiff_multipage[internal] - AssertionError: [{... ERROR src/img2pdf_test.py::test_tiff_multipage[pikepdf] - AssertionError: [{'... ERROR src/img2pdf_test.py::test_tiff_palette1[internal] - AssertionError: [{'... ERROR src/img2pdf_test.py::test_tiff_palette1[pikepdf] - AssertionError: [{'v... ERROR src/img2pdf_test.py::test_tiff_palette2[internal] - AssertionError: [{'... ERROR src/img2pdf_test.py::test_tiff_palette2[pikepdf] - AssertionError: [{'v... ERROR src/img2pdf_test.py::test_tiff_palette4[internal] - AssertionError: [{'... ERROR src/img2pdf_test.py::test_tiff_palette4[pikepdf] - AssertionError: [{'v... ERROR src/img2pdf_test.py::test_tiff_palette8[internal] - AssertionError: [{'... ERROR src/img2pdf_test.py::test_tiff_palette8[pikepdf] - AssertionError: [{'v... = 259 passed, 4 skipped, 12 deselected, 1 warning, 26 errors in 842.69s (0:14:02) =