* Package: media-gfx/img2pdf-0.4.1-r1  * Repository: local  * Maintainer: sir.suriv@gmail.com proxy-maint@gentoo.org  * Upstream: josch@mister-muffin.de https://gitlab.mister-muffin.de/josch/img2pdf/issues  * USE: abi_x86_64 amd64 elibc_glibc gui kernel_linux python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test userland_GNU  * FEATURES: ccache network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox  * Package: media-gfx/img2pdf-0.4.1-r1  * Repository: local  * Maintainer: sir.suriv@gmail.com proxy-maint@gentoo.org  * Upstream: josch@mister-muffin.de https://gitlab.mister-muffin.de/josch/img2pdf/issues  * USE: abi_x86_64 amd64 elibc_glibc gui kernel_linux python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test userland_GNU  * FEATURES: ccache network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox >>> Unpacking source... >>> Unpacking img2pdf-0.4.1.tar.gz to /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work >>> Unpacking img2pdf-0.4.1-imagemagick-7-tests.patch.gz to /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work >>> Source unpacked in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work >>> Preparing source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ... * Applying img2pdf-0.4.1-imagemagick-7-tests.patch ...  [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ... * python3_8: running distutils-r1_run_phase distutils-r1_python_compile python3.8 setup.py build -j 17 running build running build_py copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_8/lib copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_8/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' /usr/lib/python3.8/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( 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' warning: build_py: byte-compiling is disabled, skipping. * python3_9: running distutils-r1_run_phase distutils-r1_python_compile python3.9 setup.py build -j 17 /usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running build running build_py copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_9/lib copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_9/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' warning: build_py: byte-compiling is disabled, skipping. * python3_10: running distutils-r1_run_phase distutils-r1_python_compile python3.10 setup.py build -j 17 /usr/lib/python3.10/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running build running build_py copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_10/lib copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_10/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' warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. >>> Test phase: media-gfx/img2pdf-0.4.1-r1 * python3_8: running distutils-r1_run_phase python_test python3.8 -m pytest -vv -ra -l -Wdefault -n auto =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3.8 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1/.hypothesis/examples') rootdir: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 plugins: mock-3.6.1, httpbin-1.0.0, anyio-3.2.1, httpx-0.12.1, xdist-2.3.0, django-4.4.0, forked-1.3.0, asyncio-0.15.1, pkgcore-0.12.2, hypothesis-6.14.7, requests-mock-1.9.3 gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I [gw0] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw1] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw2] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw3] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw4] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw5] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw6] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw7] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 [gw0] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw1] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw3] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw2] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw4] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw5] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw6] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] [gw7] Python 3.8.11 (default, Aug 8 2021, 20:40:49) -- [GCC 11.2.0] gw0 [348] / gw1 [348] / gw2 [348] / gw3 [348] / gw4 [348] / gw5 [348] / gw6 [348] / gw7 [348] scheduling tests via LoadScheduling src/img2pdf_test.py::test_jpg[pdfrw] src/img2pdf_test.py::test_jpg[internal] src/img2pdf_test.py::test_jpg[pikepdf] src/img2pdf_test.py::test_jpg_rot[pikepdf] src/img2pdf_test.py::test_jpg_rot[internal] src/img2pdf_test.py::test_jpg_rot[pdfrw] src/img2pdf_test.py::test_jpg_cmyk[pikepdf] src/img2pdf_test.py::test_jpg_cmyk[internal] [gw1] [ 0%] PASSED src/img2pdf_test.py::test_jpg[pikepdf] [gw3] [ 0%] PASSED src/img2pdf_test.py::test_jpg[pdfrw] src/img2pdf_test.py::test_jpg_2000[internal] src/img2pdf_test.py::test_jpg_2000[pikepdf] [gw0] [ 0%] PASSED src/img2pdf_test.py::test_jpg[internal] src/img2pdf_test.py::test_jpg_cmyk[pdfrw] [gw6] [ 1%] PASSED src/img2pdf_test.py::test_jpg_cmyk[internal] src/img2pdf_test.py::test_png_rgb8[pdfrw] [gw7] [ 1%] PASSED src/img2pdf_test.py::test_jpg_cmyk[pikepdf] src/img2pdf_test.py::test_png_rgb16[internal] [gw4] [ 1%] PASSED src/img2pdf_test.py::test_jpg_rot[pikepdf] src/img2pdf_test.py::test_png_rgb8[internal] [gw5] [ 2%] PASSED src/img2pdf_test.py::test_jpg_rot[pdfrw] src/img2pdf_test.py::test_png_rgb8[pikepdf] [gw7] [ 2%] ERROR src/img2pdf_test.py::test_png_rgb16[internal] src/img2pdf_test.py::test_png_rgba16[pdfrw] [gw2] [ 2%] PASSED src/img2pdf_test.py::test_jpg_rot[internal] src/img2pdf_test.py::test_jpg_2000[pdfrw] [gw7] [ 2%] ERROR src/img2pdf_test.py::test_png_rgba16[pdfrw] src/img2pdf_test.py::test_png_interlaced[pikepdf] [gw3] [ 3%] PASSED src/img2pdf_test.py::test_jpg_2000[pikepdf] src/img2pdf_test.py::test_png_rgba8[internal] [gw0] [ 3%] PASSED src/img2pdf_test.py::test_jpg_cmyk[pdfrw] src/img2pdf_test.py::test_png_rgb16[pikepdf] [gw1] [ 3%] PASSED src/img2pdf_test.py::test_jpg_2000[internal] src/img2pdf_test.py::test_png_rgb16[pdfrw] [gw6] [ 4%] PASSED src/img2pdf_test.py::test_png_rgb8[pdfrw] src/img2pdf_test.py::test_png_rgba16[pikepdf] [gw4] [ 4%] PASSED src/img2pdf_test.py::test_png_rgb8[internal] src/img2pdf_test.py::test_png_rgba8[pdfrw] [gw5] [ 4%] PASSED src/img2pdf_test.py::test_png_rgb8[pikepdf] src/img2pdf_test.py::test_png_rgba16[internal] [gw6] [ 4%] ERROR src/img2pdf_test.py::test_png_rgba16[pikepdf] src/img2pdf_test.py::test_png_interlaced[internal] [gw1] [ 5%] ERROR src/img2pdf_test.py::test_png_rgb16[pdfrw] src/img2pdf_test.py::test_png_gray8a[pikepdf] [gw0] [ 5%] ERROR src/img2pdf_test.py::test_png_rgb16[pikepdf] src/img2pdf_test.py::test_png_gray8a[internal] [gw2] [ 5%] PASSED src/img2pdf_test.py::test_jpg_2000[pdfrw] src/img2pdf_test.py::test_png_rgba8[pikepdf] [gw5] [ 6%] ERROR src/img2pdf_test.py::test_png_rgba16[internal] src/img2pdf_test.py::test_png_gray16a[pdfrw] [gw7] [ 6%] PASSED src/img2pdf_test.py::test_png_interlaced[pikepdf] src/img2pdf_test.py::test_png_gray4[internal] [gw5] [ 6%] ERROR src/img2pdf_test.py::test_png_gray16a[pdfrw] src/img2pdf_test.py::test_png_gray2[pikepdf] [gw3] [ 6%] PASSED src/img2pdf_test.py::test_png_rgba8[internal] src/img2pdf_test.py::test_png_gray8a[pdfrw] [gw4] [ 7%] PASSED src/img2pdf_test.py::test_png_rgba8[pdfrw] src/img2pdf_test.py::test_png_gray16a[pikepdf] [gw2] [ 7%] PASSED src/img2pdf_test.py::test_png_rgba8[pikepdf] src/img2pdf_test.py::test_png_gray16a[internal] [gw4] [ 7%] ERROR src/img2pdf_test.py::test_png_gray16a[pikepdf] src/img2pdf_test.py::test_png_gray2[internal] [gw1] [ 8%] PASSED src/img2pdf_test.py::test_png_gray8a[pikepdf] src/img2pdf_test.py::test_png_gray1[internal] [gw0] [ 8%] PASSED src/img2pdf_test.py::test_png_gray8a[internal] src/img2pdf_test.py::test_png_interlaced[pdfrw] [gw6] [ 8%] PASSED src/img2pdf_test.py::test_png_interlaced[internal] src/img2pdf_test.py::test_png_gray2[pdfrw] [gw2] [ 8%] ERROR src/img2pdf_test.py::test_png_gray16a[internal] src/img2pdf_test.py::test_png_gray1[pdfrw] [gw5] [ 9%] PASSED src/img2pdf_test.py::test_png_gray2[pikepdf] src/img2pdf_test.py::test_png_gray16[internal] [gw7] [ 9%] PASSED src/img2pdf_test.py::test_png_gray4[internal] src/img2pdf_test.py::test_png_gray16[pdfrw] [gw3] [ 9%] PASSED src/img2pdf_test.py::test_png_gray8a[pdfrw] src/img2pdf_test.py::test_png_gray1[pikepdf] [gw5] [ 10%] ERROR src/img2pdf_test.py::test_png_gray16[internal] src/img2pdf_test.py::test_png_palette4[pikepdf] [gw7] [ 10%] ERROR src/img2pdf_test.py::test_png_gray16[pdfrw] src/img2pdf_test.py::test_png_palette8[pikepdf] [gw0] [ 10%] PASSED src/img2pdf_test.py::test_png_interlaced[pdfrw] src/img2pdf_test.py::test_png_gray4[pikepdf] [gw1] [ 10%] PASSED src/img2pdf_test.py::test_png_gray1[internal] src/img2pdf_test.py::test_png_gray4[pdfrw] [gw4] [ 11%] PASSED src/img2pdf_test.py::test_png_gray2[internal] src/img2pdf_test.py::test_png_gray8[pdfrw] [gw6] [ 11%] PASSED src/img2pdf_test.py::test_png_gray2[pdfrw] src/img2pdf_test.py::test_png_gray16[pikepdf] [gw2] [ 11%] PASSED src/img2pdf_test.py::test_png_gray1[pdfrw] src/img2pdf_test.py::test_png_gray8[pikepdf] [gw6] [ 12%] ERROR src/img2pdf_test.py::test_png_gray16[pikepdf] src/img2pdf_test.py::test_png_palette8[internal] [gw3] [ 12%] PASSED src/img2pdf_test.py::test_png_gray1[pikepdf] src/img2pdf_test.py::test_png_gray8[internal] [gw5] [ 12%] PASSED src/img2pdf_test.py::test_png_palette4[pikepdf] src/img2pdf_test.py::test_gif_transparent[pdfrw] [gw0] [ 12%] PASSED src/img2pdf_test.py::test_png_gray4[pikepdf] src/img2pdf_test.py::test_png_palette1[internal] [gw4] [ 13%] PASSED src/img2pdf_test.py::test_png_gray8[pdfrw] src/img2pdf_test.py::test_png_palette4[internal] [gw2] [ 13%] PASSED src/img2pdf_test.py::test_png_gray8[pikepdf] src/img2pdf_test.py::test_png_palette2[pikepdf] [gw1] [ 13%] PASSED src/img2pdf_test.py::test_png_gray4[pdfrw] src/img2pdf_test.py::test_png_palette1[pikepdf] [gw3] [ 14%] PASSED src/img2pdf_test.py::test_png_gray8[internal] src/img2pdf_test.py::test_png_palette2[internal] [gw5] [ 14%] PASSED src/img2pdf_test.py::test_gif_transparent[pdfrw] src/img2pdf_test.py::test_gif_palette8[pikepdf] [gw7] [ 14%] PASSED src/img2pdf_test.py::test_png_palette8[pikepdf] src/img2pdf_test.py::test_gif_palette1[pikepdf] [gw0] [ 14%] PASSED src/img2pdf_test.py::test_png_palette1[internal] src/img2pdf_test.py::test_png_icc[internal] [gw4] [ 15%] PASSED src/img2pdf_test.py::test_png_palette4[internal] src/img2pdf_test.py::test_gif_transparent[pikepdf] [gw2] [ 15%] PASSED src/img2pdf_test.py::test_png_palette2[pikepdf] src/img2pdf_test.py::test_gif_transparent[internal] [gw1] [ 15%] PASSED src/img2pdf_test.py::test_png_palette1[pikepdf] src/img2pdf_test.py::test_png_icc[pikepdf] [gw3] [ 16%] PASSED src/img2pdf_test.py::test_png_palette2[internal] src/img2pdf_test.py::test_png_icc[pdfrw] [gw6] [ 16%] PASSED src/img2pdf_test.py::test_png_palette8[internal] src/img2pdf_test.py::test_gif_palette1[internal] [gw4] [ 16%] PASSED src/img2pdf_test.py::test_gif_transparent[pikepdf] src/img2pdf_test.py::test_gif_palette8[internal] [gw2] [ 16%] PASSED src/img2pdf_test.py::test_gif_transparent[internal] src/img2pdf_test.py::test_gif_palette4[pikepdf] [gw7] [ 17%] PASSED src/img2pdf_test.py::test_gif_palette1[pikepdf] src/img2pdf_test.py::test_gif_animation[pikepdf] [gw0] [ 17%] PASSED src/img2pdf_test.py::test_png_icc[internal] src/img2pdf_test.py::test_gif_palette2[internal] [gw1] [ 17%] PASSED src/img2pdf_test.py::test_png_icc[pikepdf] src/img2pdf_test.py::test_gif_palette2[pikepdf] [gw6] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette1[internal] src/img2pdf_test.py::test_gif_animation[internal] [gw3] [ 18%] PASSED src/img2pdf_test.py::test_png_icc[pdfrw] src/img2pdf_test.py::test_gif_palette4[internal] [gw5] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette8[pikepdf] src/img2pdf_test.py::test_tiff_cmyk8[pdfrw] [gw0] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette2[internal] src/img2pdf_test.py::test_tiff_float[internal] [gw2] [ 19%] PASSED src/img2pdf_test.py::test_gif_palette4[pikepdf] src/img2pdf_test.py::test_tiff_cmyk8[internal] [gw7] [ 19%] PASSED src/img2pdf_test.py::test_gif_animation[pikepdf] src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] [gw7] [ 19%] ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] src/img2pdf_test.py::test_tiff_rgb14[internal] [gw1] [ 20%] PASSED src/img2pdf_test.py::test_gif_palette2[pikepdf] src/img2pdf_test.py::test_tiff_float[pikepdf] [gw7] [ 20%] ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] src/img2pdf_test.py::test_tiff_rgb14[pikepdf] [gw6] [ 20%] PASSED src/img2pdf_test.py::test_gif_animation[internal] src/img2pdf_test.py::test_tiff_cmyk16[internal] [gw7] [ 20%] ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] src/img2pdf_test.py::test_tiff_rgb14[pdfrw] [gw3] [ 21%] PASSED src/img2pdf_test.py::test_gif_palette4[internal] src/img2pdf_test.py::test_tiff_float[pdfrw] [gw6] [ 21%] ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] src/img2pdf_test.py::test_tiff_rgb12[pdfrw] [gw7] [ 21%] ERROR src/img2pdf_test.py::test_tiff_rgb14[pdfrw] src/img2pdf_test.py::test_tiff_rgb16[internal] [gw0] [ 22%] PASSED src/img2pdf_test.py::test_tiff_float[internal] src/img2pdf_test.py::test_tiff_cmyk16[pdfrw] [gw6] [ 22%] ERROR src/img2pdf_test.py::test_tiff_rgb12[pdfrw] src/img2pdf_test.py::test_tiff_gray2[internal] [gw5] [ 22%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[pdfrw] src/img2pdf_test.py::test_tiff_rgb12[pikepdf] [gw4] [ 22%] PASSED src/img2pdf_test.py::test_gif_palette8[internal] src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] [gw2] [ 23%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[internal] [gw7] [ 23%] ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] src/img2pdf_test.py::test_tiff_rgb16[pikepdf] src/img2pdf_test.py::test_tiff_rgb8[pdfrw] [gw1] [ 23%] PASSED src/img2pdf_test.py::test_tiff_float[pikepdf] src/img2pdf_test.py::test_tiff_rgb8[internal] [gw0] [ 24%] ERROR src/img2pdf_test.py::test_tiff_cmyk16[pdfrw] src/img2pdf_test.py::test_tiff_multipage[pdfrw] [gw5] [ 24%] ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] [gw7] [ 24%] ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] src/img2pdf_test.py::test_tiff_rgb16[pdfrw] [gw7] [ 25%] ERROR src/img2pdf_test.py::test_tiff_rgb16[pdfrw] src/img2pdf_test.py::test_tiff_rgba8[internal] [gw3] [ 25%] PASSED src/img2pdf_test.py::test_tiff_float[pdfrw] src/img2pdf_test.py::test_tiff_rgb8[pikepdf] [gw6] [ 25%] PASSED src/img2pdf_test.py::test_tiff_gray2[internal] src/img2pdf_test.py::test_tiff_gray2[pikepdf] [gw2] [ 25%] PASSED src/img2pdf_test.py::test_tiff_rgb8[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] [gw4] [ 26%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] src/img2pdf_test.py::test_tiff_rgb12[internal] [gw1] [ 26%] PASSED src/img2pdf_test.py::test_tiff_rgb8[internal] src/img2pdf_test.py::test_layout[layout_test_cases9] [gw1] [ 26%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases9] src/img2pdf_test.py::test_layout[layout_test_cases10] [gw1] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases10] src/img2pdf_test.py::test_layout[layout_test_cases11] [gw1] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases11] src/img2pdf_test.py::test_layout[layout_test_cases12] [gw1] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases12] src/img2pdf_test.py::test_layout[layout_test_cases13] [gw1] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases13] src/img2pdf_test.py::test_layout[layout_test_cases14] [gw1] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases14] src/img2pdf_test.py::test_layout[layout_test_cases15] [gw1] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases15] src/img2pdf_test.py::test_layout[layout_test_cases16] [gw1] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases16] src/img2pdf_test.py::test_layout[layout_test_cases17] [gw1] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases17] src/img2pdf_test.py::test_layout[layout_test_cases18] [gw1] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases18] src/img2pdf_test.py::test_layout[layout_test_cases19] [gw1] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases19] src/img2pdf_test.py::test_layout[layout_test_cases39] [gw1] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases39] src/img2pdf_test.py::test_layout[layout_test_cases40] [gw1] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases40] src/img2pdf_test.py::test_layout[layout_test_cases41] [gw1] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases41] src/img2pdf_test.py::test_layout[layout_test_cases42] [gw1] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases42] src/img2pdf_test.py::test_layout[layout_test_cases43] [gw1] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases43] src/img2pdf_test.py::test_layout[layout_test_cases44] [gw1] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases44] src/img2pdf_test.py::test_layout[layout_test_cases45] [gw1] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases45] src/img2pdf_test.py::test_layout[layout_test_cases46] [gw1] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases46] src/img2pdf_test.py::test_layout[layout_test_cases47] [gw1] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases47] src/img2pdf_test.py::test_layout[layout_test_cases48] [gw1] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases48] src/img2pdf_test.py::test_layout[layout_test_cases49] [gw1] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases49] src/img2pdf_test.py::test_layout[layout_test_cases50] [gw1] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases50] src/img2pdf_test.py::test_layout[layout_test_cases51] [gw1] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases51] src/img2pdf_test.py::test_layout[layout_test_cases52] [gw1] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases52] src/img2pdf_test.py::test_layout[layout_test_cases53] [gw1] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases53] src/img2pdf_test.py::test_layout[layout_test_cases54] [gw1] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases54] src/img2pdf_test.py::test_layout[layout_test_cases55] [gw1] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases55] src/img2pdf_test.py::test_layout[layout_test_cases56] [gw1] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases56] src/img2pdf_test.py::test_layout[layout_test_cases57] [gw1] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases57] src/img2pdf_test.py::test_layout[layout_test_cases58] [gw1] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases58] src/img2pdf_test.py::test_layout[layout_test_cases59] [gw1] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases59] src/img2pdf_test.py::test_layout[layout_test_cases60] [gw1] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases60] src/img2pdf_test.py::test_layout[layout_test_cases61] [gw1] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases61] src/img2pdf_test.py::test_layout[layout_test_cases62] [gw1] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases62] src/img2pdf_test.py::test_layout[layout_test_cases63] [gw1] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases63] src/img2pdf_test.py::test_layout[layout_test_cases64] [gw1] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases64] src/img2pdf_test.py::test_layout[layout_test_cases65] [gw1] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases65] src/img2pdf_test.py::test_layout[layout_test_cases66] [gw1] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases66] src/img2pdf_test.py::test_layout[layout_test_cases67] [gw1] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases67] src/img2pdf_test.py::test_layout[layout_test_cases68] [gw1] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases68] src/img2pdf_test.py::test_layout[layout_test_cases69] [gw1] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases69] src/img2pdf_test.py::test_layout[layout_test_cases70] [gw1] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases70] src/img2pdf_test.py::test_layout[layout_test_cases71] [gw1] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases71] src/img2pdf_test.py::test_layout[layout_test_cases72] [gw1] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases72] src/img2pdf_test.py::test_layout[layout_test_cases73] [gw1] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases73] src/img2pdf_test.py::test_layout[layout_test_cases74] [gw1] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases74] src/img2pdf_test.py::test_layout[layout_test_cases75] [gw1] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases75] src/img2pdf_test.py::test_layout[layout_test_cases76] [gw1] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases76] src/img2pdf_test.py::test_layout[layout_test_cases77] [gw1] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases77] src/img2pdf_test.py::test_layout[layout_test_cases78] [gw1] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases78] src/img2pdf_test.py::test_layout[layout_test_cases79] [gw1] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases79] src/img2pdf_test.py::test_layout[layout_test_cases80] [gw1] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases80] src/img2pdf_test.py::test_layout[layout_test_cases81] [gw1] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases81] src/img2pdf_test.py::test_layout[layout_test_cases82] [gw1] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases82] src/img2pdf_test.py::test_layout[layout_test_cases83] [gw1] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases83] src/img2pdf_test.py::test_layout[layout_test_cases84] [gw1] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases84] src/img2pdf_test.py::test_layout[layout_test_cases85] [gw1] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases85] src/img2pdf_test.py::test_layout[layout_test_cases86] [gw1] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases86] src/img2pdf_test.py::test_layout[layout_test_cases87] [gw1] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases87] src/img2pdf_test.py::test_layout[layout_test_cases88] [gw1] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases88] src/img2pdf_test.py::test_layout[layout_test_cases89] [gw1] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases89] src/img2pdf_test.py::test_layout[layout_test_cases90] [gw1] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases90] src/img2pdf_test.py::test_layout[layout_test_cases91] [gw1] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases91] src/img2pdf_test.py::test_layout[layout_test_cases92] [gw1] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases92] src/img2pdf_test.py::test_layout[layout_test_cases93] [gw1] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases93] src/img2pdf_test.py::test_layout[layout_test_cases94] [gw1] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases94] src/img2pdf_test.py::test_layout[layout_test_cases95] [gw1] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases95] src/img2pdf_test.py::test_layout[layout_test_cases96] [gw1] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases96] src/img2pdf_test.py::test_layout[layout_test_cases97] [gw1] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases97] src/img2pdf_test.py::test_layout[layout_test_cases98] [gw1] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases98] src/img2pdf_test.py::test_layout[layout_test_cases99] [gw1] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases99] src/img2pdf_test.py::test_layout[layout_test_cases100] [gw1] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases100] src/img2pdf_test.py::test_layout[layout_test_cases101] [gw1] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases101] src/img2pdf_test.py::test_layout[layout_test_cases102] [gw1] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases102] src/img2pdf_test.py::test_layout[layout_test_cases103] [gw1] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases103] src/img2pdf_test.py::test_layout[layout_test_cases104] [gw1] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases104] src/img2pdf_test.py::test_layout[layout_test_cases105] [gw1] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases105] src/img2pdf_test.py::test_layout[layout_test_cases106] [gw1] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases106] src/img2pdf_test.py::test_layout[layout_test_cases107] [gw1] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases107] src/img2pdf_test.py::test_layout[layout_test_cases108] [gw1] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases108] [gw4] [ 50%] ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] src/img2pdf_test.py::test_layout[layout_test_cases30] src/img2pdf_test.py::test_layout[layout_test_cases109] [gw1] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases109] [gw4] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases30] src/img2pdf_test.py::test_layout[layout_test_cases110] src/img2pdf_test.py::test_layout[layout_test_cases31] [gw1] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases110] src/img2pdf_test.py::test_layout[layout_test_cases111] [gw4] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases31] src/img2pdf_test.py::test_layout[layout_test_cases32] [gw1] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases111] src/img2pdf_test.py::test_layout[layout_test_cases112] [gw4] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases32] src/img2pdf_test.py::test_layout[layout_test_cases33] [gw1] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases112] src/img2pdf_test.py::test_layout[layout_test_cases113] [gw4] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases33] src/img2pdf_test.py::test_layout[layout_test_cases34] [gw1] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases113] src/img2pdf_test.py::test_layout[layout_test_cases114] [gw4] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases34] [gw1] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases114] src/img2pdf_test.py::test_layout[layout_test_cases115] src/img2pdf_test.py::test_layout[layout_test_cases35] [gw4] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases35] src/img2pdf_test.py::test_layout[layout_test_cases36] [gw1] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases115] src/img2pdf_test.py::test_layout[layout_test_cases116] [gw4] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases36] [gw1] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases116] src/img2pdf_test.py::test_layout[layout_test_cases37] src/img2pdf_test.py::test_layout[layout_test_cases117] [gw4] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases37] src/img2pdf_test.py::test_layout[layout_test_cases38] [gw1] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases117] src/img2pdf_test.py::test_layout[layout_test_cases118] [gw4] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases38] src/img2pdf_test.py::test_layout[layout_test_cases122] [gw1] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases118] [gw4] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases122] src/img2pdf_test.py::test_layout[layout_test_cases123] src/img2pdf_test.py::test_layout[layout_test_cases119] [gw1] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases119] src/img2pdf_test.py::test_layout[layout_test_cases120] [gw4] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases123] src/img2pdf_test.py::test_layout[layout_test_cases124] [gw1] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases120] [gw4] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases124] src/img2pdf_test.py::test_layout[layout_test_cases121] src/img2pdf_test.py::test_layout[layout_test_cases125] [gw1] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases121] src/img2pdf_test.py::test_layout[layout_test_cases126] [gw4] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases125] src/img2pdf_test.py::test_layout[layout_test_cases129] [gw1] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases126] [gw4] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases129] src/img2pdf_test.py::test_layout[layout_test_cases127] src/img2pdf_test.py::test_layout[layout_test_cases130] [gw1] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases127] [gw4] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases130] src/img2pdf_test.py::test_layout[layout_test_cases128] src/img2pdf_test.py::test_layout[layout_test_cases131] [gw1] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases128] src/img2pdf_test.py::test_layout[layout_test_cases132] [gw4] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases131] src/img2pdf_test.py::test_layout[layout_test_cases135] [gw1] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases132] src/img2pdf_test.py::test_layout[layout_test_cases133] [gw4] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases135] [gw1] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases133] src/img2pdf_test.py::test_layout[layout_test_cases136] src/img2pdf_test.py::test_layout[layout_test_cases134] [gw4] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases136] [gw1] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases134] src/img2pdf_test.py::test_layout[layout_test_cases137] src/img2pdf_test.py::test_layout[layout_test_cases138] [gw4] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases137] [gw1] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases138] src/img2pdf_test.py::test_layout[layout_test_cases141] src/img2pdf_test.py::test_layout[layout_test_cases139] [gw4] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases141] [gw1] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases139] src/img2pdf_test.py::test_layout[layout_test_cases142] src/img2pdf_test.py::test_layout[layout_test_cases140] [gw4] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases142] [gw7] [ 62%] PASSED src/img2pdf_test.py::test_tiff_rgba8[internal] [gw1] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases140] src/img2pdf_test.py::test_tiff_rgba8[pikepdf] src/img2pdf_test.py::test_layout[layout_test_cases143] src/img2pdf_test.py::test_layout[layout_test_cases144] [gw1] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases144] [gw4] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases143] src/img2pdf_test.py::test_layout[layout_test_cases146] src/img2pdf_test.py::test_layout[layout_test_cases145] [gw4] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases146] [gw1] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases145] src/img2pdf_test.py::test_layout[layout_test_cases148] src/img2pdf_test.py::test_layout[layout_test_cases147] [gw4] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases147] [gw1] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases148] src/img2pdf_test.py::test_layout[layout_test_cases150] src/img2pdf_test.py::test_layout[layout_test_cases149] [gw4] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases150] [gw1] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases149] src/img2pdf_test.py::test_layout[layout_test_cases152] src/img2pdf_test.py::test_layout[layout_test_cases151] [gw4] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases151] [gw1] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases152] src/img2pdf_test.py::test_layout[layout_test_cases154] src/img2pdf_test.py::test_layout[layout_test_cases153] [gw4] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases154] src/img2pdf_test.py::test_layout[layout_test_cases155] [gw1] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases153] src/img2pdf_test.py::test_layout[layout_test_cases156] [gw4] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases155] [gw1] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases156] src/img2pdf_test.py::test_layout[layout_test_cases158] src/img2pdf_test.py::test_layout[layout_test_cases157] [gw4] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases158] [gw1] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases157] src/img2pdf_test.py::test_layout[layout_test_cases159] src/img2pdf_test.py::test_layout[layout_test_cases160] [gw1] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases160] [gw4] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases159] src/img2pdf_test.py::test_layout[layout_test_cases162] src/img2pdf_test.py::test_layout[layout_test_cases161] [gw1] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases162] src/img2pdf_test.py::test_layout[layout_test_cases163] [gw4] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases161] [gw1] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases163] src/img2pdf_test.py::test_layout[layout_test_cases164] src/img2pdf_test.py::test_layout[layout_test_cases165] [gw4] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases164] [gw1] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases165] src/img2pdf_test.py::test_layout[layout_test_cases166] src/img2pdf_test.py::test_layout[layout_test_cases167] [gw4] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases166] [gw1] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases167] src/img2pdf_test.py::test_layout[layout_test_cases168] src/img2pdf_test.py::test_layout[layout_test_cases169] [gw4] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases168] [gw1] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases169] src/img2pdf_test.py::test_layout[layout_test_cases170] src/img2pdf_test.py::test_layout[layout_test_cases171] [gw4] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases170] [gw1] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases171] src/img2pdf_test.py::test_layout[layout_test_cases173] src/img2pdf_test.py::test_layout[layout_test_cases172] [gw4] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases172] [gw1] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases173] src/img2pdf_test.py::test_layout[layout_test_cases174] src/img2pdf_test.py::test_layout[layout_test_cases175] [gw1] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases174] [gw4] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases175] src/img2pdf_test.py::test_layout[layout_test_cases176] src/img2pdf_test.py::test_layout[layout_test_cases177] [gw1] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases176] [gw4] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases177] src/img2pdf_test.py::test_layout[layout_test_cases178] src/img2pdf_test.py::test_layout[layout_test_cases179] [gw1] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases178] [gw4] [ 73%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases179] src/img2pdf_test.py::test_layout[layout_test_cases180] src/img2pdf_test.py::test_general[normal.png-internal] [gw1] [ 73%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases180] src/img2pdf_test.py::test_general[normal.png-pikepdf] [gw4] [ 73%] PASSED src/img2pdf_test.py::test_general[normal.png-internal] src/img2pdf_test.py::test_general[normal.png-pdfrw] [gw4] [ 74%] PASSED src/img2pdf_test.py::test_general[normal.png-pdfrw] src/img2pdf_test.py::test_general[normal.jpg-pikepdf] [gw5] [ 74%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pdfrw] [gw1] [ 74%] PASSED src/img2pdf_test.py::test_general[normal.png-pikepdf] src/img2pdf_test.py::test_general[normal.jpg-internal] [gw4] [ 75%] PASSED src/img2pdf_test.py::test_general[normal.jpg-pikepdf] src/img2pdf_test.py::test_general[normal.jpg-pdfrw] [gw1] [ 75%] PASSED src/img2pdf_test.py::test_general[normal.jpg-internal] [gw4] [ 75%] PASSED src/img2pdf_test.py::test_general[normal.jpg-pdfrw] src/img2pdf_test.py::test_general[mono.tif-internal] src/img2pdf_test.py::test_general[mono.tif-pikepdf] [gw1] [ 75%] PASSED src/img2pdf_test.py::test_general[mono.tif-internal] [gw0] [ 76%] PASSED src/img2pdf_test.py::test_tiff_multipage[pdfrw] [gw4] [ 76%] PASSED src/img2pdf_test.py::test_general[mono.tif-pikepdf] src/img2pdf_test.py::test_tiff_palette1[internal] src/img2pdf_test.py::test_general[mono.tif-pdfrw] src/img2pdf_test.py::test_general[mono.png-internal] [gw4] [ 76%] PASSED src/img2pdf_test.py::test_general[mono.png-internal] [gw1] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.tif-pdfrw] src/img2pdf_test.py::test_general[mono.png-pdfrw] src/img2pdf_test.py::test_general[mono.png-pikepdf] [gw4] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.png-pdfrw] src/img2pdf_test.py::test_general[gray.png-internal] [gw1] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.png-pikepdf] src/img2pdf_test.py::test_general[gray.png-pikepdf] [gw4] [ 77%] PASSED src/img2pdf_test.py::test_general[gray.png-internal] src/img2pdf_test.py::test_general[gray.png-pdfrw] [gw1] [ 78%] PASSED src/img2pdf_test.py::test_general[gray.png-pikepdf] src/img2pdf_test.py::test_general[animation.gif-internal] [gw4] [ 78%] PASSED src/img2pdf_test.py::test_general[gray.png-pdfrw] src/img2pdf_test.py::test_general[animation.gif-pikepdf] [gw1] [ 78%] PASSED src/img2pdf_test.py::test_general[animation.gif-internal] src/img2pdf_test.py::test_general[animation.gif-pdfrw] [gw1] [ 79%] PASSED src/img2pdf_test.py::test_general[animation.gif-pdfrw] src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] [gw4] [ 79%] PASSED src/img2pdf_test.py::test_general[animation.gif-pikepdf] src/img2pdf_test.py::test_general[CMYK.tif-internal] [gw1] [ 79%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] src/img2pdf_test.py::test_general[CMYK.tif-pdfrw] [gw1] [ 79%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-pdfrw] [gw4] [ 80%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-internal] src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] src/img2pdf_test.py::test_general[CMYK.jpg-internal] [gw1] [ 80%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] src/img2pdf_test.py::test_general[CMYK.jpg-pdfrw] [gw4] [ 80%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-internal] [gw1] [ 81%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-pdfrw] [gw3] [ 81%] PASSED src/img2pdf_test.py::test_tiff_rgb8[pikepdf] src/img2pdf_test.py::test_layout[layout_test_cases20] [gw3] [ 81%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases20] src/img2pdf_test.py::test_layout[layout_test_cases21] [gw3] [ 81%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases21] src/img2pdf_test.py::test_layout[layout_test_cases22] [gw3] [ 82%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases22] src/img2pdf_test.py::test_layout[layout_test_cases23] [gw3] [ 82%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases23] src/img2pdf_test.py::test_layout[layout_test_cases24] [gw3] [ 82%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases24] src/img2pdf_test.py::test_layout[layout_test_cases25] [gw3] [ 83%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases25] src/img2pdf_test.py::test_layout[layout_test_cases26] [gw3] [ 83%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases26] src/img2pdf_test.py::test_layout[layout_test_cases27] [gw3] [ 83%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases27] src/img2pdf_test.py::test_layout[layout_test_cases28] [gw3] [ 83%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases28] src/img2pdf_test.py::test_layout[layout_test_cases29] [gw3] [ 84%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases29] [gw6] [ 84%] PASSED src/img2pdf_test.py::test_tiff_gray2[pikepdf] src/img2pdf_test.py::test_tiff_gray2[pdfrw] [gw2] [ 84%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_nometa2[pdfrw] [gw7] [ 85%] PASSED src/img2pdf_test.py::test_tiff_rgba8[pikepdf] src/img2pdf_test.py::test_tiff_rgba8[pdfrw] [gw5] [ 85%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] [gw0] [ 85%] PASSED src/img2pdf_test.py::test_tiff_palette1[internal] src/img2pdf_test.py::test_tiff_palette1[pikepdf] [gw6] [ 85%] PASSED src/img2pdf_test.py::test_tiff_gray2[pdfrw] src/img2pdf_test.py::test_tiff_gray4[internal] [gw2] [ 86%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[pdfrw] src/img2pdf_test.py::test_layout[layout_test_cases0] [gw2] [ 86%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases0] src/img2pdf_test.py::test_layout[layout_test_cases1] [gw2] [ 86%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases1] src/img2pdf_test.py::test_layout[layout_test_cases2] [gw2] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases2] src/img2pdf_test.py::test_layout[layout_test_cases3] [gw2] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases3] src/img2pdf_test.py::test_layout[layout_test_cases4] [gw2] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases4] src/img2pdf_test.py::test_layout[layout_test_cases5] [gw2] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases5] src/img2pdf_test.py::test_layout[layout_test_cases6] [gw7] [ 88%] PASSED src/img2pdf_test.py::test_tiff_rgba8[pdfrw] [gw2] [ 88%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases6] src/img2pdf_test.py::test_layout[layout_test_cases7] src/img2pdf_test.py::test_tiff_rgba16[internal] [gw2] [ 88%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases7] src/img2pdf_test.py::test_layout[layout_test_cases8] [gw2] [ 89%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases8] [gw7] [ 89%] ERROR src/img2pdf_test.py::test_tiff_rgba16[internal] src/img2pdf_test.py::test_tiff_rgba16[pikepdf] [gw7] [ 89%] ERROR src/img2pdf_test.py::test_tiff_rgba16[pikepdf] src/img2pdf_test.py::test_tiff_rgba16[pdfrw] [gw0] [ 89%] PASSED src/img2pdf_test.py::test_tiff_palette1[pikepdf] src/img2pdf_test.py::test_tiff_palette2[internal] [gw5] [ 90%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] [gw7] [ 90%] ERROR src/img2pdf_test.py::test_tiff_rgba16[pdfrw] src/img2pdf_test.py::test_tiff_gray1[internal] [gw6] [ 90%] PASSED src/img2pdf_test.py::test_tiff_gray4[internal] src/img2pdf_test.py::test_tiff_gray4[pikepdf] [gw5] [ 91%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pdfrw] [gw0] [ 91%] PASSED src/img2pdf_test.py::test_tiff_palette2[internal] src/img2pdf_test.py::test_tiff_palette2[pikepdf] [gw7] [ 91%] PASSED src/img2pdf_test.py::test_tiff_gray1[internal] src/img2pdf_test.py::test_tiff_gray1[pikepdf] [gw6] [ 91%] PASSED src/img2pdf_test.py::test_tiff_gray4[pikepdf] src/img2pdf_test.py::test_tiff_gray4[pdfrw] [gw5] [ 92%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] [gw0] [ 92%] PASSED src/img2pdf_test.py::test_tiff_palette2[pikepdf] src/img2pdf_test.py::test_tiff_palette4[internal] [gw7] [ 92%] PASSED src/img2pdf_test.py::test_tiff_gray1[pikepdf] src/img2pdf_test.py::test_tiff_gray1[pdfrw] [gw6] [ 93%] PASSED src/img2pdf_test.py::test_tiff_gray4[pdfrw] src/img2pdf_test.py::test_tiff_gray8[internal] [gw5] [ 93%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] [gw7] [ 93%] PASSED src/img2pdf_test.py::test_tiff_gray1[pdfrw] [gw0] [ 93%] PASSED src/img2pdf_test.py::test_tiff_palette4[internal] src/img2pdf_test.py::test_tiff_palette4[pikepdf] [gw6] [ 94%] PASSED src/img2pdf_test.py::test_tiff_gray8[internal] src/img2pdf_test.py::test_tiff_gray8[pikepdf] [gw5] [ 94%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pdfrw] [gw0] [ 94%] PASSED src/img2pdf_test.py::test_tiff_palette4[pikepdf] src/img2pdf_test.py::test_tiff_palette8[internal] [gw6] [ 95%] PASSED src/img2pdf_test.py::test_tiff_gray8[pikepdf] src/img2pdf_test.py::test_tiff_gray8[pdfrw] [gw5] [ 95%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] [gw6] [ 95%] PASSED src/img2pdf_test.py::test_tiff_gray8[pdfrw] src/img2pdf_test.py::test_tiff_gray16[internal] [gw6] [ 95%] ERROR src/img2pdf_test.py::test_tiff_gray16[internal] src/img2pdf_test.py::test_tiff_gray16[pikepdf] [gw6] [ 96%] ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] src/img2pdf_test.py::test_tiff_gray16[pdfrw] [gw6] [ 96%] ERROR src/img2pdf_test.py::test_tiff_gray16[pdfrw] src/img2pdf_test.py::test_tiff_multipage[internal] [gw5] [ 96%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] [gw0] [ 97%] PASSED src/img2pdf_test.py::test_tiff_palette8[internal] src/img2pdf_test.py::test_tiff_palette8[pikepdf] [gw5] [ 97%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_nometa1[pdfrw] [gw6] [ 97%] PASSED src/img2pdf_test.py::test_tiff_multipage[internal] src/img2pdf_test.py::test_tiff_multipage[pikepdf] [gw0] [ 97%] PASSED src/img2pdf_test.py::test_tiff_palette8[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] [gw5] [ 98%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] [gw6] [ 98%] PASSED src/img2pdf_test.py::test_tiff_multipage[pikepdf] [gw0] [ 98%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] [gw5] [ 99%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] [gw0] [ 99%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pdfrw] [gw0] [ 99%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pdfrw] src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] [gw0] [100%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] ===================================================================================================== ERRORS ====================================================================================================== ___________________________________________________________________________________ ERROR at setup of test_png_rgb16[internal] ____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def png_rgb16_img(tmp_normal16_png): in_img = tmp_normal16_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png', 'baseName': 'normal16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColor', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:23+00:00', 'date:modify': '2021-08-22T23:12:23+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'tainted': False, 'filesize': '21728B', 'numberPixels': '3600', 'pixelsPerSecond': '8.8822MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'normal16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '21728B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.8822MB', 'properties': {'date:create': '2021-08-22T23:12:23+00:00', 'date:modify': '2021-08-22T23:12:23+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') src/img2pdf_test.py:1210: AssertionError ____________________________________________________________________________________ ERROR at setup of test_png_rgba16[pdfrw] _____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_rgba16_img(tmp_alpha_png): in_img = tmp_alpha_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "TrueColorAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png', 'baseName': 'alpha.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColorAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:23+00:00', 'date:modify': '2021-08-22T23:12:23+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'tainted': False, 'filesize': '28928B', 'numberPixels': '3600', 'pixelsPerSecond': '5.9305MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'alpha.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '28928B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '5.9305MB', 'properties': {'date:create': '2021-08-22T23:12:23+00:00', 'date:modify': '2021-08-22T23:12:23+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') src/img2pdf_test.py:1313: AssertionError ___________________________________________________________________________________ ERROR at setup of test_png_rgba16[pikepdf] ____________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_rgba16_img(tmp_alpha_png): in_img = tmp_alpha_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "TrueColorAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/alpha.png', 'baseName': 'alpha.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColorAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'tainted': False, 'filesize': '28928B', 'numberPixels': '3600', 'pixelsPerSecond': '8.2898MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'alpha.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '28928B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/alpha.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '8.2898MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/alpha.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/alpha.png') src/img2pdf_test.py:1313: AssertionError _____________________________________________________________________________________ ERROR at setup of test_png_rgb16[pdfrw] _____________________________________________________________________________________ [gw1] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png') @pytest.fixture(scope="session") def png_rgb16_img(tmp_normal16_png): in_img = tmp_normal16_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png', 'baseName': 'normal16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColor', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'tainted': False, 'filesize': '21728B', 'numberPixels': '3600', 'pixelsPerSecond': '8.7582MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'normal16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '21728B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.7582MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png') src/img2pdf_test.py:1210: AssertionError ____________________________________________________________________________________ ERROR at setup of test_png_rgb16[pikepdf] ____________________________________________________________________________________ [gw0] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/normal16.png') @pytest.fixture(scope="session") def png_rgb16_img(tmp_normal16_png): in_img = tmp_normal16_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/normal16.png', 'baseName': 'normal16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColor', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'tainted': False, 'filesize': '21728B', 'numberPixels': '3600', 'pixelsPerSecond': '9.1353MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'normal16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '21728B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/normal16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '9.1353MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '2', 'png:IHDR.color_type': '2 (Truecolor)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/normal16.png') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/normal16.png') src/img2pdf_test.py:1210: AssertionError ___________________________________________________________________________________ ERROR at setup of test_png_rgba16[internal] ___________________________________________________________________________________ [gw5] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_rgba16_img(tmp_alpha_png): in_img = tmp_alpha_png 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "TrueColorAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png', 'baseName': 'alpha.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'TrueColorAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'tainted': False, 'filesize': '28928B', 'numberPixels': '3600', 'pixelsPerSecond': '8.1615MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'alpha.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '28928B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '8.1615MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '6', 'png:IHDR.color_type': '6 (RGBA)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png') src/img2pdf_test.py:1313: AssertionError ____________________________________________________________________________________ ERROR at setup of test_png_gray16a[pdfrw] ____________________________________________________________________________________ [gw5] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9e3e250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_gray16a_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("png_gray16a") / "in.png" subprocess.check_call( [ "convert", str(tmp_alpha_png), "-colorspace", "Gray", "-depth", "16", "-strip", 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "GrayscaleAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/png_gray16a0/in.png', 'baseName': 'in.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'GrayscaleAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'alpha': 8, 'gray': 1}, 'pixels': 7200, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'gray': {'min': 0, 'max': 255, 'mean': 74.486, 'median': 0, 'standardDeviation': 83.902, 'kurtosis': -0.76224, 'skewness': 0.87079, 'entropy': 0.77134}}, 'alpha': '#00000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'tainted': False, 'filesize': '2758B', 'numberPixels': '3600', 'pixelsPerSecond': '8.8181MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#00000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'gray': 1}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'gray': {'entropy': 0.77134, 'kurtosis': -0.76224, 'max': 255, 'mean': 74.486, 'median': 0, 'min': 0, 'skewness': 0.87079, 'standardDeviation': 83.902}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '2758B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/png_gray16a0/in.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 7200, 'pixelsPerSecond': '8.8181MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'GrayscaleAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/png_gray16a0/in.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) src/img2pdf_test.py:1441: AssertionError ___________________________________________________________________________________ ERROR at setup of test_png_gray16a[pikepdf] ___________________________________________________________________________________ [gw4] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...13e01f0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_gray16a_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("png_gray16a") / "in.png" subprocess.check_call( [ "convert", str(tmp_alpha_png), "-colorspace", "Gray", "-depth", "16", "-strip", 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "GrayscaleAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/png_gray16a0/in.png', 'baseName': 'in.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'GrayscaleAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'alpha': 8, 'gray': 1}, 'pixels': 7200, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'gray': {'min': 0, 'max': 255, 'mean': 74.486, 'median': 0, 'standardDeviation': 83.902, 'kurtosis': -0.76224, 'skewness': 0.87079, 'entropy': 0.77134}}, 'alpha': '#00000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'tainted': False, 'filesize': '2758B', 'numberPixels': '3600', 'pixelsPerSecond': '8.8907MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#00000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'gray': 1}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'gray': {'entropy': 0.77134, 'kurtosis': -0.76224, 'max': 255, 'mean': 74.486, 'median': 0, 'min': 0, 'skewness': 0.87079, 'standardDeviation': 83.902}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '2758B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/png_gray16a0/in.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 7200, 'pixelsPerSecond': '8.8907MB', 'properties': {'date:create': '2021-08-22T23:12:24+00:00', 'date:modify': '2021-08-22T23:12:24+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'GrayscaleAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/png_gray16a0/in.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4')) src/img2pdf_test.py:1441: AssertionError __________________________________________________________________________________ ERROR at setup of test_png_gray16a[internal] ___________________________________________________________________________________ [gw2] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...c175280>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/alpha_png0/alpha.png') @pytest.fixture(scope="session") def png_gray16a_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("png_gray16a") / "in.png" subprocess.check_call( [ "convert", str(tmp_alpha_png), "-colorspace", "Gray", "-depth", "16", "-strip", 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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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") == "GrayscaleAlpha", str(identify) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/png_gray16a0/in.png', 'baseName': 'in.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'GrayscaleAlpha', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'alpha': 8, 'gray': 1}, 'pixels': 7200, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'gray': {'min': 0, 'max': 255, 'mean': 74.486, 'median': 0, 'standardDeviation': 83.902, 'kurtosis': -0.76224, 'skewness': 0.87079, 'entropy': 0.77134}}, 'alpha': '#00000000', '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'tainted': False, 'filesize': '2758B', 'numberPixels': '3600', 'pixelsPerSecond': '5.6039MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'alpha': '#00000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 8, 'baseName': 'in.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'gray': 1}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'gray': {'entropy': 0.77134, 'kurtosis': -0.76224, 'max': 255, 'mean': 74.486, 'median': 0, 'min': 0, 'skewness': 0.87079, 'standardDeviation': 83.902}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '2758B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/png_gray16a0/in.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 7200, 'pixelsPerSecond': '5.6039MB', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '4', 'png:IHDR.color_type': '4 (GrayAlpha)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': '4800e1f6eade3a85d7cf0fad3d4f5298411aad2e510fee5fb4713f4436645711'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'GrayscaleAlpha', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/png_gray16a0/in.png') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2')) src/img2pdf_test.py:1441: AssertionError ___________________________________________________________________________________ ERROR at setup of test_png_gray16[internal] ___________________________________________________________________________________ [gw5] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9e3e250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/gray16_png0/gray16.png') @pytest.fixture(scope="session") def png_gray16_img(tmp_path_factory, tmp_gray16_png): identify = json.loads( subprocess.check_output(["convert", str(tmp_gray16_png), "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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/gray16_png0/gray16.png', 'baseName': 'gray16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'tainted': False, 'filesize': '7328B', 'numberPixels': '3600', 'pixelsPerSecond': '6.6869MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'gray16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '7328B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/gray16_png0/gray16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '6.6869MB', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) src/img2pdf_test.py:1746: AssertionError ____________________________________________________________________________________ ERROR at setup of test_png_gray16[pdfrw] _____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png') @pytest.fixture(scope="session") def png_gray16_img(tmp_path_factory, tmp_gray16_png): identify = json.loads( subprocess.check_output(["convert", str(tmp_gray16_png), "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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png', 'baseName': 'gray16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'tainted': False, 'filesize': '7328B', 'numberPixels': '3600', 'pixelsPerSecond': '7.174MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'gray16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '7328B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '7.174MB', 'properties': {'date:create': '2021-08-22T23:12:25+00:00', 'date:modify': '2021-08-22T23:12:25+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:1746: AssertionError ___________________________________________________________________________________ ERROR at setup of test_png_gray16[pikepdf] ____________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') @pytest.fixture(scope="session") def png_gray16_img(tmp_path_factory, tmp_gray16_png): identify = json.loads( subprocess.check_output(["convert", str(tmp_gray16_png), "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") == "PNG", str(identify) assert identify[0]["image"].get("mimeType") == "image/png", 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) > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png', 'baseName': 'gray16.png', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': 'Undefined', 'properties': {'date:create': '2021-08-22T23:12:26+00:00', 'date:modify': '2021-08-22T23:12:26+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'tainted': False, 'filesize': '7328B', 'numberPixels': '3600', 'pixelsPerSecond': '7.0587MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'gray16.png', 'baseType': 'Undefined', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'Zip', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'Undefined', 'filesize': '7328B', 'format': 'PNG', 'formatDescription': 'PNG', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/png', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png', 'numberPixels': '3600', 'orientation': 'Undefined', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '7.0587MB', 'properties': {'date:create': '2021-08-22T23:12:26+00:00', 'date:modify': '2021-08-22T23:12:26+00:00', 'png:IHDR.bit-depth-orig': '16', 'png:IHDR.bit_depth': '16', 'png:IHDR.color-type-orig': '0', 'png:IHDR.color_type': '0 (Grayscale)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4'}, 'renderingIntent': 'Undefined', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'Undefined', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:1746: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_cmyk16[pikepdf] ___________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/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': 'LSB', 'colorspace': 'CMYK', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'cyan': 8, 'magenta': 8, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 109.36, 'median': 63.75, 'standardDeviation': 119.38, 'kurtosis': -1.8368, 'skewness': 0.28346, 'entropy': 0.38697}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 255, 'mean': 111.07, 'median': 0, 'standardDeviation': 122.54, 'kurtosis': -1.8864, 'skewness': 0.25617, 'entropy': 0.31382}, 'magenta': {'min': 0, 'max': 255, 'mean': 112.17, 'median': 0, 'standardDeviation': 122.27, 'kurtosis': -1.8898, 'skewness': 0.23837, 'entropy': 0.31256}, 'yellow': {'min': 0, 'max': 255, 'mean': 112.43, 'median': 0, 'standardDeviation': 122.35, 'kurtosis': -1.8922, 'skewness': 0.23455, 'entropy': 0.31148}, 'black': {'min': 0, 'max': 255, 'mean': 101.78, 'median': 255, 'standardDeviation': 110.36, 'kurtosis': -1.6499, 'skewness': 0.40032, 'entropy': 0.61002}}, 'totalInkDensity': '299.22%', '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': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '7.8569MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'black': 1, 'cyan': 8, 'magenta': 8, 'yellow': 1}, 'channelStatistics': {'black': {'entropy': 0.61002, 'kurtosis': -1.6499, 'max': 255, 'mean': 101.78, 'median': 255, 'min': 0, 'skewness': 0.40032, 'standardDeviation': 110.36}, 'cyan': {'entropy': 0.31382, 'kurtosis': -1.8864, 'max': 255, 'mean': 111.07, 'median': 0, 'min': 0, 'skewness': 0.25617, 'standardDeviation': 122.54}, 'magenta': {'entropy': 0.31256, 'kurtosis': -1.8898, 'max': 255, 'mean': 112.17, 'median': 0, 'min': 0, 'skewness': 0.23837, 'standardDeviation': 122.27}, 'yellow': {'entropy': 0.31148, 'kurtosis': -1.8922, 'max': 255, 'mean': 112.43, 'median': 0, 'min': 0, 'skewness': 0.23455, 'standardDeviation': 122.35}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'CMYK', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.38697, 'kurtosis': -1.8368, 'max': 255, 'mean': 109.36, 'median': 63.75, 'min': 0, 'skewness': 0.28346, 'standardDeviation': 119.38}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_cmyk160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '7.8569MB', 'properties': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'totalInkDensity': '299.22%', 'transparentColor': '#00000000', 'type': 'ColorSeparation', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_cmyk160/in.tiff') tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal_png0/normal.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2365: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[internal] ___________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "14", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 14, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 14, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7.359MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 14, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '19164B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '7.359MB', 'properties': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2515: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[pikepdf] ____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "14", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 14, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 14, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7.359MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 14, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '19164B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '7.359MB', 'properties': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2515: AssertionError __________________________________________________________________________________ ERROR at setup of test_tiff_cmyk16[internal] ___________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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': 'LSB', 'colorspace': 'CMYK', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'cyan': 8, 'magenta': 8, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 109.36, 'median': 63.75, 'standardDeviation': 119.38, 'kurtosis': -1.8368, 'skewness': 0.28346, 'entropy': 0.38697}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 255, 'mean': 111.07, 'median': 0, 'standardDeviation': 122.54, 'kurtosis': -1.8864, 'skewness': 0.25617, 'entropy': 0.31382}, 'magenta': {'min': 0, 'max': 255, 'mean': 112.17, 'median': 0, 'standardDeviation': 122.27, 'kurtosis': -1.8898, 'skewness': 0.23837, 'entropy': 0.31256}, 'yellow': {'min': 0, 'max': 255, 'mean': 112.43, 'median': 0, 'standardDeviation': 122.35, 'kurtosis': -1.8922, 'skewness': 0.23455, 'entropy': 0.31148}, 'black': {'min': 0, 'max': 255, 'mean': 101.78, 'median': 255, 'standardDeviation': 110.36, 'kurtosis': -1.6499, 'skewness': 0.40032, 'entropy': 0.61002}}, 'totalInkDensity': '299.22%', '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': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '7.9968MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'black': 1, 'cyan': 8, 'magenta': 8, 'yellow': 1}, 'channelStatistics': {'black': {'entropy': 0.61002, 'kurtosis': -1.6499, 'max': 255, 'mean': 101.78, 'median': 255, 'min': 0, 'skewness': 0.40032, 'standardDeviation': 110.36}, 'cyan': {'entropy': 0.31382, 'kurtosis': -1.8864, 'max': 255, 'mean': 111.07, 'median': 0, 'min': 0, 'skewness': 0.25617, 'standardDeviation': 122.54}, 'magenta': {'entropy': 0.31256, 'kurtosis': -1.8898, 'max': 255, 'mean': 112.17, 'median': 0, 'min': 0, 'skewness': 0.23837, 'standardDeviation': 122.27}, 'yellow': {'entropy': 0.31148, 'kurtosis': -1.8922, 'max': 255, 'mean': 112.43, 'median': 0, 'min': 0, 'skewness': 0.23455, 'standardDeviation': 122.35}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'CMYK', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.38697, 'kurtosis': -1.8368, 'max': 255, 'mean': 109.36, 'median': 63.75, 'min': 0, 'skewness': 0.28346, 'standardDeviation': 119.38}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_cmyk160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '7.9968MB', 'properties': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'totalInkDensity': '299.22%', 'transparentColor': '#00000000', 'type': 'ColorSeparation', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_cmyk160/in.tiff') tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/normal_png0/normal.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:2365: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[pdfrw] _____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "14", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 14, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 14, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7.359MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 14, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '19164B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '7.359MB', 'properties': {'date:create': '2021-08-22T23:12:30+00:00', 'date:modify': '2021-08-22T23:12:30+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2515: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[pdfrw] _____________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "12", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 12, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 12, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '7.9607MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 12, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '16464B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '7.9607MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:2463: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb16[internal] ___________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "16", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'tainted': False, 'filesize': '21864B', 'numberPixels': '3600', 'pixelsPerSecond': '8.1374MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '21864B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.1374MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2564: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_cmyk16[pdfrw] ____________________________________________________________________________________ [gw0] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...696d250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0')) tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/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': 'LSB', 'colorspace': 'CMYK', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'cyan': 8, 'magenta': 8, 'yellow': 1, 'black': 1}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 109.36, 'median': 63.75, 'standardDeviation': 119.38, 'kurtosis': -1.8368, 'skewness': 0.28346, 'entropy': 0.38697}}, 'channelStatistics': {'cyan': {'min': 0, 'max': 255, 'mean': 111.07, 'median': 0, 'standardDeviation': 122.54, 'kurtosis': -1.8864, 'skewness': 0.25617, 'entropy': 0.31382}, 'magenta': {'min': 0, 'max': 255, 'mean': 112.17, 'median': 0, 'standardDeviation': 122.27, 'kurtosis': -1.8898, 'skewness': 0.23837, 'entropy': 0.31256}, 'yellow': {'min': 0, 'max': 255, 'mean': 112.43, 'median': 0, 'standardDeviation': 122.35, 'kurtosis': -1.8922, 'skewness': 0.23455, 'entropy': 0.31148}, 'black': {'min': 0, 'max': 255, 'mean': 101.78, 'median': 255, 'standardDeviation': 110.36, 'kurtosis': -1.6499, 'skewness': 0.40032, 'entropy': 0.61002}}, 'totalInkDensity': '299.22%', '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '8.5149MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'black': 1, 'cyan': 8, 'magenta': 8, 'yellow': 1}, 'channelStatistics': {'black': {'entropy': 0.61002, 'kurtosis': -1.6499, 'max': 255, 'mean': 101.78, 'median': 255, 'min': 0, 'skewness': 0.40032, 'standardDeviation': 110.36}, 'cyan': {'entropy': 0.31382, 'kurtosis': -1.8864, 'max': 255, 'mean': 111.07, 'median': 0, 'min': 0, 'skewness': 0.25617, 'standardDeviation': 122.54}, 'magenta': {'entropy': 0.31256, 'kurtosis': -1.8898, 'max': 255, 'mean': 112.17, 'median': 0, 'min': 0, 'skewness': 0.23837, 'standardDeviation': 122.27}, 'yellow': {'entropy': 0.31148, 'kurtosis': -1.8922, 'max': 255, 'mean': 112.43, 'median': 0, 'min': 0, 'skewness': 0.23455, 'standardDeviation': 122.35}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'CMYK', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.38697, 'kurtosis': -1.8368, 'max': 255, 'mean': 109.36, 'median': 63.75, 'min': 0, 'skewness': 0.28346, 'standardDeviation': 119.38}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_cmyk160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '8.5149MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '7511a952780499da9db703c19d66c5fa4f9e04521541503c3368cb988c9ef023', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'separated', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'totalInkDensity': '299.22%', 'transparentColor': '#00000000', 'type': 'ColorSeparation', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_cmyk160/in.tiff') tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal_png0/normal.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0')) src/img2pdf_test.py:2365: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[pikepdf] ____________________________________________________________________________________ [gw5] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9e3e250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "12", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 12, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 12, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '6.208MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 12, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '16464B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '6.208MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5')) src/img2pdf_test.py:2463: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb16[pikepdf] ____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "16", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'tainted': False, 'filesize': '21864B', 'numberPixels': '3600', 'pixelsPerSecond': '8.1374MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '21864B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.1374MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2564: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_rgb16[pdfrw] _____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb16_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "16", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'tainted': False, 'filesize': '21864B', 'numberPixels': '3600', 'pixelsPerSecond': '8.1374MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '21864B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.1374MB', 'properties': {'date:create': '2021-08-22T23:12:31+00:00', 'date:modify': '2021-08-22T23:12:31+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '22'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2564: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[internal] ___________________________________________________________________________________ [gw4] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...13e01f0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4')) tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/normal16_png0/normal16.png') @pytest.fixture(scope="session") def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png): in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" subprocess.check_call( ["convert", str(tmp_normal16_png), "-depth", "12", 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 if identify[0].get("version", "0") < "1.0": assert identify[0]["image"].get("depth") == 12, str(identify) else: > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/tiff_rgb80/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': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 12, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.443, 'median': 0, 'standardDeviation': 106.32, 'kurtosis': -1.0015, 'skewness': 0.91469, 'entropy': 0.44924}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, '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': {'date:create': '2021-08-22T23:12:32+00:00', 'date:modify': '2021-08-22T23:12:32+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '8.2816MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 12, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, 'channelStatistics': {'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '16464B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.44924, 'kurtosis': -1.0015, 'max': 255, 'mean': 74.443, 'median': 0, 'min': 0, 'skewness': 0.91469, 'standardDeviation': 106.32}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/tiff_rgb80/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 10800, 'pixelsPerSecond': '8.2816MB', 'properties': {'date:create': '2021-08-22T23:12:32+00:00', 'date:modify': '2021-08-22T23:12:32+00:00', 'signature': '2beb4f84beed6427b31df1d4c4b692906cf07700f6add2f7f8c129a1a6249a95', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColor', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/tiff_rgb80/in.tiff') tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/normal16_png0/normal16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4')) src/img2pdf_test.py:2463: AssertionError __________________________________________________________________________________ ERROR at setup of test_tiff_rgba16[internal] ___________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') @pytest.fixture(scope="session") def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("tiff_rgba16") / "in.tiff" subprocess.check_call( ["convert", str(tmp_alpha_png), "-depth", "16", "-strip", 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") == "TrueColorAlpha", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/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': 'TrueColorAlpha', 'baseType': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '7.5434MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'baseType': 'TrueColor', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '7.5434MB', 'properties': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2660: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_rgba16[pikepdf] ___________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') @pytest.fixture(scope="session") def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("tiff_rgba16") / "in.tiff" subprocess.check_call( ["convert", str(tmp_alpha_png), "-depth", "16", "-strip", 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") == "TrueColorAlpha", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/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': 'TrueColorAlpha', 'baseType': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '7.5434MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'baseType': 'TrueColor', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '7.5434MB', 'properties': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2660: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_rgba16[pdfrw] ____________________________________________________________________________________ [gw7] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...6291250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') @pytest.fixture(scope="session") def tiff_rgba16_img(tmp_path_factory, tmp_alpha_png): in_img = tmp_path_factory.mktemp("tiff_rgba16") / "in.tiff" subprocess.check_call( ["convert", str(tmp_alpha_png), "-depth", "16", "-strip", 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") == "TrueColorAlpha", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/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': 'TrueColorAlpha', 'baseType': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.403, 'median': 0, 'standardDeviation': 107.41, 'kurtosis': -1.5641, 'skewness': 0.54002, 'entropy': 0.47744}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 154.28, 'median': 0, 'standardDeviation': 110.67, 'kurtosis': -1.6435, 'skewness': -0.40859, 'entropy': 0.56203}, 'red': {'min': 0, 'max': 255, 'mean': 74.451, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -1.0014, 'skewness': 0.91471, 'entropy': 0.45042}, 'green': {'min': 0, 'max': 255, 'mean': 74.573, 'median': 0, 'standardDeviation': 106.38, 'kurtosis': -1.0071, 'skewness': 0.91183, 'entropy': 0.44937}, 'blue': {'min': 0, 'max': 255, 'mean': 74.306, 'median': 0, 'standardDeviation': 106.29, 'kurtosis': -0.99831, 'skewness': 0.91677, 'entropy': 0.44794}}, 'alpha': '#0000000000000000', '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': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'tainted': False, 'filesize': '29078B', 'numberPixels': '3600', 'pixelsPerSecond': '7.5434MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'alpha': '#0000000000000000', 'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'baseType': 'TrueColor', 'borderColor': '#DFDFDF', 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, 'channelStatistics': {'alpha': {'entropy': 0.56203, 'kurtosis': -1.6435, 'max': 255, 'mean': 154.28, 'median': 0, 'min': 0, 'skewness': -0.40859, 'standardDeviation': 110.67}, 'blue': {'entropy': 0.44794, 'kurtosis': -0.99831, 'max': 255, 'mean': 74.306, 'median': 0, 'min': 0, 'skewness': 0.91677, 'standardDeviation': 106.29}, 'green': {'entropy': 0.44937, 'kurtosis': -1.0071, 'max': 255, 'mean': 74.573, 'median': 0, 'min': 0, 'skewness': 0.91183, 'standardDeviation': 106.38}, 'red': {'entropy': 0.45042, 'kurtosis': -1.0014, 'max': 255, 'mean': 74.451, 'median': 0, 'min': 0, 'skewness': 0.91471, 'standardDeviation': 106.29}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'sRGB', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '29078B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'imageStatistics': {'Overall': {'entropy': 0.47744, 'kurtosis': -1.5641, 'max': 255, 'mean': 94.403, 'median': 0, 'min': 0, 'skewness': 0.54002, 'standardDeviation': 107.41}}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 14400, 'pixelsPerSecond': '7.5434MB', 'properties': {'date:create': '2021-08-22T23:12:33+00:00', 'date:modify': '2021-08-22T23:12:33+00:00', 'signature': '5102c451f45a6ed12fab32dfaa915f37aadc9a1d3fc228e2601f1ad6c3a14c05', 'tiff:alpha': 'unassociated', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '17'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'TrueColorAlpha', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/in.tiff') tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alpha.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7')) src/img2pdf_test.py:2660: AssertionError __________________________________________________________________________________ ERROR at setup of test_tiff_gray16[internal] ___________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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': 'LSB', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '7370B', 'numberPixels': '3600', 'pixelsPerSecond': '10.048MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '7370B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '10.048MB', 'properties': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff') tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:2894: AssertionError ___________________________________________________________________________________ ERROR at setup of test_tiff_gray16[pikepdf] ___________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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': 'LSB', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '7370B', 'numberPixels': '3600', 'pixelsPerSecond': '10.048MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '7370B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '10.048MB', 'properties': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff') tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:2894: AssertionError ____________________________________________________________________________________ ERROR at setup of test_tiff_gray16[pdfrw] ____________________________________________________________________________________ [gw6] linux -- Python 3.8.11 /usr/bin/python3.8 tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...edb62b0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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", 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 > assert identify[0]["image"].get("depth") == 16, str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/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': 'LSB', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 255, 'mean': 111.93, 'median': 0, 'standardDeviation': 87.342, 'kurtosis': -1.3404, 'skewness': 0.1718, 'entropy': 0.79785}}, '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': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'tainted': False, 'filesize': '7370B', 'numberPixels': '3600', 'pixelsPerSecond': '10.048MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 https://imagemagick.org'}}] E assert 8 == 16 E +8 E -16 endian = 'endianness' identify = [{'image': {'backgroundColor': '#FFFFFF', 'baseDepth': 16, 'baseName': 'in.tiff', 'borderColor': '#DFDFDF', 'channelDepth': {'gray': 1}, 'channelStatistics': {'gray': {'entropy': 0.79785, 'kurtosis': -1.3404, 'max': 255, 'mean': 111.93, 'median': 0, 'min': 0, 'skewness': 0.1718, 'standardDeviation': 87.342}}, 'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'redPrimary': {'x': 0.64, 'y': 0.33}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'class': 'DirectClass', 'colorspace': 'Gray', 'compose': 'Over', 'compression': 'None', 'depth': 8, 'dispose': 'Undefined', 'elapsedTime': '0:01.000', 'endianness': 'LSB', 'filesize': '7370B', 'format': 'TIFF', 'formatDescription': 'TIFF', 'gamma': 0.454545, 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'intensity': 'Undefined', 'interlace': 'None', 'iterations': 0, 'matteColor': '#BDBDBD', 'mimeType': 'image/tiff', 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff', 'numberPixels': '3600', 'orientation': 'TopLeft', 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, 'pixels': 3600, 'pixelsPerSecond': '10.048MB', 'properties': {'date:create': '2021-08-22T23:12:38+00:00', 'date:modify': '2021-08-22T23:12:38+00:00', 'signature': 'cce6114e8a2d007118687da74f3b741da51c3e2f17eafbc386a311527b259ff4', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'min-is-black', 'tiff:rows-per-strip': '60'}, 'renderingIntent': 'Perceptual', 'tainted': False, 'transparentColor': '#00000000', 'type': 'Grayscale', 'units': 'PixelsPerInch', 'userTime': '0.000u', 'version': 'ImageMagick 7.1.0-4 Q8 x86_64 2021-07-18 ' 'https://imagemagick.org'}, 'version': '1.0'}] in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/in.tiff') tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6')) src/img2pdf_test.py:2894: AssertionError ============================================================================================= short test summary info ============================================================================================= ERROR src/img2pdf_test.py::test_png_rgb16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/normal16_png0... ERROR src/img2pdf_test.py::test_png_rgba16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/alpha_png0/alph... ERROR src/img2pdf_test.py::test_png_rgba16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/alpha_png0/al... ERROR src/img2pdf_test.py::test_png_rgb16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/no... ERROR src/img2pdf_test.py::test_png_rgb16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal16_png0/... ERROR src/img2pdf_test.py::test_png_rgba16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/alpha_png0/a... ERROR src/img2pdf_test.py::test_png_gray16a[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/png_gray16a0/i... ERROR src/img2pdf_test.py::test_png_gray16a[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/png_gray16a0... ERROR src/img2pdf_test.py::test_png_gray16a[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/png_gray16a... ERROR src/img2pdf_test.py::test_png_gray16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/gray16_png0/... ERROR src/img2pdf_test.py::test_png_gray16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gra... ERROR src/img2pdf_test.py::test_png_gray16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/g... ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_cmyk160... ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/i... ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in... ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_cmyk16... ERROR src/img2pdf_test.py::test_tiff_rgb14[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb80/in.t... ERROR src/img2pdf_test.py::test_tiff_rgb12[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.t... ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/i... ERROR src/img2pdf_test.py::test_tiff_cmyk16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_cmyk160/i... ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in... ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in... ERROR src/img2pdf_test.py::test_tiff_rgb16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgb81/in.t... ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw4/tiff_rgb80/i... ERROR src/img2pdf_test.py::test_tiff_rgba16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba16... ERROR src/img2pdf_test.py::test_tiff_rgba16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160... ERROR src/img2pdf_test.py::test_tiff_rgba16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_rgba160/i... ERROR src/img2pdf_test.py::test_tiff_gray16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray16... ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160... ERROR src/img2pdf_test.py::test_tiff_gray16[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_gray160/i... ========================================================================================= 318 passed, 30 errors in 24.79s ========================================================================================= * ERROR: media-gfx/img2pdf-0.4.1-r1::local failed (test phase): * pytest failed with python3.8 * * Call stack: * ebuild.sh, line 127: Called src_test * environment, line 2861: Called distutils-r1_src_test * environment, line 1235: Called _distutils-r1_run_foreach_impl 'python_test' * environment, line 490: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' * environment, line 2521: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2052: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' * environment, line 2050: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' * environment, line 791: Called distutils-r1_run_phase 'python_test' * environment, line 1174: Called python_test * environment, line 2817: Called epytest '-n' 'auto' * environment, line 1568: Called die * The specific snippet of code: * "${@}" || die -n "pytest failed with ${EPYTHON}"; * * If you need support, post the output of `emerge --info '=media-gfx/img2pdf-0.4.1-r1::local'`, * the complete build log and the output of `emerge -pqv '=media-gfx/img2pdf-0.4.1-r1::local'`. * The complete build log is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/environment'. * Working directory: '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1' * S: '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1'