Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 820405 Details for
Bug 875227
media-gfx/img2pdf-0.4.4 fails tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 620.76 KB, created by
Agostino Sarubbo
on 2022-10-05 06:59:29 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Agostino Sarubbo
Created:
2022-10-05 06:59:29 UTC
Size:
620.76 KB
patch
obsolete
> * Package: media-gfx/img2pdf-0.4.4:0 > * Repository: gentoo > * Upstream: josch@mister-muffin.de https://gitlab.mister-muffin.de/josch/img2pdf/issues > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox > > >@@@@@ PLEASE PAY ATTENTION HERE!!! @@@@@ >This information may help you to understand if this is a duplicate or if this bug exists after you pushed a fix; >This ebuild was merged at the following commit: >https://github.com/gentoo-mirror/gentoo/commit/63f1a3866400dbbd37faaceed363002e9c640a34 (Wed Oct 5 00:20:40 UTC 2022) >@@@@@ END @@@@@ > > > >################## ># emerge --info: # >################## >Portage 3.0.38.1 (python 3.10.7-final-0, default/linux/amd64/17.1, gcc-12.2.0, glibc-2.36-r4, 5.10.133-gentoo x86_64) >================================================================= >System uname: Linux-5.10.133-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2650_v4_@_2.20GHz-with-glibc2.36 >KiB Mem: 264024340 total, 46864328 free >KiB Swap: 0 total, 0 free >Timestamp of repository gentoo: Wed, 05 Oct 2022 00:20:39 +0000 >sh bash 5.1_p16-r2 >ld GNU ld (Gentoo 2.39 p4) 2.39.0 >app-misc/pax-utils: 1.3.5::gentoo >app-shells/bash: 5.1_p16-r2::gentoo >dev-lang/perl: 5.36.0::gentoo >dev-lang/python: 3.8.14::gentoo, 3.9.14::gentoo, 3.10.7::gentoo, 3.11.0_rc2::gentoo >dev-util/cmake: 3.24.2::gentoo >dev-util/meson: 0.63.2-r1::gentoo >sys-apps/baselayout: 2.9::gentoo >sys-apps/openrc: 0.45.2::gentoo >sys-apps/sandbox: 2.29::gentoo >sys-devel/autoconf: 2.71-r4::gentoo >sys-devel/automake: 1.16.5::gentoo >sys-devel/binutils: 2.39-r2::gentoo >sys-devel/binutils-config: 5.4.1::gentoo >sys-devel/gcc: 12.2.0::gentoo >sys-devel/gcc-config: 2.6::gentoo >sys-devel/libtool: 2.4.7::gentoo >sys-devel/make: 4.3::gentoo >sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers) >sys-libs/glibc: 2.36-r4::gentoo >Repositories: > >gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-jobs: 1 > sync-rsync-verify-max-age: 24 > sync-rsync-verify-metamanifest: yes > sync-rsync-extra-opts: > >ACCEPT_KEYWORDS="amd64 ~amd64" >ACCEPT_LICENSE="* LGPL-3+" >CBUILD="x86_64-pc-linux-gnu" >CFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" >CHOST="x86_64-pc-linux-gnu" >CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" >CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" >CXXFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" >DISTDIR="/var/tmp/portage/media-gfx/img2pdf-0.4.4/distdir" >EMERGE_DEFAULT_OPTS="--with-bdeps=y -1 -k -b" >ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" >FCFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" >FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" >FFLAGS="-O2 -pipe -march=x86-64 -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" >GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://distfiles.gentoo.org" >LANG="C.UTF8" >LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" >MAKEOPTS="-j16" >PKGDIR="/root/tbci/binpkg" >PORTAGE_CONFIGROOT="/" >PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" >PORTAGE_TMPDIR="/var/tmp" >SHELL="/bin/bash" >USE="acl amd64 bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 jumbo-build libglvnd libtirpc multilib native-symlinks ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl test unicode xattr zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" PYTHON_TARGETS="python3_8 python3_9 python3_10" USERLAND="GNU" >Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS > > > > > >############################## ># emerge history (qlop -mv): # >############################## >2022-10-05T02:56:05 >>> sci-libs/suitesparseconfig-5.4.0 >2022-10-05T02:56:08 >>> app-text/poppler-data-0.4.11-r2 >2022-10-05T02:56:10 >>> media-fonts/baekmuk-fonts-2.2-r2 >2022-10-05T02:56:15 >>> acct-group/lpadmin-0-r1 >2022-10-05T02:56:12 >>> app-arch/cpio-2.12-r1 >2022-10-05T02:56:18 >>> app-arch/lzlib-1.13 >2022-10-05T02:56:20 >>> dev-lang/mujs-1.2.0 >2022-10-05T02:56:23 >>> dev-libs/libpcre-8.45-r1 >2022-10-05T02:56:25 >>> virtual/fortran-0-r1 >2022-10-05T02:56:31 >>> media-libs/lcms-2.13.1-r1 >2022-10-05T02:56:33 >>> app-text/libpaper-2.0.0 >2022-10-05T02:56:28 >>> media-libs/libjpeg-turbo-2.1.4 >2022-10-05T02:56:38 >>> dev-util/patchelf-0.15.0 >2022-10-05T02:56:36 >>> dev-libs/icu-71.1-r1 >2022-10-05T02:56:41 >>> media-libs/jbig2dec-0.19 >2022-10-05T02:56:46 >>> sci-libs/metis-5.1.0-r5 >2022-10-05T02:56:43 >>> dev-cpp/eigen-3.4.0-r1 >2022-10-05T02:56:48 >>> media-libs/libart_lgpl-2.3.21-r3 >2022-10-05T02:56:51 >>> dev-libs/libtommath-1.2.0-r2 >2022-10-05T02:56:56 >>> net-dns/libidn-1.41 >2022-10-05T02:56:54 >>> dev-libs/gumbo-0.10.1 >2022-10-05T02:56:59 >>> sys-devel/bc-1.07.1-r5 >2022-10-05T02:57:02 >>> dev-libs/zziplib-0.13.72-r1 >2022-10-05T02:57:05 >>> app-text/dvipsk-2021.1_p20210325-r1 >2022-10-05T02:57:10 >>> app-text/docbook-xml-dtd-4.3-r2 >2022-10-05T02:57:07 >>> x11-misc/xdg-user-dirs-0.18 >2022-10-05T02:57:13 >>> dev-python/py-1.11.0-r1 >2022-10-05T02:57:15 >>> dev-python/gast-0.5.3-r1 >2022-10-05T02:57:18 >>> dev-python/ply-3.11-r2 >2022-10-05T02:57:23 >>> dev-python/iniconfig-1.1.1-r1 >2022-10-05T02:57:20 >>> dev-python/pygments-2.13.0 >2022-10-05T02:57:26 >>> dev-python/pluggy-1.0.0-r2 >2022-10-05T02:57:28 >>> dev-python/zope-interface-5.4.0-r2 >2022-10-05T02:57:33 >>> dev-python/psutil-5.9.1 >2022-10-05T02:57:31 >>> dev-python/execnet-1.9.0-r1 >2022-10-05T02:57:36 >>> dev-python/olefile-0.46-r2 >2022-10-05T02:57:39 >>> dev-util/gdbus-codegen-2.74.0 >2022-10-05T02:57:42 >>> dev-python/deprecation-2.1.0 >2022-10-05T02:57:44 >>> dev-python/lxml-4.9.1 >2022-10-05T02:57:47 >>> dev-python/alabaster-0.7.12-r1 >2022-10-05T02:57:51 >>> dev-python/imagesize-1.4.1 >2022-10-05T02:57:54 >>> dev-python/snowballstemmer-2.2.0-r1 >2022-10-05T02:58:00 >>> dev-python/backports-zoneinfo-0.2.1-r2 >2022-10-05T02:57:57 >>> dev-python/pytz-2022.4 >2022-10-05T02:58:11 >>> sci-libs/camd-2.4.6-r1 >2022-10-05T02:58:05 >>> sci-libs/colamd-2.9.6 >2022-10-05T02:58:08 >>> sci-libs/ccolamd-2.9.6 >2022-10-05T02:58:17 >>> dev-libs/kpathsea-6.3.3_p20210325 >2022-10-05T02:58:20 >>> virtual/perl-Test-Simple-1.302.190 >2022-10-05T02:58:23 >>> media-libs/exiftool-12.42 >2022-10-05T02:58:26 >>> dev-perl/MRO-Compat-0.130.0-r1 >2022-10-05T02:58:29 >>> dev-perl/XString-0.5.0 >2022-10-05T02:58:39 >>> dev-perl/OLE-StorageLite-0.200.0-r1 >2022-10-05T02:58:32 >>> dev-perl/PadWalker-2.500.0 >2022-10-05T02:58:35 >>> dev-perl/Class-Data-Inheritable-0.90.0 >2022-10-05T02:58:50 >>> dev-perl/IO-stringy-2.113.0 >2022-10-05T02:58:53 >>> dev-perl/Crypt-RC4-2.20.0-r2 >2022-10-05T02:58:56 >>> dev-perl/Unicode-Map-0.112.0-r2 >2022-10-05T02:58:59 >>> virtual/perl-Storable-3.260.0 >2022-10-05T02:59:07 >>> dev-perl/Sub-Install-0.928.0-r1 >2022-10-05T02:59:01 >>> virtual/perl-Sys-Syslog-0.360.0-r2 >2022-10-05T02:59:05 >>> dev-lang/nasm-2.15.05 >2022-10-05T02:59:13 >>> dev-perl/Devel-StackTrace-2.40.0 >2022-10-05T02:59:23 >>> dev-perl/Variable-Magic-0.620.0-r1 >2022-10-05T02:59:17 >>> dev-perl/Sub-Identify-0.140.0-r1 >2022-10-05T02:59:20 >>> dev-perl/Package-Stash-XS-0.290.0 >2022-10-05T02:59:29 >>> app-arch/rpm2targz-2021.03.16 >2022-10-05T02:59:34 >>> app-arch/plzip-1.10 >2022-10-05T02:59:40 >>> dev-perl/PerlIO-utf8_strict-0.8.0 >2022-10-05T02:59:45 >>> dev-lang/swig-4.0.2 >2022-10-05T02:59:50 >>> sci-libs/lapack-3.10.1 >2022-10-05T02:59:56 >>> media-libs/openjpeg-2.5.0-r2 >2022-10-05T03:00:01 >>> sci-libs/amd-2.4.6-r1 >2022-10-05T03:00:13 >>> dev-perl/Ref-Util-XS-0.117.0 >2022-10-05T03:00:07 >>> dev-perl/Role-Tiny-2.2.4 >2022-10-05T03:00:10 >>> dev-perl/Perl-Tidy-20211029.0.0 >2022-10-05T03:00:34 >>> dev-perl/Text-CSV_XS-1.460.0 >2022-10-05T03:00:27 >>> media-fonts/arphicfonts-0.2.20080216.1-r2 >2022-10-05T03:00:31 >>> dev-perl/File-Which-1.270.0 >2022-10-05T03:00:49 >>> dev-python/pybind11-2.10.0 >2022-10-05T03:00:57 >>> dev-perl/Digest-Perl-MD5-1.900.0-r1 >2022-10-05T03:00:54 >>> dev-libs/libtomcrypt-1.18.2-r4 >2022-10-05T03:01:03 >>> dev-perl/CPAN-Meta-Check-0.14.0-r1 >2022-10-05T03:01:13 >>> dev-perl/ExtUtils-HasCompiler-0.23.0 >2022-10-05T03:01:25 >>> dev-perl/Module-Runtime-0.16.0-r1 >2022-10-05T03:01:18 >>> dev-perl/Capture-Tiny-0.480.0-r1 >2022-10-05T03:01:22 >>> dev-perl/Sub-Quote-2.6.6-r1 >2022-10-05T03:01:40 >>> dev-python/setuptools_scm_git_archive-1.4 >2022-10-05T03:01:49 >>> media-libs/harfbuzz-5.2.0 >2022-10-05T03:01:46 >>> dev-python/pytest-forked-1.4.0-r1 >2022-10-05T03:01:55 >>> dev-python/beniget-0.4.1-r1 >2022-10-05T03:02:04 >>> dev-python/pycparser-2.21-r1 >2022-10-05T03:02:18 >>> dev-python/docutils-0.19 >2022-10-05T03:02:28 >>> dev-python/attrs-22.1.0 >2022-10-05T03:03:34 >>> dev-python/Babel-2.10.3 >2022-10-05T03:04:08 >>> dev-tex/bibtexu-3.71_p20210325 >2022-10-05T03:04:05 >>> app-text/ps2pkm-1.8_p20210325-r1 >2022-10-05T03:04:15 >>> dev-perl/Test-Fatal-0.16.0 >2022-10-05T03:04:02 >>> dev-libs/ptexenc-1.3.9_p20210325-r1 >2022-10-05T03:04:41 >>> dev-perl/Devel-Caller-2.60.0-r2 >2022-10-05T03:05:27 >>> virtual/jpeg-100-r1 >2022-10-05T03:05:30 >>> app-text/qpdf-11.1.1 >2022-10-05T03:05:33 >>> dev-perl/Exception-Class-1.450.0 >2022-10-05T03:05:55 >>> media-fonts/urw-fonts-2.4.9 >2022-10-05T03:05:59 >>> sys-apps/ed-1.18 >2022-10-05T03:06:04 >>> dev-perl/File-Slurper-0.12.0 >2022-10-05T03:06:18 >>> virtual/cblas-3.8 >2022-10-05T03:06:20 >>> virtual/blas-3.8 >2022-10-05T03:06:14 >>> virtual/lapack-3.10 >2022-10-05T03:06:32 >>> dev-perl/Ref-Util-0.204.0 >2022-10-05T03:07:03 >>> dev-perl/File-HomeDir-1.6.0 >2022-10-05T03:05:26 >>> media-libs/tiff-4.4.0-r1 >2022-10-05T03:07:15 >>> dev-perl/Spreadsheet-ParseExcel-0.650.0-r1 >2022-10-05T03:07:38 >>> dev-perl/Module-Implementation-0.90.0-r1 >2022-10-05T03:05:33 >>> media-libs/netpbm-10.86.34 >2022-10-05T03:07:35 >>> dev-perl/Dist-CheckConflicts-0.110.0-r1 >2022-10-05T03:08:00 >>> media-gfx/fontforge-20220308 >2022-10-05T03:07:56 >>> app-text/mupdf-1.20.0 >2022-10-05T03:08:12 >>> dev-python/cffi-1.15.1 >2022-10-05T03:08:35 >>> dev-python/pytest-7.1.3 >2022-10-05T03:09:27 >>> dev-perl/Devel-LexAlias-0.50.0-r1 >2022-10-05T03:09:46 >>> media-libs/gd-2.3.3-r1 >2022-10-05T03:10:10 >>> dev-perl/Config-AutoConf-0.320.0 >2022-10-05T03:06:23 >>> media-gfx/imagemagick-7.1.0.48 >2022-10-05T03:10:26 >>> sci-libs/cholmod-3.0.14 >2022-10-05T03:10:23 >>> sci-libs/arpack-3.8.0 >2022-10-05T03:10:29 >>> dev-python/numpy-1.23.3 >2022-10-05T03:11:04 >>> dev-perl/Package-Stash-0.390.0 >2022-10-05T03:11:20 >>> virtual/python-cffi-1 >2022-10-05T03:11:35 >>> dev-python/pytest-xdist-2.5.0-r1 >2022-10-05T03:11:32 >>> dev-python/pyproject-metadata-0.6.1 >2022-10-05T03:11:58 >>> dev-perl/Eval-Closure-0.140.0-r1 >2022-10-05T03:10:41 >>> app-text/poppler-22.09.0 >2022-10-05T03:12:15 >>> dev-perl/Params-Util-1.102.0 >2022-10-05T03:12:24 >>> sci-libs/umfpack-5.7.9 >2022-10-05T03:09:51 >>> dev-python/pikepdf-6.1.0 >2022-10-05T03:12:39 >>> dev-python/pythran-0.11.0 >2022-10-05T03:12:51 >>> dev-python/pycryptodome-3.15.0 >2022-10-05T03:13:15 >>> dev-perl/Params-ValidationCompiler-0.300.0 >2022-10-05T03:13:19 >>> dev-perl/Specio-0.480.0 >2022-10-05T03:13:09 >>> dev-python/meson-python-0.9.0 >2022-10-05T03:13:35 >>> net-print/cups-2.4.2-r6 >2022-10-05T03:13:45 >>> dev-perl/Data-OptList-0.112.0 >2022-10-05T03:14:52 >>> app-text/ghostscript-gpl-10.0.0-r1 >2022-10-05T03:14:46 >>> dev-python/scipy-1.9.1 >2022-10-05T03:14:57 >>> dev-perl/Sub-Exporter-0.988.0 >2022-10-05T03:10:43 >>> dev-python/pillow-9.2.0 >2022-10-05T03:15:09 >>> net-print/cups-filters-1.28.16-r1 >2022-10-05T03:15:38 >>> dev-perl/Sub-Exporter-Progressive-0.1.13-r1 >2022-10-05T03:15:59 >>> dev-python/pdfrw-0.4_p1 >2022-10-05T03:16:05 >>> dev-perl/Devel-GlobalDestruction-0.140.0-r1 >2022-10-05T03:16:02 >>> dev-perl/B-Hooks-EndOfScope-0.240.0-r1 >2022-10-05T03:16:25 >>> dev-perl/namespace-clean-0.270.0-r1 >2022-10-05T03:16:34 >>> dev-perl/namespace-autoclean-0.290.0 >2022-10-05T03:16:44 >>> dev-perl/Log-Dispatch-2.700.0 >2022-10-05T03:16:56 >>> app-text/texlive-core-2021-r4 >2022-10-05T03:16:53 >>> dev-python/sphinxcontrib-applehelp-1.0.2-r1 >2022-10-05T03:17:10 >>> dev-texlive/texlive-basic-2021 >2022-10-05T03:17:29 >>> dev-python/sphinxcontrib-devhelp-1.0.2-r1 >2022-10-05T03:17:32 >>> dev-texlive/texlive-latexrecommended-2021 >2022-10-05T03:17:35 >>> dev-texlive/texlive-fontsrecommended-2021 >2022-10-05T03:17:37 >>> dev-texlive/texlive-latex-2021 >2022-10-05T03:17:40 >>> dev-texlive/texlive-fontutils-2021 >2022-10-05T03:17:43 >>> dev-texlive/texlive-plaingeneric-2021 >2022-10-05T03:18:34 >>> dev-texlive/texlive-luatex-2021-r2 >2022-10-05T03:18:40 >>> virtual/latex-base-1.0 >2022-10-05T03:19:15 >>> dev-python/sphinxcontrib-jsmath-1.0.1-r2 >2022-10-05T03:19:20 >>> app-text/dvipng-1.17 >2022-10-05T03:19:23 >>> dev-texlive/texlive-pictures-2021 >2022-10-05T03:19:18 >>> dev-texlive/texlive-latexextra-2021 >2022-10-05T03:19:28 >>> virtual/texi2dvi-0-r2 >2022-10-05T03:19:26 >>> dev-tex/pgf-3.1.9a >2022-10-05T03:20:55 >>> dev-python/sphinxcontrib-htmlhelp-2.0.0-r1 >2022-10-05T03:21:05 >>> dev-python/sphinxcontrib-serializinghtml-1.1.5-r1 >2022-10-05T03:21:15 >>> dev-python/sphinxcontrib-qthelp-1.0.3-r1 >2022-10-05T03:21:25 >>> dev-python/sphinx-5.2.3 >2022-10-05T03:21:39 >>> dev-python/reportlab-3.6.11-r1 > > > > >####################################### ># installed packages (qlist -ICvUSS): # >####################################### >acct-group/audio-0-r1:0 >acct-group/cdrom-0-r1:0 >acct-group/dialout-0-r1:0 >acct-group/disk-0-r1:0 >acct-group/input-0-r1:0 >acct-group/kmem-0-r1:0 >acct-group/kvm-0-r1:0 >acct-group/lp-0-r1:0 >acct-group/lpadmin-0-r1:0 >acct-group/man-0-r1:0 >acct-group/messagebus-0-r1:0 >acct-group/polkitd-0-r1:0 >acct-group/portage-0:0 >acct-group/render-0-r1:0 >acct-group/sgx-0:0 >acct-group/sshd-0-r1:0 >acct-group/tape-0-r1:0 >acct-group/tty-0-r1:0 >acct-group/video-0-r1:0 >acct-user/man-1-r1:0 >acct-user/messagebus-0-r1:0 >acct-user/polkitd-0-r1:0 >acct-user/portage-0:0 >acct-user/sshd-0-r1:0 >app-admin/eselect-1.4.20:0 -doc -emacs -vim-syntax >app-admin/perl-cleaner-2.30:0 >app-arch/bzip2-1.0.8-r3:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 split-usr -static -static-libs -verify-sig >app-arch/cpio-2.12-r1:0 nls >app-arch/gzip-1.12-r2:0 -pic -static -verify-sig >app-arch/libarchive-3.6.1:0/13 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -blake2 bzip2 e2fsprogs -expat iconv -lz4 lzma -lzo -nettle -static-libs -verify-sig xattr -zstd >app-arch/lzlib-1.13:0 -verify-sig >app-arch/plzip-1.10:0 -verify-sig >app-arch/rpm2targz-2021.03.16:0 >app-arch/tar-1.34:0 acl -minimal nls -selinux -verify-sig xattr >app-arch/unzip-6.0_p27:0 bzip2 -natspec unicode >app-arch/xz-utils-5.2.7:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 extra-filters nls split-usr -static-libs -verify-sig >app-arch/zstd-1.5.2-r3:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -lz4 split-usr -static-libs >app-crypt/gnupg-2.3.7-r1:0 bzip2 -doc -ldap nls readline -selinux smartcard ssl -test tofu -tools -tpm -usb -user-socket -verify-sig -wks-server >app-crypt/gpgme-1.18.0-r1:1/11.6.15.1 -common-lisp cxx -python python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -qt5 -static-libs -test -verify-sig >app-crypt/libb2-0.98.1-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -native-cflags openmp -static-libs >app-crypt/libmd-1.0.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >app-crypt/pinentry-1.2.1-r1:0 -caps -efl -emacs -gnome-keyring -gtk ncurses -qt5 -verify-sig >app-crypt/rhash-1.4.3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug nls ssl -static-libs >app-editors/nano-6.4:0 -debug -justify -magic -minimal ncurses nls spell split-usr -static unicode >app-eselect/eselect-fontconfig-20220403:0 >app-eselect/eselect-iptables-20220320:0 >app-eselect/eselect-lib-bin-symlink-0.1.1-r1:0 >app-eselect/eselect-pinentry-0.7.2:0 >app-i18n/man-pages-ja-20180315-r1:0 >app-i18n/man-pages-l10n-4.14.0-r1:0 l10n_cs l10n_da l10n_de l10n_el l10n_es l10n_fi l10n_fr l10n_hu l10n_id l10n_it l10n_mk l10n_nb l10n_nl l10n_pl l10n_pt-BR l10n_ro l10n_sr l10n_sv l10n_uk l10n_vi >app-i18n/man-pages-ru-5.03.2390.2390.20191017-r1:0 >app-i18n/man-pages-zh_CN-1.6.3.6:0 >app-misc/c_rehash-1.7-r1:0 >app-misc/ca-certificates-20211016.3.83:0 -cacert >app-misc/editor-wrapper-4-r1:0 >app-misc/mime-types-2.1.53:0 -nginx >app-misc/pax-utils-1.3.5:0 -caps man -python python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 seccomp -test >app-misc/tmux-3.3a-r1:0 -debug -selinux -systemd -utempter -vim-syntax >app-portage/eix-0.36.5:0 -debug -doc nls -sqlite >app-portage/elt-patches-20220831:0 >app-portage/gemato-17.0:0 gpg -pretty-log python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test -tools >app-portage/gentoolkit-0.6.1-r3:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >app-portage/portage-utils-0.94.3:0 openmp qmanifest qtegrity -static >app-shells/bash-5.1_p16-r2:0 -afs -bashlogger -examples -mem-scramble net nls -plugins readline -verify-sig >app-shells/bash-completion-2.11:0 eselect -test >app-shells/gentoo-bashcomp-20190211-r1:0 >app-shells/push-3.4:0 >app-shells/quoter-4.2:0 >app-text/ansifilter-2.18:0 -qt5 >app-text/build-docbook-catalog-2.3-r1:0 >app-text/docbook-xml-dtd-4.5-r2:4.5 >app-text/docbook-xml-dtd-4.4-r3:4.4 >app-text/docbook-xml-dtd-4.3-r2:4.3 >app-text/docbook-xml-dtd-4.2-r3:4.2 >app-text/docbook-xml-dtd-4.1.2-r7:4.1.2 >app-text/docbook-xsl-stylesheets-1.79.1-r3:0 -ruby >app-text/dvipng-1.17:0 test -truetype >app-text/dvipsk-2021.1_p20210325-r1:0 doc -source >app-text/ghostscript-gpl-10.0.0-r1:0/10.0 -X cups -dbus -gtk l10n_de -l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW -static-libs unicode >app-text/libpaper-2.0.0:0/2 >app-text/manpager-1:0 >app-text/mupdf-1.20.0:0/1.20.0 -X javascript -opengl ssl >app-text/opensp-1.5.2-r7:0 -doc nls -static-libs -test >app-text/po4a-0.68:0 -test -test >app-text/poppler-22.09.0:0/124 -boost cairo -cjk -curl cxx -debug -doc introspection jpeg jpeg2k lcms -nss png -qt5 tiff utils -verify-sig >app-text/poppler-data-0.4.11-r2:0 >app-text/ps2pkm-1.8_p20210325-r1:0 >app-text/qpdf-11.1.1:0/11 -doc -examples -gnutls ssl -test >app-text/sgml-common-0.6.3-r7:0 >app-text/texlive-core-2021-r4:0 -X cjk -doc luajittex -source -tk -xetex -xindy >app-text/xmlto-0.0.28-r9:0 -latex text >dev-cpp/eigen-3.4.0-r1:3 -cpu_flags_arm_neon -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx -cuda -debug -doc openmp -test >dev-db/sqlite-3.39.4:3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc -icu readline -secure-delete -static-libs -tcl -test -tools >dev-lang/duktape-2.7.0-r3:0/2.7.0 >dev-lang/mujs-1.2.0:0/1.2.0 >dev-lang/nasm-2.15.05:0 -doc >dev-lang/perl-5.36.0:0/5.36 -berkdb -debug -doc gdbm ithreads -minimal -quadmath >dev-lang/python-3.11.0_rc2:3.11 -bluetooth -build ensurepip -examples gdbm -hardened -libedit -lto ncurses -pgo readline sqlite ssl -test -tk -verify-sig >dev-lang/python-3.10.7:3.10 -bluetooth -build ensurepip -examples gdbm -hardened -libedit -lto ncurses -pgo readline sqlite ssl -test -tk -verify-sig xml >dev-lang/python-3.9.14:3.9 -bluetooth -build ensurepip -examples gdbm -hardened -lto ncurses -pgo readline sqlite ssl -test -tk -verify-sig xml >dev-lang/python-3.8.14:3.8 -bluetooth -build ensurepip -examples gdbm -hardened -lto ncurses -pgo readline sqlite ssl -test -tk -verify-sig -wininst xml >dev-lang/python-exec-2.4.9:2 native-symlinks python_targets_pypy3 python_targets_python3_10 python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-lang/python-exec-conf-2.4.6:2 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-lang/swig-4.0.2:0 -ccache -doc pcre >dev-lang/tcl-8.6.12:0/8.6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug threads >dev-libs/boehm-gc-8.2.2-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cxx large -static-libs threads >dev-libs/elfutils-0.187-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 -lzma nls -static-libs -test utils -valgrind -verify-sig -zstd >dev-libs/expat-2.4.9:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -examples -static-libs unicode >dev-libs/glib-2.74.0-r1:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -dbus -debug elf -gtk-doc mime -selinux -static-libs -sysprof -systemtap -test -utils xattr >dev-libs/gmp-6.2.1-r2:0/10.4 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm cxx -doc -pic -static-libs >dev-libs/gobject-introspection-1.74.0:0 -doctool -gtk-doc python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 -test >dev-libs/gobject-introspection-common-1.74.0:0 >dev-libs/gumbo-0.10.1:0 -doc -test >dev-libs/icu-71.1-r1:0/71.1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc -examples -static-libs -test -verify-sig >dev-libs/isl-0.24-r2:0/23 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >dev-libs/jsoncpp-1.9.5:0/25 -doc -test >dev-libs/kpathsea-6.3.3_p20210325:0/6.3.3 -doc -source -static-libs >dev-libs/libassuan-2.5.5:0 >dev-libs/libatomic_ops-7.6.14:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >dev-libs/libbsd-0.11.6:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -verify-sig >dev-libs/libevent-2.1.12:0/2.1-7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 clock-gettime -debug -malloc-replacement ssl -static-libs -test threads -verbose-debug >dev-libs/libffi-3.4.3:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -exec-static-trampoline -experimental-loong -pax-kernel -static-libs -test >dev-libs/libgcrypt-1.10.1-r2:0/20 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -cpu_flags_arm_aes -cpu_flags_arm_neon -cpu_flags_arm_sha1 -cpu_flags_arm_sha2 -cpu_flags_ppc_altivec -cpu_flags_ppc_vsx2 -cpu_flags_ppc_vsx3 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 -cpu_flags_x86_padlock -cpu_flags_x86_sha cpu_flags_x86_sse4_1 -doc -static-libs -verify-sig >dev-libs/libgpg-error-1.45-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -common-lisp nls -static-libs -test >dev-libs/libksba-1.6.1:0 -static-libs -verify-sig >dev-libs/libltdl-2.4.7:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >dev-libs/libpcre-8.45-r1:3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 cxx jit -libedit pcre16 pcre32 readline split-usr -static-libs unicode zlib >dev-libs/libpcre2-10.40:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 jit -libedit pcre16 pcre32 readline split-usr -static-libs unicode -verify-sig zlib >dev-libs/libpipeline-1.5.6:0 -test >dev-libs/libtasn1-4.19.0:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -test -valgrind -verify-sig >dev-libs/libtomcrypt-1.18.2-r4:0/1 gmp libtommath -tomsfastmath >dev-libs/libtommath-1.2.0-r2:0 -doc -examples -static-libs >dev-libs/libunistring-1.0:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs >dev-libs/libuv-1.44.2-r1:0/1 >dev-libs/libxml2-2.10.2:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -examples ftp -icu -lzma python python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 readline -static-libs -test >dev-libs/libxslt-1.1.37:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 crypt -debug -examples -python python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -static-libs >dev-libs/lzo-2.10:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -examples split-usr -static-libs >dev-libs/mpc-1.2.1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >dev-libs/mpfr-4.1.0_p13-r1:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >dev-libs/nettle-3.8.1:0/8-6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm -cpu_flags_arm_aes -cpu_flags_arm_neon -cpu_flags_arm_sha1 -cpu_flags_arm_sha2 -cpu_flags_ppc_altivec cpu_flags_x86_aes cpu_flags_x86_pclmul -cpu_flags_x86_sha -doc gmp -static-libs -verify-sig >dev-libs/npth-1.6-r1:0 -test >dev-libs/openssl-1.1.1q:0/1.1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 asm cpu_flags_x86_sse2 -rfc3779 -sctp -sslv3 -static-libs -test -tls-compression -tls-heartbeat -vanilla -verify-sig -verify-sig -weak-ssl-ciphers >dev-libs/popt-1.19:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls -static-libs >dev-libs/ptexenc-1.3.9_p20210325-r1:0 iconv >dev-libs/zziplib-0.13.72-r1:0/13 -sdl -static-libs >dev-perl/B-Hooks-EndOfScope-0.240.0-r1:0 -test >dev-perl/Capture-Tiny-0.480.0-r1:0 -examples -test >dev-perl/Class-Data-Inheritable-0.90.0:0 -test >dev-perl/Config-AutoConf-0.320.0:0 -test >dev-perl/CPAN-Meta-Check-0.14.0-r1:0 -test >dev-perl/Crypt-RC4-2.20.0-r2:0 >dev-perl/Data-OptList-0.112.0:0 -test >dev-perl/Devel-Caller-2.60.0-r2:0 >dev-perl/Devel-CheckLib-1.140.0:0 -test >dev-perl/Devel-GlobalDestruction-0.140.0-r1:0 -test >dev-perl/Devel-LexAlias-0.50.0-r1:0 -test >dev-perl/Devel-StackTrace-2.40.0:0 -test >dev-perl/Digest-Perl-MD5-1.900.0-r1:0 >dev-perl/Dist-CheckConflicts-0.110.0-r1:0 -test >dev-perl/Encode-EUCJPASCII-0.30.0-r1:0 -test >dev-perl/Encode-HanExtra-0.230.0-r3:0 >dev-perl/Encode-Locale-1.50.0-r1:0 -test >dev-perl/Eval-Closure-0.140.0-r1:0 -minimal -test >dev-perl/Exception-Class-1.450.0:0 -examples -test >dev-perl/ExtUtils-CChecker-0.110.0:0 -test >dev-perl/ExtUtils-HasCompiler-0.23.0:0 -test >dev-perl/File-BaseDir-0.90.0:0 -test >dev-perl/File-DesktopEntry-0.220.0-r1:0 -test >dev-perl/File-HomeDir-1.6.0:0 -test xdg >dev-perl/File-Listing-6.150.0:0 -test -test >dev-perl/File-MimeInfo-0.300.0:0 -test >dev-perl/File-Slurper-0.12.0:0 -examples -test >dev-perl/File-Which-1.270.0:0 -pwhich -test >dev-perl/HTML-Parser-3.760.0:0 -test >dev-perl/HTML-Tagset-3.200.0-r2:0 >dev-perl/HTTP-Cookies-6.100.0:0 -test >dev-perl/HTTP-Date-6.50.0:0 >dev-perl/HTTP-Message-6.330.0:0 -test -test >dev-perl/HTTP-Negotiate-6.10.0-r2:0 -test >dev-perl/IO-HTML-1.4.0:0 -test >dev-perl/IO-Socket-INET6-2.720.0-r2:0 -test >dev-perl/IO-Socket-SSL-2.74.0:0 -examples -idn -test >dev-perl/IO-stringy-2.113.0:0 -test >dev-perl/IPC-System-Simple-1.300.0:0 -test >dev-perl/libwww-perl-6.600.0-r1:0 ssl -test >dev-perl/Locale-gettext-1.70.0-r1:0 -test >dev-perl/Log-Dispatch-2.700.0:0 -test >dev-perl/LWP-MediaTypes-6.40.0:0 -test >dev-perl/LWP-Protocol-https-6.100.0:0 -test >dev-perl/MIME-Charset-1.12.2-r1:0 l10n_ja l10n_zh -test >dev-perl/Module-Build-0.423.100:0 -test >dev-perl/Module-Implementation-0.90.0-r1:0 -test >dev-perl/Module-Runtime-0.16.0-r1:0 -test >dev-perl/Mozilla-CA-20999999-r1:0 -test >dev-perl/MRO-Compat-0.130.0-r1:0 -test >dev-perl/namespace-autoclean-0.290.0:0 -test >dev-perl/namespace-clean-0.270.0-r1:0 -test >dev-perl/Net-HTTP-6.210.0:0 -minimal -test >dev-perl/Net-SSLeay-1.920.0:0 -examples -examples -minimal -test >dev-perl/OLE-StorageLite-0.200.0-r1:0 -test >dev-perl/Package-Stash-0.390.0:0 -minimal -test >dev-perl/Package-Stash-XS-0.290.0:0 -test >dev-perl/PadWalker-2.500.0:0 -test >dev-perl/Params-Util-1.102.0:0 -test >dev-perl/Params-ValidationCompiler-0.300.0:0 -examples -test >dev-perl/Perl-Tidy-20211029.0.0:0 -examples -test >dev-perl/PerlIO-utf8_strict-0.8.0:0 -test >dev-perl/Pod-Parser-1.630.0-r1:0 -test >dev-perl/Ref-Util-0.204.0:0 -test xs >dev-perl/Ref-Util-XS-0.117.0:0 -test >dev-perl/Role-Tiny-2.2.4:0 -test >dev-perl/SGMLSpm-1.1-r2:0 -test >dev-perl/Socket6-0.290.0:0 -test >dev-perl/Specio-0.480.0:0 -minimal -test >dev-perl/Spreadsheet-ParseExcel-0.650.0-r1:0 -cjk -test unicode >dev-perl/Sub-Exporter-0.988.0:0 -test >dev-perl/Sub-Exporter-Progressive-0.1.13-r1:0 -test >dev-perl/Sub-Identify-0.140.0-r1:0 -test >dev-perl/Sub-Install-0.928.0-r1:0 -test >dev-perl/Sub-Name-0.260.0:0 -suggested -test >dev-perl/Sub-Quote-2.6.6-r1:0 -minimal -test >dev-perl/Syntax-Keyword-Try-0.270.0:0 -test >dev-perl/TermReadKey-2.380.0:0 -examples -test >dev-perl/Test-Fatal-0.16.0:0 -examples -test >dev-perl/Text-CharWidth-0.40.0-r2:0 -test >dev-perl/Text-CSV_XS-1.460.0:0 -examples -test >dev-perl/Text-WrapI18N-0.60.0-r2:0 -test >dev-perl/TimeDate-2.330.0-r1:0 -test >dev-perl/Try-Tiny-0.310.0:0 -minimal -test >dev-perl/Unicode-LineBreak-2019.1.0:0 >dev-perl/Unicode-Map-0.112.0-r2:0 -test >dev-perl/URI-5.110.0:0 -test >dev-perl/Variable-Magic-0.620.0-r1:0 -examples -test >dev-perl/WWW-RobotRules-6.20.0-r2:0 -test >dev-perl/XML-Parser-2.460.0-r2:0 >dev-perl/XS-Parse-Keyword-0.250.0:0 -test >dev-perl/XString-0.5.0:0 -test >dev-perl/YAML-Tiny-1.730.0-r1:0 -minimal -test >dev-python/alabaster-0.7.12-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/appdirs-1.4.4-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/attrs-22.1.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/autocommand-2.2.1_p20211118:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/Babel-2.10.3:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/backports-zoneinfo-0.2.1-r2:0 python_targets_pypy3 python_targets_python3_8 -test >dev-python/beniget-0.4.1-r1:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/certifi-3021.3.16-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/cffi-1.15.1:0/1.15.1 -doc python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/charset_normalizer-2.1.1-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/cython-0.29.32:0 -doc -emacs python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/deprecation-2.1.0:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/docutils-0.19:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/ensurepip-pip-22.2.2:0 >dev-python/ensurepip-setuptools-65.4.1:0 >dev-python/ensurepip-wheels-100:0 >dev-python/execnet-1.9.0-r1:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/flit_core-3.7.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/gast-0.5.3-r1:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/gpep517-9:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/idna-3.4:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/imagesize-1.4.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/importlib_metadata-5.0.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/importlib_resources-5.9.0:0 python_targets_pypy3 python_targets_python3_8 -test >dev-python/inflect-6.0.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/iniconfig-1.1.1-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/installer-0.5.1-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/jaraco-context-4.1.2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/jaraco-functools-3.5.2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/jaraco-text-3.9.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/jinja-3.1.2:0 -doc -examples python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/lxml-4.9.1:0 -doc -examples python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test threads >dev-python/markupsafe-2.1.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/meson-python-0.9.0:0 -doc python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 -test >dev-python/more-itertools-8.14.0:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/nspektr-0.4.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/numpy-1.23.3:0 -doc lapack python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/olefile-0.46-r2:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/ordered-set-4.1.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/packaging-21.3-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pdfrw-0.4_p1:0 crypt python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test >dev-python/pikepdf-6.1.0:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pillow-9.2.0:0 -examples -imagequant jpeg -jpeg2k -lcms python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test -test tiff -tk truetype -webp -xcb zlib >dev-python/pluggy-1.0.0-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/ply-3.11-r2:0/3.11 -examples python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/psutil-5.9.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/py-1.11.0-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pybind11-2.10.0:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pycparser-2.21-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pycryptodome-3.15.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/pydantic-1.10.2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pygments-2.13.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pyparsing-3.0.9:0 -examples python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pyproject-metadata-0.6.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 test >dev-python/pypy3-7.3.9_p5-r2:0/pypy39-pp73-336 ensurepip gdbm jit ncurses -sqlite -test -tk >dev-python/pypy3-exe-bin-7.3.9_p3-r2:3.9-7.3.9 >dev-python/PySocks-1.7.1-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/pytest-7.1.3:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pytest-forked-1.4.0-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pytest-xdist-2.5.0-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pythran-0.11.0:0 python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 -test >dev-python/pytz-2022.4:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/reportlab-3.6.11-r1:0 doc python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/requests-2.28.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -socks5 -test >dev-python/scipy-1.9.1:0 doc python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 -test >dev-python/setuptools-65.4.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/setuptools_scm-7.0.5:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/setuptools_scm_git_archive-1.4:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/six-1.16.0-r1:0 -doc python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/snowballstemmer-2.2.0-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/sphinx-5.2.3:0 -doc latex python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-applehelp-1.0.2-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-devhelp-1.0.2-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-htmlhelp-2.0.0-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-jsmath-1.0.1-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-qthelp-1.0.3-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/sphinxcontrib-serializinghtml-1.1.5-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/tomli-2.0.1-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/typing-extensions-4.3.0:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-python/urllib3-1.26.12:0 -brotli python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/wheel-0.37.1-r1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/zipp-3.8.1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-python/zope-interface-5.4.0-r2:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-tex/bibtexu-3.71_p20210325:0 doc -source >dev-tex/pgf-3.1.9a:0 doc -source >dev-texlive/texlive-basic-2021:0 doc luajittex -source >dev-texlive/texlive-fontsrecommended-2021:0 doc -source >dev-texlive/texlive-fontutils-2021:0 doc -source >dev-texlive/texlive-latex-2021:0 -doc -source >dev-texlive/texlive-latexextra-2021:0 doc -source >dev-texlive/texlive-latexrecommended-2021:0 doc -source >dev-texlive/texlive-luatex-2021-r2:0 doc -source >dev-texlive/texlive-pictures-2021:0 doc -source >dev-texlive/texlive-plaingeneric-2021:0 -doc -source >dev-util/checkbashisms-2.22.2:0 >dev-util/cmake-3.24.2:0 -doc -emacs ncurses -qt5 -test -test -verify-sig >dev-util/desktop-file-utils-0.26-r2:0 -emacs >dev-util/gdbus-codegen-2.74.0:0 python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 >dev-util/glib-utils-2.74.0:0 python_single_target_python3_10 -python_single_target_python3_11 -python_single_target_python3_8 -python_single_target_python3_9 >dev-util/gperf-3.1-r1:0 >dev-util/gtk-doc-am-1.33.2:0 >dev-util/intltool-0.51.0-r3:0 >dev-util/meson-0.63.2-r1:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -test >dev-util/meson-format-array-0:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >dev-util/ninja-1.11.1:0 -doc -emacs -test >dev-util/patchelf-0.15.0:0 >dev-util/pkgconf-1.8.0-r1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -test >dev-util/re2c-2.2:0 -debug -test >dev-vcs/git-2.38.0:0 blksha1 -cgi curl -cvs -doc -gnome-keyring gpg -highlight iconv -mediawiki -mediawiki-experimental nls pcre -perforce -perl python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 safe-directory -selinux -subversion -test -tk webdav -xinetd >media-fonts/arphicfonts-0.2.20080216.1-r2:0 -X >media-fonts/baekmuk-fonts-2.2-r2:0 -X -X unicode >media-fonts/liberation-fonts-2.1.5:0 -X -X -fontforge >media-fonts/urw-fonts-2.4.9:0 -X >media-gfx/fontforge-20220308:0 -X -doc -gif -gtk -jpeg -png python python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 readline -svg -test -tiff -truetype-debugger -woff2 >media-gfx/graphite2-1.3.14_p20210810-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -perl -test >media-gfx/imagemagick-7.1.0.48:0/7.1.0-43 -X bzip2 -corefonts cxx -djvu -fftw -fontconfig -fpx -graphviz -hdri -heif -jbig jpeg jpeg2k lcms -lqr -lzma -opencl -openexr openmp -pango -perl png -postscript -q32 -q8 -raw -static-libs -svg -test tiff -truetype -webp -wmf -xml -zip zlib >media-libs/exiftool-12.42:0 -doc -test >media-libs/fontconfig-2.14.0-r1:1.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test >media-libs/freetype-2.12.1-r1:2 -X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 adobe-cff -brotli bzip2 cleartype-hinting -debug -doc -fontforge harfbuzz -infinality png -static-libs -svg -utils >media-libs/gd-2.3.3-r1:2/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -avif cpu_flags_x86_sse -fontconfig -heif jpeg png -static-libs -test tiff -truetype -webp -xpm zlib >media-libs/harfbuzz-5.2.0:0/4.0.0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 cairo -debug -doc -experimental glib graphite icu introspection -test truetype >media-libs/jbig2dec-0.19:0/0.19 -png -static-libs -test >media-libs/lcms-2.13.1-r1:2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -jpeg -static-libs -test threads -tiff zlib >media-libs/libart_lgpl-2.3.21-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >media-libs/libjpeg-turbo-2.1.4:0/0.2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_neon -java -java -static-libs >media-libs/libpng-1.6.38:0/16 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -apng -cpu_flags_arm_neon cpu_flags_x86_sse -static-libs >media-libs/netpbm-10.86.34:0 -X cpu_flags_x86_sse2 -jbig jpeg -png -postscript -rle -static-libs -svga -tiff -xml >media-libs/openjpeg-2.5.0-r2:2/7 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -static-libs -test >media-libs/tiff-4.4.0-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 cxx -jbig jpeg -lzma -static-libs -test -verify-sig -webp zlib -zstd >net-dns/c-ares-1.18.1:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs -test >net-dns/libidn-1.41:0/12 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -emacs nls -verify-sig >net-dns/libidn2-2.3.3:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls -static-libs -verify-sig >net-firewall/iptables-1.8.8-r4:0/1.8.3 -conntrack -netlink -nftables -pcap split-usr -static-libs >net-libs/gnutls-3.7.7:0/30.30 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -brotli cxx -dane -doc -examples -guile idn nls openssl -pkcs11 seccomp -sslv2 -sslv3 -static-libs -test -test-full tls-heartbeat -tools -valgrind -verify-sig zlib -zstd >net-libs/libmnl-1.0.5:0/0.2.0 -examples -verify-sig >net-libs/libnsl-2.0.0-r1:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >net-libs/libtirpc-1.3.3:0/3 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 ipv6 -kerberos split-usr -static-libs >net-libs/nghttp2-1.50.0:0/1.14 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cxx -debug -hpack-tools -jemalloc -static-libs -test -utils -xml >net-misc/curl-7.85.0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 adns -alt-svc -brotli -curl_ssl_gnutls -curl_ssl_mbedtls -curl_ssl_nss curl_ssl_openssl ftp -gnutls -gopher -hsts http2 -idn imap ipv6 -kerberos -ldap -mbedtls -nghttp3 -nss openssl pop3 progress-meter -quiche -rtmp -samba smtp -ssh ssl -sslv3 -static-libs -telnet -test tftp -verify-sig -zstd >net-misc/dhcpcd-9.4.1:0 -debug embedded ipv6 -privsep udev >net-misc/iputils-20211215:0 arping -caps -clockdiff -doc filecaps -idn nls -rarpd -rdisc -static -test -tracepath >net-misc/netifrc-0.7.3-r1:0 dhcp >net-misc/openssh-9.0_p1-r6:0 -X -X509 -abi_mips_n32 -audit -debug -hpn -kerberos -ldns -libedit -livecd pam pie -sctp -security-key -selinux ssl -static -test -verify-sig -xmss >net-misc/rsync-3.2.6:0 acl -examples iconv -lz4 python_single_target_python3_10 -python_single_target_python3_8 -python_single_target_python3_9 ssl -stunnel -system-zlib -verify-sig xattr -xxhash -zstd >net-misc/wget-1.21.3-r1:0 -cookie-check -debug -gnutls -idn ipv6 -metalink nls -ntlm pcre ssl -static -test -uuid -verify-sig zlib >net-print/cups-2.4.2-r6:0 -X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl dbus -debug -kerberos -openssl pam -selinux ssl -static-libs -systemd -test -usb -xinetd -zeroconf >net-print/cups-filters-1.28.16-r1:0 -dbus -exif foomatic -jpeg -ldap -pclm -pdf -perl -png postscript -test -tiff -zeroconf >perl-core/Compress-Raw-Zlib-2.202.0:0 >perl-core/File-Temp-0.231.100:0 >sci-libs/amd-2.4.6-r1:0 -doc fortran >sci-libs/arpack-3.8.0:0 -doc -examples -mpi >sci-libs/camd-2.4.6-r1:0 -doc >sci-libs/ccolamd-2.9.6:0 >sci-libs/cholmod-3.0.14:0 -cuda -doc lapack matrixops modify partition >sci-libs/colamd-2.9.6:0 >sci-libs/lapack-3.10.1:0 -deprecated -doc -eselect-ldso lapacke -test >sci-libs/metis-5.1.0-r5:0 -doc -double-precision -examples -int64 openmp >sci-libs/suitesparseconfig-5.4.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >sci-libs/umfpack-5.7.9:0 cholmod -doc >sec-keys/openpgp-keys-gentoo-release-20220101:0 -test >sys-apps/acl-2.3.1-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls split-usr -static-libs >sys-apps/attr-2.5.1-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug nls split-usr -static-libs >sys-apps/baselayout-2.9:0 -build split-usr >sys-apps/coreutils-9.1-r1:0 acl -caps -gmp -hostname -kill -multicall nls -selinux split-usr -static -test -vanilla -verify-sig xattr >sys-apps/dbus-1.15.0-r1:0 -X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -debug -doc elogind -selinux -static-libs -systemd -test -test >sys-apps/debianutils-5.7:0 installkernel -static >sys-apps/diffutils-3.8:0 nls -static -verify-sig >sys-apps/ed-1.18:0 -verify-sig >sys-apps/file-5.43:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 bzip2 -lzma -python python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 -seccomp -static-libs -verify-sig zlib >sys-apps/findutils-4.9.0:0 nls -selinux -static -test -verify-sig >sys-apps/gawk-5.1.1-r2:0 -mpfr nls readline -verify-sig >sys-apps/gentoo-functions-0.17:0 >sys-apps/grep-3.8:0 nls pcre -static -verify-sig >sys-apps/groff-1.22.4:0 -X -examples -uchardet >sys-apps/help2man-1.49.2:0 nls >sys-apps/install-xattr-0.8:0 >sys-apps/iproute2-5.19.0-r2:0 -atm -berkdb -bpf -caps -elf iptables -libbsd -minimal -nfs -selinux split-usr >sys-apps/kbd-2.5.1:0 nls pam -test >sys-apps/kmod-30:0 -debug -doc lzma -pkcs7 -python python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 -static-libs tools zlib zstd >sys-apps/less-608:0 pcre unicode >sys-apps/man-db-2.10.2-r1:0 manpager nls seccomp -selinux -static-libs zlib >sys-apps/man-pages-5.13-r2:0 l10n_de l10n_es l10n_fr l10n_it l10n_ja l10n_nl l10n_pl l10n_pt-BR l10n_ro l10n_ru l10n_zh-CN >sys-apps/miscfiles-1.5-r4:0 -minimal >sys-apps/net-tools-2.10:0 arp hostname ipv6 -nis nls -plipconfig -selinux -slattach -static >sys-apps/openrc-0.45.2:0 -audit -bash -debug ncurses netifrc -newnet pam -selinux -sysv-utils unicode >sys-apps/portage-3.0.38.1:0 -apidoc -build -doc -gentoo-dev ipc native-extensions python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 rsync-verify -selinux -test xattr >sys-apps/sandbox-2.29:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 nnp >sys-apps/sed-4.8:0 acl nls -selinux -static -verify-sig >sys-apps/shadow-4.12.3:0/4 acl -audit -bcrypt -cracklib nls pam -selinux -skey split-usr -su -verify-sig xattr >sys-apps/systemd-utils-251.5:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -boot kmod -selinux split-usr -split-usr -sysusers -test tmpfiles udev >sys-apps/sysvinit-3.05:0 -ibm nls -selinux -static -verify-sig >sys-apps/texinfo-6.8:0 nls standalone -static >sys-apps/util-linux-2.38.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -audit -build -caps cramfs -cryptsetup -fdformat hardlink -kill logger -magic ncurses nls pam -python python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 readline -rtas -selinux -slang split-usr -static-libs su suid -systemd -test -tty-helpers -udev unicode -verify-sig >sys-apps/which-2.21:0 >sys-auth/elogind-246.10-r2:0 acl -audit cgroup-hybrid -debug -doc pam policykit -selinux -test >sys-auth/pambase-20220214:0 -caps -debug elogind -gnome-keyring -homed -minimal -mktemp nullok -pam_krb5 -pam_ssh passwdqc -pwhistory -pwquality -securetty -selinux sha512 -systemd -yescrypt >sys-auth/passwdqc-2.0.2-r1:0 >sys-auth/polkit-121:0 duktape -examples -gtk introspection -kde pam -selinux -systemd -test >sys-devel/autoconf-2.71-r4:2.71 -emacs >sys-devel/autoconf-archive-2022.09.03:0 >sys-devel/autoconf-wrapper-20220130:0 >sys-devel/automake-1.16.5:1.16 -test >sys-devel/automake-wrapper-11-r1:0 >sys-devel/bc-1.07.1-r5:0 -libedit readline -static >sys-devel/binutils-2.39-r2:2.39 -cet -default-gold -doc -gold -gprofng -multitarget nls -pgo plugins -static-libs -test -vanilla >sys-devel/binutils-config-5.4.1:0 native-symlinks >sys-devel/bison-3.8.2:0 -examples nls -static -test -verify-sig >sys-devel/flex-2.6.4-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 nls -static -test >sys-devel/gcc-12.2.0:12 -ada -cet -custom-cflags cxx -d -debug -doc -fixed-point fortran -go graphite -hardened -jit -libssp lto multilib nls nptl -objc -objc++ -objc-gc openmp -pch -pgo pie sanitize ssp -systemtap -test -valgrind -vanilla -vtv -zstd >sys-devel/gcc-config-2.6:0 cc-wrappers native-symlinks >sys-devel/gettext-0.21-r4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 acl -cvs cxx -doc -emacs -git -java -java ncurses nls openmp -static-libs -verify-sig >sys-devel/gnuconfig-20220508:0 >sys-devel/libtool-2.4.7:2 -vanilla >sys-devel/m4-1.4.19:0 -examples nls -verify-sig >sys-devel/make-4.3:0 -guile nls -static -verify-sig >sys-devel/patch-2.7.6-r4:0 -static -test -verify-sig xattr >sys-fs/e2fsprogs-1.46.5-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cron -fuse -lto nls split-usr -static-libs -test threads tools >sys-fs/udev-init-scripts-35:0 >sys-kernel/installkernel-gentoo-5:0 -grub >sys-kernel/linux-headers-5.19:0 -headers-only >sys-libs/binutils-libs-2.39-r1:0/2.39 -64-bit-bfd -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cet -multitarget nls -static-libs >sys-libs/gdbm-1.23:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 berkdb nls readline -static-libs -verify-sig >sys-libs/glibc-2.36-r4:2.2 -audit -caps -cet -compile-locales -crypt -custom-cflags -doc -gd -hash-sysv-compat -headers-only multiarch multilib -multilib-bootstrap -nscd -profile -selinux ssp stack-realign static-libs -suid -systemd -systemtap -test -vanilla >sys-libs/libcap-2.66:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 pam split-usr -static-libs -tools >sys-libs/libseccomp-2.5.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -experimental-loong -python python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 -static-libs -test >sys-libs/libxcrypt-4.4.28-r2:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 compat split-usr -static-libs system -test >sys-libs/ncurses-6.3_p20220924-r1:0/6 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -ada cxx -debug -doc -gpm -minimal -profile split-usr stack-realign -static-libs -test tinfo -trace -verify-sig >sys-libs/pam-1.5.2-r3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -audit -berkdb -debug filecaps -nis -selinux split-usr >sys-libs/readline-8.1_p2-r1:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 split-usr -static-libs unicode -utils -verify-sig >sys-libs/timezone-data-2022d:0 -leaps-timezone nls -zic-slim >sys-libs/zlib-1.2.12-r3:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 minizip split-usr -static-libs -verify-sig >sys-process/procps-3.3.17-r1:0/8 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 elogind kill -modern-top ncurses nls -selinux split-usr -static-libs -systemd -test unicode >sys-process/psmisc-23.4-r1:0 -X ipv6 nls -selinux >virtual/acl-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >virtual/awk-1:0 >virtual/blas-3.8:0 -eselect-ldso >virtual/cblas-3.8:0 -eselect-ldso >virtual/dev-manager-0-r2:0 >virtual/editor-0-r3:0 >virtual/fortran-0-r1:0 openmp >virtual/jpeg-100-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >virtual/lapack-3.10:0 -eselect-ldso >virtual/latex-base-1.0:0 >virtual/libc-1-r1:0 >virtual/libcrypt-2-r1:0/2 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 abi_x86_32 abi_x86_64 -abi_x86_x32 -static-libs >virtual/libelf-3-r1:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >virtual/libiconv-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >virtual/libintl-0-r2:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 >virtual/libudev-232-r7:0/1 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -systemd >virtual/man-0-r4:0 >virtual/os-headers-0-r2:0 >virtual/package-manager-1:0 >virtual/pager-0-r1:0 >virtual/perl-Carp-1.520.0-r2:0 >virtual/perl-Compress-Raw-Bzip2-2.103.0-r2:0 >virtual/perl-Compress-Raw-Zlib-2.202.0:0 >virtual/perl-CPAN-2.330.0:0 >virtual/perl-CPAN-Meta-2.150.10-r6:0 >virtual/perl-CPAN-Meta-Requirements-2.140.0-r8:0 >virtual/perl-CPAN-Meta-YAML-0.18.0-r8:0 >virtual/perl-Data-Dumper-2.184.0:0 >virtual/perl-Digest-MD5-2.580.0-r1:0 >virtual/perl-Encode-3.170.0:0 >virtual/perl-Exporter-5.770.0:0 >virtual/perl-ExtUtils-CBuilder-0.280.236-r1:0 >virtual/perl-ExtUtils-Install-2.200.0-r1:0 >virtual/perl-ExtUtils-MakeMaker-7.640.0:0 >virtual/perl-ExtUtils-Manifest-1.730.0-r1:0 >virtual/perl-ExtUtils-ParseXS-3.450.0:0 >virtual/perl-File-Path-2.180.0-r1:0 >virtual/perl-File-Spec-3.840.0:0 >virtual/perl-File-Temp-0.231.100:0 >virtual/perl-Getopt-Long-2.520.0-r1:0 >virtual/perl-IO-1.500.0:0 >virtual/perl-IO-Compress-2.106.0:0 >virtual/perl-IO-Socket-IP-0.410.0-r1:0 >virtual/perl-JSON-PP-4.70.0:0 >virtual/perl-libnet-3.140.0:0 ssl >virtual/perl-MIME-Base64-3.160.0-r1:0 >virtual/perl-Module-Metadata-1.0.37-r2:0 >virtual/perl-parent-0.238.0-r2:0 >virtual/perl-Parse-CPAN-Meta-2.150.10-r6:0 >virtual/perl-Perl-OSType-1.10.0-r6:0 >virtual/perl-podlators-4.140.0-r3:0 >virtual/perl-Scalar-List-Utils-1.620.0:0 >virtual/perl-Storable-3.260.0:0 >virtual/perl-Sys-Syslog-0.360.0-r2:0 >virtual/perl-Test-Harness-3.440.0:0 >virtual/perl-Test-Simple-1.302.190:0 >virtual/perl-Text-ParseWords-3.310.0:0 >virtual/perl-Time-Local-1.300.0-r1:0 >virtual/perl-version-0.992.900:0 >virtual/perl-XSLoader-0.310.0:0 >virtual/pkgconfig-2-r1:0 >virtual/python-cffi-1:0 python_targets_pypy3 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >virtual/service-manager-1:0 >virtual/ssh-0-r1:0 -minimal >virtual/texi2dvi-0-r2:0 >virtual/tmpfiles-0-r3:0 >virtual/ttf-fonts-1-r2:0 >virtual/udev-217-r5:0 >virtual/w3m-1:0 >virtual/yacc-0:0 >www-client/pybugz-0.13-r2:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >www-client/w3m-0.5.3_p20220429-r1:0 -X -fbcon -gdk-pixbuf -gpm -imlib l10n_ja -lynxkeymap nls -nntp ssl unicode -xface >x11-apps/xprop-1.2.5:0 >x11-apps/xset-1.2.4-r1:0 >x11-base/xcb-proto-1.15.2:0 python_targets_python3_10 -python_targets_python3_11 python_targets_python3_8 python_targets_python3_9 >x11-base/xorg-proto-2022.2:0 -test >x11-libs/cairo-1.16.0-r5:0 -X -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -aqua -debug -gles2-only glib -opengl -static-libs svg -utils -valgrind >x11-libs/libICE-1.0.10-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 ipv6 >x11-libs/libSM-1.2.3-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc ipv6 uuid >x11-libs/libX11-1.8.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test >x11-libs/libXau-1.0.10:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc >x11-libs/libxcb-1.15-r1:0/1.12 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -doc -selinux -test xkb >x11-libs/libXdmcp-1.1.3-r1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc >x11-libs/libXext-1.3.4:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc >x11-libs/libXmu-1.1.3:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc ipv6 >x11-libs/libXt-1.2.1:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -doc -test >x11-libs/pixman-0.40.0:0 -abi_mips_n32 -abi_mips_n64 -abi_mips_o32 -abi_s390_32 -abi_s390_64 -abi_x86_32 abi_x86_64 -abi_x86_x32 -cpu_flags_arm_iwmmxt -cpu_flags_arm_iwmmxt2 -cpu_flags_arm_neon -cpu_flags_ppc_altivec cpu_flags_x86_mmxext cpu_flags_x86_sse2 cpu_flags_x86_ssse3 -loongson2f -static-libs -test >x11-libs/xtrans-1.4.0:0 -doc >x11-misc/compose-tables-1.8.1:0 >x11-misc/shared-mime-info-2.2:0 -test >x11-misc/xdg-user-dirs-0.18:0 -gtk >x11-misc/xdg-utils-1.1.3_p20210805:0 -dbus -doc -gnome > > >####################### ># build.log # >####################### >>>> Unpacking source... >>>> Unpacking img2pdf-0.4.4.tar.gz to /var/tmp/portage/media-gfx/img2pdf-0.4.4/work >>>> Source unpacked in /var/tmp/portage/media-gfx/img2pdf-0.4.4/work >>>> Preparing source in /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 ... > * Applying img2pdf-0.4.3-test-gif-animation.patch ... > [ ok ] > * Build system packages: > * dev-python/setuptools : 65.4.1 >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 ... > * python3_8: running distutils-r1_run_phase distutils-r1_python_compile >python3.8 setup.py build -j 16 >running build >running build_py >copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-python3_8/lib >copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-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 >listing git files failed - pretending there aren't any >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' >warning: no files found matching '*.gif' under directory 'src' >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 16 >running build >running build_py >copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-python3_9/lib >copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-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 >listing git files failed - pretending there aren't any >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' >warning: no files found matching '*.gif' under directory 'src' >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 16 >running build >running build_py >copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-python3_10/lib >copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4-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 >listing git files failed - pretending there aren't any >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' >warning: no files found matching '*.gif' under directory 'src' >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.4 > * python3_8: running distutils-r1_run_phase python_test >python3.8 -m pytest -vv -ra -l -Wdefault --color=no -o console_output_style=count -p no:cov -p no:flake8 -p no:flakes -p no:pylint -p no:markdown -p no:sugar -p no:xvfb -n auto >============================= test session starts ============================== >platform linux -- Python 3.8.14, pytest-7.1.3, pluggy-1.0.0 -- /usr/bin/python3.8 >cachedir: .pytest_cache >rootdir: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >plugins: forked-1.4.0, xdist-2.5.0 >gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I / gw8 I / gw9 I / gw10 I / gw11 I / gw12 I / gw13 I / gw14 I / gw15 I / gw16 I / gw17 I / gw18 I / gw19 I / gw20 I / gw21 I / gw22 I / gw23 I >[gw0] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw1] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw2] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw3] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw4] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw5] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw6] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw7] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw8] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw9] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw10] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw11] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw12] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw13] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw14] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw15] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw16] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw17] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw18] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw19] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw20] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw21] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw22] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw23] linux Python 3.8.14 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4 >[gw0] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw1] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw2] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw3] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw4] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw5] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw6] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw7] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw8] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw9] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw11] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw10] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw13] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw12] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw14] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw15] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw16] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw17] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw18] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw19] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw20] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw21] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw22] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >[gw23] Python 3.8.14 (default, Sep 7 2022, 17:09:21) -- [GCC 12.2.0] >gw0 [299] / gw1 [299] / gw2 [299] / gw3 [299] / gw4 [299] / gw5 [299] / gw6 [299] / gw7 [299] / gw8 [299] / gw9 [299] / gw10 [299] / gw11 [299] / gw12 [299] / gw13 [299] / gw14 [299] / gw15 [299] / gw16 [299] / gw17 [299] / gw18 [299] / gw19 [299] / gw20 [299] / gw21 [299] / gw22 [299] / gw23 [299] > >scheduling tests via LoadScheduling > >src/img2pdf_test.py::test_jpg_rot[internal] >src/img2pdf_test.py::test_jpg[internal] >src/img2pdf_test.py::test_jpg_2000[pikepdf] >src/img2pdf_test.py::test_png_rgba8[pikepdf] >src/img2pdf_test.py::test_png_rgb8[internal] >src/img2pdf_test.py::test_jpg_2000[internal] >src/img2pdf_test.py::test_jpg_cmyk[pikepdf] >src/img2pdf_test.py::test_png_rgb16[pikepdf] >src/img2pdf_test.py::test_png_rgb8[pikepdf] >src/img2pdf_test.py::test_jpg_cmyk[internal] >src/img2pdf_test.py::test_png_interlaced[pikepdf] >src/img2pdf_test.py::test_png_rgb16[internal] >src/img2pdf_test.py::test_png_interlaced[internal] >src/img2pdf_test.py::test_png_gray16a[pikepdf] >src/img2pdf_test.py::test_jpg_rot[pikepdf] >src/img2pdf_test.py::test_jpg[pikepdf] >src/img2pdf_test.py::test_png_rgba8[internal] >src/img2pdf_test.py::test_png_gray8a[pikepdf] >src/img2pdf_test.py::test_png_rgba16[pikepdf] >src/img2pdf_test.py::test_png_gray8a[internal] >src/img2pdf_test.py::test_png_gray16a[internal] >src/img2pdf_test.py::test_png_rgba16[internal] >src/img2pdf_test.py::test_png_gray1[internal] >src/img2pdf_test.py::test_png_gray1[pikepdf] >[gw14] [ 1/299] PASSED src/img2pdf_test.py::test_png_rgba16[internal] >src/img2pdf_test.py::test_png_palette8[internal] >[gw12] [ 2/299] PASSED src/img2pdf_test.py::test_png_rgba8[pikepdf] >src/img2pdf_test.py::test_png_palette4[pikepdf] >[gw20] [ 3/299] PASSED src/img2pdf_test.py::test_png_interlaced[internal] >src/img2pdf_test.py::test_gif_palette1[internal] >[gw7] [ 4/299] PASSED src/img2pdf_test.py::test_jpg_2000[pikepdf] >src/img2pdf_test.py::test_png_gray16[pikepdf] >[gw8] [ 5/299] PASSED src/img2pdf_test.py::test_png_rgb8[internal] >src/img2pdf_test.py::test_png_palette1[internal] >[gw15] [ 6/299] PASSED src/img2pdf_test.py::test_png_rgba16[pikepdf] >src/img2pdf_test.py::test_png_palette8[pikepdf] >[gw18] [ 7/299] PASSED src/img2pdf_test.py::test_png_gray16a[internal] >src/img2pdf_test.py::test_gif_transparent[internal] >[gw22] [ 8/299] PASSED src/img2pdf_test.py::test_png_gray1[internal] >src/img2pdf_test.py::test_gif_palette2[internal] >[gw9] [ 9/299] PASSED src/img2pdf_test.py::test_png_rgb8[pikepdf] >src/img2pdf_test.py::test_png_palette1[pikepdf] >[gw6] [ 10/299] PASSED src/img2pdf_test.py::test_jpg_2000[internal] >src/img2pdf_test.py::test_png_gray16[internal] >[gw19] [ 11/299] PASSED src/img2pdf_test.py::test_png_gray16a[pikepdf] >src/img2pdf_test.py::test_gif_transparent[pikepdf] >[gw1] [ 12/299] PASSED src/img2pdf_test.py::test_jpg[pikepdf] >src/img2pdf_test.py::test_png_gray2[pikepdf] >[gw13] [ 13/299] PASSED src/img2pdf_test.py::test_png_rgba8[internal] >src/img2pdf_test.py::test_png_palette4[internal] >[gw23] [ 14/299] PASSED src/img2pdf_test.py::test_png_gray1[pikepdf] >src/img2pdf_test.py::test_gif_palette2[pikepdf] >[gw16] [ 15/299] PASSED src/img2pdf_test.py::test_png_gray8a[internal] >src/img2pdf_test.py::test_png_icc[internal] >[gw17] [ 16/299] PASSED src/img2pdf_test.py::test_png_gray8a[pikepdf] >src/img2pdf_test.py::test_png_icc[pikepdf] >[gw11] [ 17/299] FAILED src/img2pdf_test.py::test_png_rgb16[internal] >src/img2pdf_test.py::test_png_palette2[internal] >[gw0] [ 18/299] PASSED src/img2pdf_test.py::test_jpg[internal] >src/img2pdf_test.py::test_png_gray2[internal] >[gw21] [ 19/299] PASSED src/img2pdf_test.py::test_png_interlaced[pikepdf] >src/img2pdf_test.py::test_gif_palette1[pikepdf] >[gw5] [ 20/299] FAILED src/img2pdf_test.py::test_jpg_cmyk[pikepdf] >src/img2pdf_test.py::test_png_gray8[pikepdf] >[gw18] [ 21/299] PASSED src/img2pdf_test.py::test_gif_transparent[internal] >src/img2pdf_test.py::test_tiff_rgb16[internal] >[gw8] [ 22/299] PASSED src/img2pdf_test.py::test_png_palette1[internal] >src/img2pdf_test.py::test_tiff_cmyk8[internal] >[gw2] [ 23/299] PASSED src/img2pdf_test.py::test_jpg_rot[internal] >src/img2pdf_test.py::test_png_gray4[internal] >[gw19] [ 24/299] PASSED src/img2pdf_test.py::test_gif_transparent[pikepdf] >src/img2pdf_test.py::test_tiff_rgb16[pikepdf] >[gw4] [ 25/299] FAILED src/img2pdf_test.py::test_jpg_cmyk[internal] >src/img2pdf_test.py::test_png_gray8[internal] >[gw12] [ 26/299] PASSED src/img2pdf_test.py::test_png_palette4[pikepdf] >src/img2pdf_test.py::test_tiff_rgb8[pikepdf] >[gw3] [ 27/299] PASSED src/img2pdf_test.py::test_jpg_rot[pikepdf] >src/img2pdf_test.py::test_png_gray4[pikepdf] >[gw20] [ 28/299] PASSED src/img2pdf_test.py::test_gif_palette1[internal] >src/img2pdf_test.py::test_tiff_rgba8[internal] >[gw10] [ 29/299] FAILED src/img2pdf_test.py::test_png_rgb16[pikepdf] >src/img2pdf_test.py::test_png_palette2[pikepdf] >[gw1] [ 30/299] PASSED src/img2pdf_test.py::test_png_gray2[pikepdf] >src/img2pdf_test.py::test_gif_palette4[pikepdf] >[gw22] [ 31/299] PASSED src/img2pdf_test.py::test_gif_palette2[internal] >src/img2pdf_test.py::test_tiff_rgba16[internal] >[gw7] [ 32/299] FAILED src/img2pdf_test.py::test_png_gray16[pikepdf] >src/img2pdf_test.py::test_tiff_float[pikepdf] >[gw9] [ 33/299] PASSED src/img2pdf_test.py::test_png_palette1[pikepdf] >src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] >[gw11] [ 34/299] PASSED src/img2pdf_test.py::test_png_palette2[internal] >src/img2pdf_test.py::test_tiff_cmyk16[internal] >[gw0] [ 35/299] PASSED src/img2pdf_test.py::test_png_gray2[internal] >src/img2pdf_test.py::test_gif_palette4[internal] >[gw5] [ 36/299] PASSED src/img2pdf_test.py::test_png_gray8[pikepdf] >src/img2pdf_test.py::test_gif_animation[pikepdf] >[gw5] [ 37/299] SKIPPED src/img2pdf_test.py::test_gif_animation[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] >[gw23] [ 38/299] PASSED src/img2pdf_test.py::test_gif_palette2[pikepdf] >src/img2pdf_test.py::test_tiff_rgba16[pikepdf] >[gw8] [ 39/299] ERROR src/img2pdf_test.py::test_tiff_cmyk8[internal] >src/img2pdf_test.py::test_tiff_gray4[pikepdf] >[gw18] [ 40/299] ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] >src/img2pdf_test.py::test_tiff_gray2[internal] >[gw12] [ 41/299] ERROR src/img2pdf_test.py::test_tiff_rgb8[pikepdf] >src/img2pdf_test.py::test_tiff_multipage[pikepdf] >[gw13] [ 42/299] PASSED src/img2pdf_test.py::test_png_palette4[internal] >src/img2pdf_test.py::test_tiff_rgb8[internal] >[gw19] [ 43/299] ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] >src/img2pdf_test.py::test_tiff_gray16[internal] >[gw20] [ 44/299] ERROR src/img2pdf_test.py::test_tiff_rgba8[internal] >src/img2pdf_test.py::test_tiff_palette2[internal] >[gw7] [ 45/299] ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] >[gw6] [ 46/299] FAILED src/img2pdf_test.py::test_png_gray16[internal] >src/img2pdf_test.py::test_tiff_float[internal] >[gw9] [ 47/299] ERROR src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] >[gw21] [ 48/299] PASSED src/img2pdf_test.py::test_gif_palette1[pikepdf] >src/img2pdf_test.py::test_tiff_rgba8[pikepdf] >[gw16] [ 49/299] FAILED src/img2pdf_test.py::test_png_icc[internal] >src/img2pdf_test.py::test_tiff_rgb14[internal] >[gw22] [ 50/299] ERROR src/img2pdf_test.py::test_tiff_rgba16[internal] >src/img2pdf_test.py::test_tiff_palette4[pikepdf] >[gw11] [ 51/299] ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] >src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] >[gw4] [ 52/299] PASSED src/img2pdf_test.py::test_png_gray8[internal] >src/img2pdf_test.py::test_gif_animation[internal] >[gw4] [ 53/299] SKIPPED src/img2pdf_test.py::test_gif_animation[internal] >src/img2pdf_test.py::test_layout[layout_test_cases12] >[gw4] [ 54/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases12] >src/img2pdf_test.py::test_layout[layout_test_cases13] >[gw4] [ 55/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases13] >src/img2pdf_test.py::test_layout[layout_test_cases14] >[gw4] [ 56/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases14] >src/img2pdf_test.py::test_layout[layout_test_cases15] >[gw4] [ 57/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases15] >[gw2] [ 58/299] PASSED src/img2pdf_test.py::test_png_gray4[internal] >src/img2pdf_test.py::test_layout[layout_test_cases16] >[gw4] [ 59/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases16] >src/img2pdf_test.py::test_gif_palette8[internal] >src/img2pdf_test.py::test_layout[layout_test_cases17] >[gw4] [ 60/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases17] >src/img2pdf_test.py::test_layout[layout_test_cases20] >[gw4] [ 61/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases20] >src/img2pdf_test.py::test_layout[layout_test_cases21] >[gw4] [ 62/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases21] >src/img2pdf_test.py::test_layout[layout_test_cases22] >[gw4] [ 63/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases22] >src/img2pdf_test.py::test_layout[layout_test_cases23] >[gw4] [ 64/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases23] >src/img2pdf_test.py::test_layout[layout_test_cases24] >[gw4] [ 65/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases24] >src/img2pdf_test.py::test_layout[layout_test_cases25] >[gw3] [ 66/299] PASSED src/img2pdf_test.py::test_png_gray4[pikepdf] >[gw4] [ 67/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases25] >src/img2pdf_test.py::test_layout[layout_test_cases26] >src/img2pdf_test.py::test_gif_palette8[pikepdf] >[gw4] [ 68/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases26] >src/img2pdf_test.py::test_layout[layout_test_cases27] >[gw4] [ 69/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases27] >src/img2pdf_test.py::test_layout[layout_test_cases30] >[gw4] [ 70/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases30] >src/img2pdf_test.py::test_layout[layout_test_cases31] >[gw4] [ 71/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases31] >src/img2pdf_test.py::test_layout[layout_test_cases32] >[gw4] [ 72/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases32] >src/img2pdf_test.py::test_layout[layout_test_cases33] >[gw4] [ 73/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases33] >src/img2pdf_test.py::test_layout[layout_test_cases34] >[gw4] [ 74/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases34] >src/img2pdf_test.py::test_layout[layout_test_cases35] >[gw4] [ 75/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases35] >src/img2pdf_test.py::test_layout[layout_test_cases36] >[gw4] [ 76/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases36] >src/img2pdf_test.py::test_layout[layout_test_cases37] >[gw4] [ 77/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases37] >src/img2pdf_test.py::test_layout[layout_test_cases38] >[gw4] [ 78/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases38] >src/img2pdf_test.py::test_layout[layout_test_cases39] >[gw4] [ 79/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases39] >src/img2pdf_test.py::test_layout[layout_test_cases40] >[gw4] [ 80/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases40] >[gw8] [ 81/299] ERROR src/img2pdf_test.py::test_tiff_gray4[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases41] >src/img2pdf_test.py::test_tiff_gray8[internal] >[gw4] [ 82/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases41] >src/img2pdf_test.py::test_layout[layout_test_cases42] >[gw23] [ 83/299] ERROR src/img2pdf_test.py::test_tiff_rgba16[pikepdf] >[gw4] [ 84/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases42] >src/img2pdf_test.py::test_layout[layout_test_cases0] >src/img2pdf_test.py::test_layout[layout_test_cases43] >[gw23] [ 85/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases0] >[gw4] [ 86/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases43] >src/img2pdf_test.py::test_layout[layout_test_cases1] >src/img2pdf_test.py::test_layout[layout_test_cases44] >[gw23] [ 87/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases1] >[gw4] [ 88/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases44] >src/img2pdf_test.py::test_layout[layout_test_cases2] >src/img2pdf_test.py::test_layout[layout_test_cases45] >[gw23] [ 89/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases2] >[gw4] [ 90/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases45] >src/img2pdf_test.py::test_layout[layout_test_cases46] >src/img2pdf_test.py::test_layout[layout_test_cases48] >[gw23] [ 91/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases46] >[gw4] [ 92/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases48] >src/img2pdf_test.py::test_layout[layout_test_cases47] >src/img2pdf_test.py::test_layout[layout_test_cases49] >[gw4] [ 93/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases49] >[gw23] [ 94/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases47] >src/img2pdf_test.py::test_layout[layout_test_cases50] >src/img2pdf_test.py::test_layout[layout_test_cases52] >[gw23] [ 95/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases50] >[gw4] [ 96/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases52] >src/img2pdf_test.py::test_layout[layout_test_cases51] >src/img2pdf_test.py::test_layout[layout_test_cases53] >[gw23] [ 97/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases51] >[gw4] [ 98/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases53] >[gw18] [ 99/299] ERROR src/img2pdf_test.py::test_tiff_gray2[internal] >src/img2pdf_test.py::test_tiff_gray2[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases55] >src/img2pdf_test.py::test_layout[layout_test_cases54] >[gw4] [100/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases55] >[gw23] [101/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases54] >src/img2pdf_test.py::test_layout[layout_test_cases57] >src/img2pdf_test.py::test_layout[layout_test_cases56] >[gw4] [102/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases57] >[gw23] [103/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases56] >src/img2pdf_test.py::test_layout[layout_test_cases58] >src/img2pdf_test.py::test_layout[layout_test_cases59] >[gw4] [104/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases58] >[gw23] [105/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases59] >src/img2pdf_test.py::test_layout[layout_test_cases60] >src/img2pdf_test.py::test_layout[layout_test_cases61] >[gw4] [106/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases60] >[gw23] [107/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases61] >src/img2pdf_test.py::test_layout[layout_test_cases62] >src/img2pdf_test.py::test_layout[layout_test_cases63] >[gw4] [108/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases62] >[gw23] [109/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases63] >src/img2pdf_test.py::test_layout[layout_test_cases64] >src/img2pdf_test.py::test_layout[layout_test_cases65] >[gw4] [110/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases64] >src/img2pdf_test.py::test_layout[layout_test_cases66] >[gw23] [111/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases65] >[gw4] [112/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases66] >src/img2pdf_test.py::test_layout[layout_test_cases67] >src/img2pdf_test.py::test_layout[layout_test_cases68] >[gw23] [113/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases67] >[gw4] [114/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases68] >src/img2pdf_test.py::test_layout[layout_test_cases69] >src/img2pdf_test.py::test_layout[layout_test_cases70] >[gw23] [115/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases69] >[gw4] [116/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases70] >src/img2pdf_test.py::test_layout[layout_test_cases71] >src/img2pdf_test.py::test_layout[layout_test_cases72] >[gw23] [117/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases71] >[gw4] [118/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases72] >src/img2pdf_test.py::test_layout[layout_test_cases74] >src/img2pdf_test.py::test_layout[layout_test_cases73] >[gw4] [119/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases74] >[gw23] [120/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases73] >[gw1] [121/299] PASSED src/img2pdf_test.py::test_gif_palette4[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases75] >src/img2pdf_test.py::test_layout[layout_test_cases76] >[gw4] [122/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases75] >src/img2pdf_test.py::test_tiff_gray1[pikepdf] >[gw23] [123/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases76] >src/img2pdf_test.py::test_layout[layout_test_cases77] >src/img2pdf_test.py::test_layout[layout_test_cases78] >[gw4] [124/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases77] >[gw23] [125/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases78] >src/img2pdf_test.py::test_layout[layout_test_cases80] >src/img2pdf_test.py::test_layout[layout_test_cases81] >[gw4] [126/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases80] >[gw23] [127/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases81] >src/img2pdf_test.py::test_layout[layout_test_cases82] >src/img2pdf_test.py::test_layout[layout_test_cases83] >[gw4] [128/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases82] >[gw23] [129/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases83] >src/img2pdf_test.py::test_layout[layout_test_cases84] >[gw4] [130/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases84] >src/img2pdf_test.py::test_layout[layout_test_cases85] >src/img2pdf_test.py::test_layout[layout_test_cases86] >[gw23] [131/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases85] >[gw4] [132/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases86] >src/img2pdf_test.py::test_layout[layout_test_cases87] >src/img2pdf_test.py::test_layout[layout_test_cases88] >[gw23] [133/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases87] >[gw4] [134/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases88] >src/img2pdf_test.py::test_layout[layout_test_cases89] >src/img2pdf_test.py::test_layout[layout_test_cases90] >[gw23] [135/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases89] >[gw4] [136/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases90] >src/img2pdf_test.py::test_layout[layout_test_cases91] >src/img2pdf_test.py::test_layout[layout_test_cases92] >[gw23] [137/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases91] >[gw4] [138/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases92] >[gw16] [139/299] ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] >src/img2pdf_test.py::test_layout[layout_test_cases10] >[gw16] [140/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases10] >src/img2pdf_test.py::test_layout[layout_test_cases94] >[gw4] [141/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases94] >src/img2pdf_test.py::test_layout[layout_test_cases93] >[gw23] [142/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases93] >[gw12] [143/299] ERROR src/img2pdf_test.py::test_tiff_multipage[pikepdf] >src/img2pdf_test.py::test_tiff_palette1[internal] >src/img2pdf_test.py::test_layout[layout_test_cases96] >src/img2pdf_test.py::test_layout[layout_test_cases11] >[gw16] [144/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases11] >[gw4] [145/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases96] >src/img2pdf_test.py::test_layout[layout_test_cases95] >src/img2pdf_test.py::test_layout[layout_test_cases98] >src/img2pdf_test.py::test_layout[layout_test_cases97] >[gw23] [146/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases95] >[gw16] [147/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases98] >[gw4] [148/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases97] >src/img2pdf_test.py::test_layout[layout_test_cases99] >src/img2pdf_test.py::test_layout[layout_test_cases100] >src/img2pdf_test.py::test_layout[layout_test_cases101] >[gw4] [149/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases101] >[gw23] [150/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases99] >[gw16] [151/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases100] >src/img2pdf_test.py::test_layout[layout_test_cases103] >src/img2pdf_test.py::test_layout[layout_test_cases102] >src/img2pdf_test.py::test_layout[layout_test_cases104] >[gw16] [152/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases103] >[gw4] [153/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases104] >src/img2pdf_test.py::test_layout[layout_test_cases105] >src/img2pdf_test.py::test_layout[layout_test_cases107] >[gw23] [154/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases102] >[gw16] [155/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases105] >[gw4] [156/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases107] >src/img2pdf_test.py::test_layout[layout_test_cases108] >src/img2pdf_test.py::test_layout[layout_test_cases106] >src/img2pdf_test.py::test_layout[layout_test_cases109] >[gw16] [157/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases108] >[gw4] [158/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases109] >[gw23] [159/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases106] >src/img2pdf_test.py::test_layout[layout_test_cases110] >src/img2pdf_test.py::test_layout[layout_test_cases112] >src/img2pdf_test.py::test_layout[layout_test_cases111] >[gw4] [160/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases112] >[gw16] [161/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases110] >[gw23] [162/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases111] >src/img2pdf_test.py::test_layout[layout_test_cases113] >src/img2pdf_test.py::test_layout[layout_test_cases114] >src/img2pdf_test.py::test_layout[layout_test_cases115] >[gw16] [163/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases113] >[gw4] [164/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases114] >[gw23] [165/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases115] >src/img2pdf_test.py::test_layout[layout_test_cases117] >src/img2pdf_test.py::test_layout[layout_test_cases116] >src/img2pdf_test.py::test_layout[layout_test_cases118] >[gw4] [166/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases117] >[gw16] [167/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases116] >[gw23] [168/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases118] >src/img2pdf_test.py::test_layout[layout_test_cases119] >[gw4] [169/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases119] >src/img2pdf_test.py::test_layout[layout_test_cases120] >[gw20] [170/299] ERROR src/img2pdf_test.py::test_tiff_palette2[internal] >[gw16] [171/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases120] >src/img2pdf_test.py::test_layout[layout_test_cases121] >src/img2pdf_test.py::test_tiff_palette2[pikepdf] >[gw23] [172/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases121] >src/img2pdf_test.py::test_layout[layout_test_cases122] >[gw4] [173/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases122] >src/img2pdf_test.py::test_layout[layout_test_cases123] >[gw16] [174/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases123] >src/img2pdf_test.py::test_layout[layout_test_cases124] >src/img2pdf_test.py::test_layout[layout_test_cases125] >[gw23] [175/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases124] >src/img2pdf_test.py::test_layout[layout_test_cases126] >[gw4] [176/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases125] >[gw16] [177/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases126] >src/img2pdf_test.py::test_layout[layout_test_cases128] >src/img2pdf_test.py::test_layout[layout_test_cases129] >src/img2pdf_test.py::test_layout[layout_test_cases127] >[gw4] [178/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases128] >[gw16] [179/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases129] >[gw6] [180/299] ERROR src/img2pdf_test.py::test_tiff_float[internal] >src/img2pdf_test.py::test_layout[layout_test_cases6] >[gw23] [181/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases127] >src/img2pdf_test.py::test_layout[layout_test_cases131] >[gw16] [182/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases131] >[gw6] [183/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases6] >src/img2pdf_test.py::test_layout[layout_test_cases130] >[gw4] [184/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases130] >[gw19] [185/299] ERROR src/img2pdf_test.py::test_tiff_gray16[internal] >src/img2pdf_test.py::test_layout[layout_test_cases132] >[gw23] [186/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases132] >src/img2pdf_test.py::test_layout[layout_test_cases7] >[gw6] [187/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases7] >[gw5] [188/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] >src/img2pdf_test.py::test_layout[layout_test_cases134] >[gw4] [189/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases134] >src/img2pdf_test.py::test_layout[layout_test_cases133] >[gw16] [190/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases133] >src/img2pdf_test.py::test_layout[layout_test_cases135] >src/img2pdf_test.py::test_tiff_gray16[pikepdf] >[gw23] [191/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases135] >src/img2pdf_test.py::test_layout[layout_test_cases137] >src/img2pdf_test.py::test_layout[layout_test_cases138] >[gw4] [192/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases138] >[gw13] [193/299] ERROR src/img2pdf_test.py::test_tiff_rgb8[internal] >src/img2pdf_test.py::test_layout[layout_test_cases3] >[gw13] [194/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases3] >[gw6] [195/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases137] >src/img2pdf_test.py::test_layout[layout_test_cases136] >src/img2pdf_test.py::test_layout[layout_test_cases4] >[gw13] [196/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases4] >[gw16] [197/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases136] >src/img2pdf_test.py::test_layout[layout_test_cases139] >[gw23] [198/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases139] >src/img2pdf_test.py::test_layout[layout_test_cases141] >src/img2pdf_test.py::test_layout[layout_test_cases140] >src/img2pdf_test.py::test_layout[layout_test_cases142] >[gw6] [199/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases140] >src/img2pdf_test.py::test_layout[layout_test_cases143] >src/img2pdf_test.py::test_layout[layout_test_cases5] >[gw13] [200/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases5] >[gw16] [201/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases142] >[gw23] [202/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases143] >[gw10] [203/299] PASSED src/img2pdf_test.py::test_png_palette2[pikepdf] >[gw4] [204/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases141] >src/img2pdf_test.py::test_layout[layout_test_cases146] >src/img2pdf_test.py::test_layout[layout_test_cases148] >src/img2pdf_test.py::test_layout[layout_test_cases144] >src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] >[gw23] [205/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases148] >src/img2pdf_test.py::test_layout[layout_test_cases145] >[gw4] [206/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases145] >src/img2pdf_test.py::test_layout[layout_test_cases147] >[gw13] [207/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases147] >[gw6] [208/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases144] >src/img2pdf_test.py::test_layout[layout_test_cases150] >src/img2pdf_test.py::test_layout[layout_test_cases154] >[gw16] [209/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases146] >[gw23] [210/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases150] >[gw4] [211/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases154] >src/img2pdf_test.py::test_layout[layout_test_cases153] >[gw13] [212/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases153] >src/img2pdf_test.py::test_layout[layout_test_cases151] >src/img2pdf_test.py::test_layout[layout_test_cases155] >[gw6] [213/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases151] >[gw23] [214/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases155] >src/img2pdf_test.py::test_layout[layout_test_cases156] >[gw4] [215/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases156] >src/img2pdf_test.py::test_layout[layout_test_cases149] >[gw16] [216/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases149] >src/img2pdf_test.py::test_layout[layout_test_cases157] >[gw13] [217/299] 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_cases158] >[gw23] [218/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases159] >src/img2pdf_test.py::test_layout[layout_test_cases161] >[gw6] [219/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases158] >src/img2pdf_test.py::test_layout[layout_test_cases160] >[gw4] [220/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases160] >[gw16] [221/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases161] >src/img2pdf_test.py::test_layout[layout_test_cases162] >[gw13] [222/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases162] >[gw7] [223/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] >src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] >[gw17] [224/299] FAILED src/img2pdf_test.py::test_png_icc[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases163] >[gw23] [225/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases163] >src/img2pdf_test.py::test_layout[layout_test_cases164] >[gw6] [226/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases164] >src/img2pdf_test.py::test_layout[layout_test_cases165] >[gw4] [227/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases165] >src/img2pdf_test.py::test_layout[layout_test_cases167] >[gw13] [228/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases167] >src/img2pdf_test.py::test_tiff_rgb14[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases168] >src/img2pdf_test.py::test_layout[layout_test_cases169] >src/img2pdf_test.py::test_layout[layout_test_cases166] >[gw16] [229/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases166] >[gw23] [230/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases168] >[gw4] [231/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases169] >src/img2pdf_test.py::test_layout[layout_test_cases172] >[gw13] [232/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases172] >src/img2pdf_test.py::test_layout[layout_test_cases170] >src/img2pdf_test.py::test_layout[layout_test_cases171] >[gw6] [233/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases170] >src/img2pdf_test.py::test_layout[layout_test_cases174] >[gw16] [234/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases171] >[gw23] [235/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases174] >src/img2pdf_test.py::test_layout[layout_test_cases175] >src/img2pdf_test.py::test_layout[layout_test_cases176] >[gw4] [236/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases175] >src/img2pdf_test.py::test_layout[layout_test_cases177] >src/img2pdf_test.py::test_layout[layout_test_cases178] >[gw16] [237/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases178] >[gw13] [238/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases176] >[gw6] [239/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases177] >src/img2pdf_test.py::test_layout[layout_test_cases180] >[gw4] [240/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases180] >[gw18] [241/299] ERROR src/img2pdf_test.py::test_tiff_gray2[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases179] >[gw23] [242/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases179] >src/img2pdf_test.py::test_general[normal.png-pikepdf] >src/img2pdf_test.py::test_general[normal.png-internal] >src/img2pdf_test.py::test_general[mono.tif-internal] >src/img2pdf_test.py::test_general[normal.jpg-internal] >src/img2pdf_test.py::test_tiff_gray4[internal] >src/img2pdf_test.py::test_general[normal.jpg-pikepdf] >[gw13] [243/299] PASSED src/img2pdf_test.py::test_general[normal.png-internal] >src/img2pdf_test.py::test_general[mono.tif-pikepdf] >[gw4] [244/299] PASSED src/img2pdf_test.py::test_general[mono.tif-internal] >[gw16] [245/299] PASSED src/img2pdf_test.py::test_general[normal.jpg-internal] >src/img2pdf_test.py::test_general[mono.png-pikepdf] >src/img2pdf_test.py::test_general[gray.png-internal] >[gw23] [246/299] PASSED src/img2pdf_test.py::test_general[normal.jpg-pikepdf] >src/img2pdf_test.py::test_general[CMYK.tif-internal] >[gw6] [247/299] PASSED src/img2pdf_test.py::test_general[normal.png-pikepdf] >[gw13] [248/299] PASSED src/img2pdf_test.py::test_general[mono.tif-pikepdf] >[gw4] [249/299] PASSED src/img2pdf_test.py::test_general[mono.png-pikepdf] >src/img2pdf_test.py::test_general[mono.png-internal] >src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] >src/img2pdf_test.py::test_general[CMYK.jpg-internal] >[gw16] [250/299] PASSED src/img2pdf_test.py::test_general[gray.png-internal] >src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] >[gw23] [251/299] PASSED src/img2pdf_test.py::test_general[CMYK.tif-internal] >[gw4] [252/299] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-internal] >[gw6] [253/299] PASSED src/img2pdf_test.py::test_general[mono.png-internal] >[gw13] [254/299] PASSED src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] >[gw16] [255/299] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] >[gw21] [256/299] ERROR src/img2pdf_test.py::test_tiff_rgba8[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases8] >[gw21] [257/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases8] >src/img2pdf_test.py::test_layout[layout_test_cases9] >[gw21] [258/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases9] >[gw9] [259/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] >[gw20] [260/299] ERROR src/img2pdf_test.py::test_tiff_palette2[pikepdf] >src/img2pdf_test.py::test_tiff_palette4[internal] >[gw11] [261/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] >src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] >[gw0] [262/299] PASSED src/img2pdf_test.py::test_gif_palette4[internal] >src/img2pdf_test.py::test_tiff_gray1[internal] >[gw8] [263/299] ERROR src/img2pdf_test.py::test_tiff_gray8[internal] >src/img2pdf_test.py::test_tiff_gray8[pikepdf] >[gw7] [264/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] >[gw1] [265/299] ERROR src/img2pdf_test.py::test_tiff_gray1[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases79] >[gw1] [266/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases79] >[gw10] [267/299] ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] >[gw17] [268/299] ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases152] >[gw10] [269/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases152] >src/img2pdf_test.py::test_layout[layout_test_cases173] >[gw17] [270/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases173] >[gw14] [271/299] PASSED src/img2pdf_test.py::test_png_palette8[internal] >src/img2pdf_test.py::test_tiff_rgb12[internal] >[gw19] [272/299] ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] >src/img2pdf_test.py::test_tiff_multipage[internal] >[gw18] [273/299] ERROR src/img2pdf_test.py::test_tiff_gray4[internal] >src/img2pdf_test.py::test_general[gray.png-pikepdf] >[gw12] [274/299] ERROR src/img2pdf_test.py::test_tiff_palette1[internal] >src/img2pdf_test.py::test_tiff_palette1[pikepdf] >[gw18] [275/299] PASSED src/img2pdf_test.py::test_general[gray.png-pikepdf] >[gw5] [276/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] >src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] >[gw11] [277/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] >src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] >[gw9] [278/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] >src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] >[gw7] [279/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] >[gw8] [280/299] ERROR src/img2pdf_test.py::test_tiff_gray8[pikepdf] >[gw12] [281/299] ERROR src/img2pdf_test.py::test_tiff_palette1[pikepdf] >[gw22] [282/299] ERROR src/img2pdf_test.py::test_tiff_palette4[pikepdf] >src/img2pdf_test.py::test_tiff_palette8[internal] >[gw0] [283/299] ERROR src/img2pdf_test.py::test_tiff_gray1[internal] >[gw14] [284/299] ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] >[gw19] [285/299] ERROR src/img2pdf_test.py::test_tiff_multipage[internal] >[gw9] [286/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] >[gw20] [287/299] ERROR src/img2pdf_test.py::test_tiff_palette4[internal] >[gw5] [288/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] >[gw11] [289/299] ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] >[gw15] [290/299] PASSED src/img2pdf_test.py::test_png_palette8[pikepdf] >src/img2pdf_test.py::test_tiff_rgb12[pikepdf] >[gw15] [291/299] ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] >[gw3] [292/299] PASSED src/img2pdf_test.py::test_gif_palette8[pikepdf] >src/img2pdf_test.py::test_layout[layout_test_cases28] >[gw3] [293/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases28] >src/img2pdf_test.py::test_layout[layout_test_cases29] >[gw3] [294/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases29] >[gw2] [295/299] PASSED src/img2pdf_test.py::test_gif_palette8[internal] >src/img2pdf_test.py::test_layout[layout_test_cases18] >[gw2] [296/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases18] >src/img2pdf_test.py::test_layout[layout_test_cases19] >[gw2] [297/299] PASSED src/img2pdf_test.py::test_layout[layout_test_cases19] >[gw22] [298/299] ERROR src/img2pdf_test.py::test_tiff_palette8[internal] >src/img2pdf_test.py::test_tiff_palette8[pikepdf] >[gw22] [299/299] ERROR src/img2pdf_test.py::test_tiff_palette8[pikepdf] > >==================================== ERRORS ==================================== >_________________ ERROR at setup of test_tiff_cmyk8[internal] __________________ >[gw8] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_cmyk8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-colorspace", > "cmyk", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_cmyk80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:08Z', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2658B', 'numberPixels': '3600', 'pixelsPerSecond': '3.47454MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '2658B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_cmyk80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.47454MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:08Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_cmyk80/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) > >src/img2pdf_test.py:2367: AssertionError >_________________ ERROR at setup of test_tiff_rgb16[internal] __________________ >[gw18] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19130, 'median': 0, 'standardDeviation': 27326.4, 'kurtosis': -1.00125, 'skewness': 0.914879, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19132.1, 'median': 0, 'standardDeviation': 27319.2, 'kurtosis': -1.00109, 'skewness': 0.914894, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19163.4, 'median': 0, 'standardDeviation': 27340.5, 'kurtosis': -1.00684, 'skewness': 0.912018, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19094.7, 'median': 0, 'standardDeviation': 27319.5, 'kurtosis': -0.998006, 'skewness': 0.916965, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '25ffbd318d040cc17726c3275c93bc6a0c346b6d3617e81170dc1d43f4fa03f1'}, 'tainted': False, 'filesize': '5071B', 'numberPixels': '3600', 'pixelsPerSecond': '2.04691MB', 'userTime': '0.010u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.998006, > 'max': 65535, > 'mean': 19094.7, > 'median': 0, > 'min': 0, > 'skewness': 0.916965, > 'standardDeviation': 27319.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19163.4, > 'median': 0, > 'min': 0, > 'skewness': 0.912018, > 'standardDeviation': 27340.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19132.1, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27319.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '5071B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00125, > 'max': 65535, > 'mean': 19130, > 'median': 0, > 'min': 0, > 'skewness': 0.914879, > 'standardDeviation': 27326.4}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2.04691MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '25ffbd318d040cc17726c3275c93bc6a0c346b6d3617e81170dc1d43f4fa03f1'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.010u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f6ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) > >src/img2pdf_test.py:2648: AssertionError >__________________ ERROR at setup of test_tiff_rgb8[pikepdf] ___________________ >[gw12] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_rgb8_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_normal_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2639B', 'numberPixels': '3600', 'pixelsPerSecond': '3.78286MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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': '2639B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.78286MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_rgb80/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f5e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) > >src/img2pdf_test.py:2475: AssertionError >__________________ ERROR at setup of test_tiff_rgb16[pikepdf] __________________ >[gw19] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...b6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19130, 'median': 0, 'standardDeviation': 27326.4, 'kurtosis': -1.00125, 'skewness': 0.914879, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19132.1, 'median': 0, 'standardDeviation': 27319.2, 'kurtosis': -1.00109, 'skewness': 0.914894, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19163.4, 'median': 0, 'standardDeviation': 27340.5, 'kurtosis': -1.00684, 'skewness': 0.912018, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19094.7, 'median': 0, 'standardDeviation': 27319.5, 'kurtosis': -0.998006, 'skewness': 0.916965, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '25ffbd318d040cc17726c3275c93bc6a0c346b6d3617e81170dc1d43f4fa03f1'}, 'tainted': False, 'filesize': '5071B', 'numberPixels': '3600', 'pixelsPerSecond': '2.00472MB', 'userTime': '0.010u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.998006, > 'max': 65535, > 'mean': 19094.7, > 'median': 0, > 'min': 0, > 'skewness': 0.916965, > 'standardDeviation': 27319.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19163.4, > 'median': 0, > 'min': 0, > 'skewness': 0.912018, > 'standardDeviation': 27340.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19132.1, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27319.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '5071B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00125, > 'max': 65535, > 'mean': 19130, > 'median': 0, > 'min': 0, > 'skewness': 0.914879, > 'standardDeviation': 27326.4}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2.00472MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '25ffbd318d040cc17726c3275c93bc6a0c346b6d3617e81170dc1d43f4fa03f1'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.010u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdb6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) > >src/img2pdf_test.py:2648: AssertionError >_________________ ERROR at setup of test_tiff_rgba8[internal] __________________ >[gw20] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/alpha_png0/alpha.png') > > @pytest.fixture(scope="session") > def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png): > in_img = tmp_path_factory.mktemp("tiff_rgba8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_alpha_png), > "-depth", > "8", > "-strip", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_rgba80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.0273, 'median': 56, 'standardDeviation': 107.1, 'kurtosis': -1.56435, 'skewness': 0.540531, 'entropy': 0.49035}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 153.67, 'median': 224, 'standardDeviation': 110.383, 'kurtosis': -1.64476, 'skewness': -0.408397, 'entropy': 0.578824}, 'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'alpha': '#00000000', '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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': '1732fb921cfbd9c9ed3e1383eefdb6abc62b1386e2074b79a278ba2d7ce08015'}, 'tainted': False, 'filesize': '3864B', 'numberPixels': '3600', 'pixelsPerSecond': '2.24172MB', 'userTime': '0.010u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'alpha': '#00000000', > 'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, > 'channelStatistics': {'alpha': {'entropy': 0.578824, > 'kurtosis': -1.64476, > 'max': 255, > 'mean': 153.67, > 'median': 224, > 'min': 0, > 'skewness': -0.408397, > 'standardDeviation': 110.383}, > 'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '3864B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.49035, > 'kurtosis': -1.56435, > 'max': 255, > 'mean': 94.0273, > 'median': 56, > 'min': 0, > 'skewness': 0.540531, > 'standardDeviation': 107.1}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_rgba80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 14400, > 'pixelsPerSecond': '2.24172MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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': '1732fb921cfbd9c9ed3e1383eefdb6abc62b1386e2074b79a278ba2d7ce08015'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColorAlpha', > 'units': 'Undefined', > 'userTime': '0.010u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_rgba80/in.tiff') >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/alpha_png0/alpha.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) > >src/img2pdf_test.py:2705: AssertionError >__________________ ERROR at setup of test_tiff_float[pikepdf] __________________ >[gw7] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_float_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-depth", > "32", > "-define", > "quantum:format=floating-point", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2612B', 'numberPixels': '3600', 'pixelsPerSecond': '2.7268MB', 'userTime': '0.010u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '2612B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_float_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2.7268MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.010u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_float_img0/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/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.4/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) > >src/img2pdf_test.py:2306: AssertionError >__________________ ERROR at setup of test_tiff_cmyk8[pikepdf] __________________ >[gw9] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...dca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_cmyk8_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_cmyk8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-colorspace", > "cmyk", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_cmyk80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:08Z', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2658B', 'numberPixels': '3600', 'pixelsPerSecond': '3.56571MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '2658B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_cmyk80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.56571MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:08Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_cmyk80/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) > >src/img2pdf_test.py:2367: AssertionError >_________________ ERROR at setup of test_tiff_rgba16[internal] _________________ >[gw22] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...a45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_rgba160/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'alpha': 16, 'red': 16, 'green': 16, 'blue': 16}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 24259.5, 'median': 14392, 'standardDeviation': 27606.6, 'kurtosis': -1.56392, 'skewness': 0.540191, 'entropy': 0.483183}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 65535, 'mean': 39648, 'median': 57568, 'standardDeviation': 28447, 'kurtosis': -1.64367, 'skewness': -0.408419, 'entropy': 0.565922}, 'red': {'min': 0, 'max': 65535, 'mean': 19132.1, 'median': 0, 'standardDeviation': 27319.2, 'kurtosis': -1.00109, 'skewness': 0.914894, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19163.4, 'median': 0, 'standardDeviation': 27340.5, 'kurtosis': -1.00684, 'skewness': 0.912018, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19094.7, 'median': 0, 'standardDeviation': 27319.5, 'kurtosis': -0.998006, 'skewness': 0.916965, 'entropy': 0.454351}}, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+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': '7a6545d9e61380a6419794a431be4fa3a8b03362ef35a2ad614b0d5502ce64de'}, 'tainted': False, 'filesize': '7898B', 'numberPixels': '3600', 'pixelsPerSecond': '2.83059MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'alpha': '#0000000000000000', > 'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'alpha': 16, 'blue': 16, 'green': 16, 'red': 16}, > 'channelStatistics': {'alpha': {'entropy': 0.565922, > 'kurtosis': -1.64367, > 'max': 65535, > 'mean': 39648, > 'median': 57568, > 'min': 0, > 'skewness': -0.408419, > 'standardDeviation': 28447}, > 'blue': {'entropy': 0.454351, > 'kurtosis': -0.998006, > 'max': 65535, > 'mean': 19094.7, > 'median': 0, > 'min': 0, > 'skewness': 0.916965, > 'standardDeviation': 27319.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19163.4, > 'median': 0, > 'min': 0, > 'skewness': 0.912018, > 'standardDeviation': 27340.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19132.1, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27319.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '7898B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.483183, > 'kurtosis': -1.56392, > 'max': 65535, > 'mean': 24259.5, > 'median': 14392, > 'min': 0, > 'skewness': 0.540191, > 'standardDeviation': 27606.6}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_rgba160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 14400, > 'pixelsPerSecond': '2.83059MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+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': '7a6545d9e61380a6419794a431be4fa3a8b03362ef35a2ad614b0d5502ce64de'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColorAlpha', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_rgba160/in.tiff') >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/alpha_png0/alpha.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fca45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) > >src/img2pdf_test.py:2762: AssertionError >_________________ ERROR at setup of test_tiff_cmyk16[internal] _________________ >[gw11] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_cmyk16") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-depth", > "16", > "-colorspace", > "cmyk", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_cmyk160/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:08Z', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2658B', 'numberPixels': '3600', 'pixelsPerSecond': '3.76653MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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': '2658B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_cmyk160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.76653MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:08Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_cmyk160/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) > >src/img2pdf_test.py:2426: AssertionError >__________________ ERROR at setup of test_tiff_gray4[pikepdf] __________________ >[gw8] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) >tmp_gray4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray4_png0/gray4.png') > > @pytest.fixture(scope="session") > def tiff_gray4_img(tmp_path_factory, tmp_gray4_png): > in_img = tmp_path_factory.mktemp("tiff_gray4") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray4_png), > "-depth", > "4", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray40/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 4, 'baseDepth': 4, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 15, 'mean': 6.58306, 'median': 6, 'standardDeviation': 5.14943, 'kurtosis': -1.33592, 'skewness': 0.173306, 'entropy': 0.92194}}, 'colormapEntries': 16, 'colormap': ['#000000FF', '#111111FF', '#222222FF', '#333333FF', '#444444FF', '#555555FF', '#666666FF', '#777777FF', '#888888FF', '#999999FF', '#AAAAAAFF', '#BBBBBBFF', '#CCCCCCFF', '#DDDDDDFF', '#EEEEEEFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:08Z', 'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13'}, 'tainted': False, 'filesize': '1169B', 'numberPixels': '3600', 'pixelsPerSecond': '3.81066MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.92194, > 'kurtosis': -1.33592, > 'max': 15, > 'mean': 6.58306, > 'median': 6, > 'min': 0, > 'skewness': 0.173306, > 'standardDeviation': 5.14943}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', > '#111111FF', > '#222222FF', > '#333333FF', > '#444444FF', > '#555555FF', > '#666666FF', > '#777777FF', > '#888888FF', > '#999999FF', > '#AAAAAAFF', > '#BBBBBBFF', > '#CCCCCCFF', > '#DDDDDDFF', > '#EEEEEEFF', > '#FFFFFFFF'], > 'colormapEntries': 16, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 4, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '1169B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray40/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.81066MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:08Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray40/in.tiff') >tmp_gray4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray4_png0/gray4.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) > >src/img2pdf_test.py:2932: AssertionError >_________________ ERROR at setup of test_tiff_rgba16[pikepdf] __________________ >[gw23] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...27e2a0820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23')) >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23/tiff_rgba160/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'alpha': 16, 'red': 16, 'green': 16, 'blue': 16}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 24259.5, 'median': 14392, 'standardDeviation': 27606.6, 'kurtosis': -1.56392, 'skewness': 0.540191, 'entropy': 0.483183}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 65535, 'mean': 39648, 'median': 57568, 'standardDeviation': 28447, 'kurtosis': -1.64367, 'skewness': -0.408419, 'entropy': 0.565922}, 'red': {'min': 0, 'max': 65535, 'mean': 19132.1, 'median': 0, 'standardDeviation': 27319.2, 'kurtosis': -1.00109, 'skewness': 0.914894, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19163.4, 'median': 0, 'standardDeviation': 27340.5, 'kurtosis': -1.00684, 'skewness': 0.912018, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19094.7, 'median': 0, 'standardDeviation': 27319.5, 'kurtosis': -0.998006, 'skewness': 0.916965, 'entropy': 0.454351}}, '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': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:08+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': '7a6545d9e61380a6419794a431be4fa3a8b03362ef35a2ad614b0d5502ce64de'}, 'tainted': False, 'filesize': '7898B', 'numberPixels': '3600', 'pixelsPerSecond': '2.78674MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'alpha': '#0000000000000000', > 'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'alpha': 16, 'blue': 16, 'green': 16, 'red': 16}, > 'channelStatistics': {'alpha': {'entropy': 0.565922, > 'kurtosis': -1.64367, > 'max': 65535, > 'mean': 39648, > 'median': 57568, > 'min': 0, > 'skewness': -0.408419, > 'standardDeviation': 28447}, > 'blue': {'entropy': 0.454351, > 'kurtosis': -0.998006, > 'max': 65535, > 'mean': 19094.7, > 'median': 0, > 'min': 0, > 'skewness': 0.916965, > 'standardDeviation': 27319.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19163.4, > 'median': 0, > 'min': 0, > 'skewness': 0.912018, > 'standardDeviation': 27340.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19132.1, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27319.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '7898B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.483183, > 'kurtosis': -1.56392, > 'max': 65535, > 'mean': 24259.5, > 'median': 14392, > 'min': 0, > 'skewness': 0.540191, > 'standardDeviation': 27606.6}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23/tiff_rgba160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 14400, > 'pixelsPerSecond': '2.78674MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:08+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': '7a6545d9e61380a6419794a431be4fa3a8b03362ef35a2ad614b0d5502ce64de'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColorAlpha', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23/tiff_rgba160/in.tiff') >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23/alpha_png0/alpha.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f927e2a0820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw23')) > >src/img2pdf_test.py:2762: AssertionError >_________________ ERROR at setup of test_tiff_gray2[internal] __________________ >[gw18] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) >tmp_gray2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray2_png0/gray2.png') > > @pytest.fixture(scope="session") > def tiff_gray2_img(tmp_path_factory, tmp_gray2_png): > in_img = tmp_path_factory.mktemp("tiff_gray2") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray2_png), > "-depth", > "2", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 2, 'baseDepth': 2, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 3, 'mean': 1.315, 'median': 1, 'standardDeviation': 1.0873, 'kurtosis': -1.24094, 'skewness': 0.236132, 'entropy': 0.989108}}, 'colormapEntries': 4, 'colormap': ['#000000FF', '#555555FF', '#AAAAAAFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '2', 'png:IHDR.bit_depth': '2', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99'}, 'tainted': False, 'filesize': '837B', 'numberPixels': '3600', 'pixelsPerSecond': '3.90643MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 2, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.989108, > 'kurtosis': -1.24094, > 'max': 3, > 'mean': 1.315, > 'median': 1, > 'min': 0, > 'skewness': 0.236132, > 'standardDeviation': 1.0873}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#555555FF', '#AAAAAAFF', '#FFFFFFFF'], > 'colormapEntries': 4, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 2, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '837B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.90643MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '2', > 'png:IHDR.bit_depth': '2', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff') >tmp_gray2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray2_png0/gray2.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f6ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) > >src/img2pdf_test.py:2875: AssertionError >_________________ ERROR at setup of test_tiff_rgb14[internal] __________________ >[gw16] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f61ca1820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19129, 'median': 0, 'standardDeviation': 27325.3, 'kurtosis': -1.00123, 'skewness': 0.914894, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19131, 'median': 0, 'standardDeviation': 27318.2, 'kurtosis': -1.00107, 'skewness': 0.91491, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19162.3, 'median': 0, 'standardDeviation': 27339.4, 'kurtosis': -1.00682, 'skewness': 0.912034, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19093.6, 'median': 0, 'standardDeviation': 27318.4, 'kurtosis': -0.997986, 'skewness': 0.916981, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '56857a73cb1bc199af11eb296a32acee230c7924189b059cbf8a49b2a711286e'}, 'tainted': False, 'filesize': '4998B', 'numberPixels': '3600', 'pixelsPerSecond': '3.34058MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.997986, > 'max': 65535, > 'mean': 19093.6, > 'median': 0, > 'min': 0, > 'skewness': 0.916981, > 'standardDeviation': 27318.4}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00682, > 'max': 65535, > 'mean': 19162.3, > 'median': 0, > 'min': 0, > 'skewness': 0.912034, > 'standardDeviation': 27339.4}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00107, > 'max': 65535, > 'mean': 19131, > 'median': 0, > 'min': 0, > 'skewness': 0.91491, > 'standardDeviation': 27318.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4998B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00123, > 'max': 65535, > 'mean': 19129, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27325.3}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.34058MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '56857a73cb1bc199af11eb296a32acee230c7924189b059cbf8a49b2a711286e'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3f61ca1820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16')) > >src/img2pdf_test.py:2591: AssertionError >________________ ERROR at setup of test_tiff_multipage[pikepdf] ________________ >[gw12] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/normal_png0/normal.png') >tmp_inverse_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/inverse_png0/inverse.png') > > @pytest.fixture(scope="session") > def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png): > in_img = tmp_path_factory.mktemp("tiff_multipage_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > str(tmp_inverse_png), > "-strip", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads( > subprocess.check_output(CONVERT + [str(in_img) + "[0]", "json:"]) > ) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_multipage_img0/in.tiff[0]', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'Undefined', 'properties': {'date:create': '2022-10-05T01:22:08+00:00', 'date:modify': '2022-10-05T01:22:08+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2384B', 'numberPixels': '3600', 'pixelsPerSecond': '3.70566MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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': '2384B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_multipage_img0/in.tiff[0]', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.70566MB', > 'properties': {'date:create': '2022-10-05T01:22:08+00:00', > 'date:modify': '2022-10-05T01:22:08+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_multipage_img0/in.tiff') >tmp_inverse_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/inverse_png0/inverse.png') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f5e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) > >src/img2pdf_test.py:3105: AssertionError >________________ ERROR at setup of test_tiff_palette2[internal] ________________ >[gw20] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) >tmp_palette2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette2_png0/palette2.png') > > @pytest.fixture(scope="session") > def tiff_palette2_img(tmp_path_factory, tmp_palette2_png): > in_img = tmp_path_factory.mktemp("tiff_palette2_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette2_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 3.40327, 'median': 0, 'standardDeviation': 6.26682, 'kurtosis': -0.315289, 'skewness': 1.29798, 'entropy': 0.774059}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 3.48212, 'median': 0, 'standardDeviation': 6.31767, 'kurtosis': -0.406743, 'skewness': 1.26229, 'entropy': 0.7833}, 'green': {'min': 0, 'max': 15, 'mean': 3.37422, 'median': 0, 'standardDeviation': 6.24822, 'kurtosis': -0.281755, 'skewness': 1.31085, 'entropy': 0.770677}, 'blue': {'min': 0, 'max': 15, 'mean': 3.35346, 'median': 0, 'standardDeviation': 6.23456, 'kurtosis': -0.256681, 'skewness': 1.32038, 'entropy': 0.7682}}, 'colormapEntries': 5, 'colormap': ['#000000FF', '#FE0000FF', '#00FE00FF', '#0000FEFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '5', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84'}, 'tainted': False, 'filesize': '814B', 'numberPixels': '3600', 'pixelsPerSecond': '3.71749MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.7682, > 'kurtosis': -0.256681, > 'max': 15, > 'mean': 3.35346, > 'median': 0, > 'min': 0, > 'skewness': 1.32038, > 'standardDeviation': 6.23456}, > 'green': {'entropy': 0.770677, > 'kurtosis': -0.281755, > 'max': 15, > 'mean': 3.37422, > 'median': 0, > 'min': 0, > 'skewness': 1.31085, > 'standardDeviation': 6.24822}, > 'red': {'entropy': 0.7833, > 'kurtosis': -0.406743, > 'max': 15, > 'mean': 3.48212, > 'median': 0, > 'min': 0, > 'skewness': 1.26229, > 'standardDeviation': 6.31767}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#FE0000FF', > '#00FE00FF', > '#0000FEFF', > '#FFFFFFFF'], > 'colormapEntries': 5, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '814B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.774059, > 'kurtosis': -0.315289, > 'max': 15, > 'mean': 3.40327, > 'median': 0, > 'min': 0, > 'skewness': 1.29798, > 'standardDeviation': 6.26682}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.71749MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '5', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff') >tmp_palette2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette2_png0/palette2.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) > >src/img2pdf_test.py:3244: AssertionError >_________________ ERROR at setup of test_tiff_float[internal] __________________ >[gw6] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0db3788070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_float_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-depth", > "32", > "-define", > "quantum:format=floating-point", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2612B', 'numberPixels': '3600', 'pixelsPerSecond': '4.33007MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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': '2612B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_float_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '4.33007MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_float_img0/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/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.4/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0db3788070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6')) > >src/img2pdf_test.py:2306: AssertionError >_________________ ERROR at setup of test_tiff_gray16[internal] _________________ >[gw19] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...b6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) >tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/gray16_png0/gray16.png') > > @pytest.fixture(scope="session") > def tiff_gray16_img(tmp_path_factory, tmp_gray16_png): > in_img = tmp_path_factory.mktemp("tiff_gray16") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray16_png), > "-depth", > "16", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 65534, 'mean': 28769.9, 'median': 28139, 'standardDeviation': 22445.6, 'kurtosis': -1.34052, 'skewness': 0.171573, 'entropy': 0.758063}}, 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe'}, 'tainted': False, 'filesize': '4633B', 'numberPixels': '3600', 'pixelsPerSecond': '2.91421MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.758063, > 'kurtosis': -1.34052, > 'max': 65534, > 'mean': 28769.9, > 'median': 28139, > 'min': 0, > 'skewness': 0.171573, > 'standardDeviation': 22445.6}}, > 'class': 'DirectClass', > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4633B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.91421MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff') >tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/gray16_png0/gray16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdb6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) > >src/img2pdf_test.py:3046: AssertionError >______________ ERROR at setup of test_tiff_ccitt_nometa1[pikepdf] ______________ >[gw5] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_nometa1_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_nometa1_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > str(in_img), > ] > ) >> subprocess.check_call( > ["tiffset", "-u", "258", str(in_img)] > ) # remove BitsPerSample (258) > >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) > >src/img2pdf_test.py:3730: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff'],) >kwargs = {}, retcode = 1 >cmd = ['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff']' returned non-zero exit status 1. > >cmd = ['tiffset', > '-u', > '258', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff'] >kwargs = {} >popenargs = (['tiffset', > '-u', > '258', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff'],) >retcode = 1 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >---------------------------- Captured stderr setup ----------------------------- >/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa1_img0/in.tiff: Not a TIFF or MDI file, bad magic number 20617 (0x5089). >__________________ ERROR at setup of test_tiff_rgb8[internal] __________________ >[gw13] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f2fab6b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_rgb8_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_normal_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2639B', 'numberPixels': '3600', 'pixelsPerSecond': '3.31885MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '2639B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.31885MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13/tiff_rgb80/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0f2fab6b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw13')) > >src/img2pdf_test.py:2475: AssertionError >__________ ERROR at setup of test_tiff_ccitt_lsb_m2l_white[internal] ___________ >[gw7] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_lsb_m2l_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_lsb_m2l_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '2.70153MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.70153MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) > >src/img2pdf_test.py:3407: AssertionError >__________________ ERROR at setup of test_tiff_gray2[pikepdf] __________________ >[gw18] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) >tmp_gray2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray2_png0/gray2.png') > > @pytest.fixture(scope="session") > def tiff_gray2_img(tmp_path_factory, tmp_gray2_png): > in_img = tmp_path_factory.mktemp("tiff_gray2") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray2_png), > "-depth", > "2", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 2, 'baseDepth': 2, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 3, 'mean': 1.315, 'median': 1, 'standardDeviation': 1.0873, 'kurtosis': -1.24094, 'skewness': 0.236132, 'entropy': 0.989108}}, 'colormapEntries': 4, 'colormap': ['#000000FF', '#555555FF', '#AAAAAAFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '2', 'png:IHDR.bit_depth': '2', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99'}, 'tainted': False, 'filesize': '837B', 'numberPixels': '3600', 'pixelsPerSecond': '3.90643MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 2, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.989108, > 'kurtosis': -1.24094, > 'max': 3, > 'mean': 1.315, > 'median': 1, > 'min': 0, > 'skewness': 0.236132, > 'standardDeviation': 1.0873}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#555555FF', '#AAAAAAFF', '#FFFFFFFF'], > 'colormapEntries': 4, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 2, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '837B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.90643MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '2', > 'png:IHDR.bit_depth': '2', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'abff3699f88c4a9058bb00efd8418dd96b86e94c253201a5b8710d07c06b0c99'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray20/in.tiff') >tmp_gray2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray2_png0/gray2.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f6ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) > >src/img2pdf_test.py:2875: AssertionError >__________________ ERROR at setup of test_tiff_rgba8[pikepdf] __________________ >[gw21] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...b3e615820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21')) >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21/alpha_png0/alpha.png') > > @pytest.fixture(scope="session") > def tiff_rgba8_img(tmp_path_factory, tmp_alpha_png): > in_img = tmp_path_factory.mktemp("tiff_rgba8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_alpha_png), > "-depth", > "8", > "-strip", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21/tiff_rgba80/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'alpha': 8, 'red': 8, 'green': 8, 'blue': 8}, 'pixels': 14400, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 94.0273, 'median': 56, 'standardDeviation': 107.1, 'kurtosis': -1.56435, 'skewness': 0.540531, 'entropy': 0.49035}}, 'channelStatistics': {'alpha': {'min': 0, 'max': 255, 'mean': 153.67, 'median': 224, 'standardDeviation': 110.383, 'kurtosis': -1.64476, 'skewness': -0.408397, 'entropy': 0.578824}, 'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'alpha': '#00000000', '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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': '1732fb921cfbd9c9ed3e1383eefdb6abc62b1386e2074b79a278ba2d7ce08015'}, 'tainted': False, 'filesize': '3864B', 'numberPixels': '3600', 'pixelsPerSecond': '2.39724MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'alpha': '#00000000', > 'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'alpha': 8, 'blue': 8, 'green': 8, 'red': 8}, > 'channelStatistics': {'alpha': {'entropy': 0.578824, > 'kurtosis': -1.64476, > 'max': 255, > 'mean': 153.67, > 'median': 224, > 'min': 0, > 'skewness': -0.408397, > 'standardDeviation': 110.383}, > 'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '3864B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.49035, > 'kurtosis': -1.56435, > 'max': 255, > 'mean': 94.0273, > 'median': 56, > 'min': 0, > 'skewness': 0.540531, > 'standardDeviation': 107.1}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21/tiff_rgba80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 14400, > 'pixelsPerSecond': '2.39724MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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': '1732fb921cfbd9c9ed3e1383eefdb6abc62b1386e2074b79a278ba2d7ce08015'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColorAlpha', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21/tiff_rgba80/in.tiff') >tmp_alpha_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21/alpha_png0/alpha.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1b3e615820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw21')) > >src/img2pdf_test.py:2705: AssertionError >___________ ERROR at setup of test_tiff_ccitt_msb_m2l_white[pikepdf] ___________ >[gw9] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...dca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_msb_m2l_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_msb_m2l_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=msb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_m2l_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '4.22612MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_m2l_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '4.22612MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_m2l_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) > >src/img2pdf_test.py:3488: AssertionError >________________ ERROR at setup of test_tiff_palette2[pikepdf] _________________ >[gw20] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) >tmp_palette2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette2_png0/palette2.png') > > @pytest.fixture(scope="session") > def tiff_palette2_img(tmp_path_factory, tmp_palette2_png): > in_img = tmp_path_factory.mktemp("tiff_palette2_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette2_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 3.40327, 'median': 0, 'standardDeviation': 6.26682, 'kurtosis': -0.315289, 'skewness': 1.29798, 'entropy': 0.774059}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 3.48212, 'median': 0, 'standardDeviation': 6.31767, 'kurtosis': -0.406743, 'skewness': 1.26229, 'entropy': 0.7833}, 'green': {'min': 0, 'max': 15, 'mean': 3.37422, 'median': 0, 'standardDeviation': 6.24822, 'kurtosis': -0.281755, 'skewness': 1.31085, 'entropy': 0.770677}, 'blue': {'min': 0, 'max': 15, 'mean': 3.35346, 'median': 0, 'standardDeviation': 6.23456, 'kurtosis': -0.256681, 'skewness': 1.32038, 'entropy': 0.7682}}, 'colormapEntries': 5, 'colormap': ['#000000FF', '#FE0000FF', '#00FE00FF', '#0000FEFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '5', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84'}, 'tainted': False, 'filesize': '814B', 'numberPixels': '3600', 'pixelsPerSecond': '3.71749MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.7682, > 'kurtosis': -0.256681, > 'max': 15, > 'mean': 3.35346, > 'median': 0, > 'min': 0, > 'skewness': 1.32038, > 'standardDeviation': 6.23456}, > 'green': {'entropy': 0.770677, > 'kurtosis': -0.281755, > 'max': 15, > 'mean': 3.37422, > 'median': 0, > 'min': 0, > 'skewness': 1.31085, > 'standardDeviation': 6.24822}, > 'red': {'entropy': 0.7833, > 'kurtosis': -0.406743, > 'max': 15, > 'mean': 3.48212, > 'median': 0, > 'min': 0, > 'skewness': 1.26229, > 'standardDeviation': 6.31767}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#FE0000FF', > '#00FE00FF', > '#0000FEFF', > '#FFFFFFFF'], > 'colormapEntries': 5, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '814B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.774059, > 'kurtosis': -0.315289, > 'max': 15, > 'mean': 3.40327, > 'median': 0, > 'min': 0, > 'skewness': 1.29798, > 'standardDeviation': 6.26682}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.71749MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '5', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'a6e624ecaef8d81e284339c1aed63e39fe7eb1257df66a0beff2eef7d9359d84'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette2_img0/in.tiff') >tmp_palette2_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette2_png0/palette2.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) > >src/img2pdf_test.py:3244: AssertionError >__________ ERROR at setup of test_tiff_ccitt_lsb_m2l_black[internal] ___________ >[gw11] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_lsb_m2l_black_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_lsb_m2l_black_img") / "in.tiff" > # "-define quantum:polarity=min-is-black" requires ImageMagick with: > # https://github.com/ImageMagick/ImageMagick/commit/00730551f0a34328685c59d0dde87dd9e366103a > # or at least 7.0.8-11 from Aug 29, 2018 > # or at least 6.9.10-12 from Sep 7, 2018 (for the ImageMagick6 branch) > # also see: https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=34605 > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-black", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '2.21666MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.21666MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) > >src/img2pdf_test.py:3657: AssertionError >_________________ ERROR at setup of test_tiff_gray8[internal] __________________ >[gw8] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) >tmp_gray8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray8_png0/gray8.png') > > @pytest.fixture(scope="session") > def tiff_gray8_img(tmp_path_factory, tmp_gray8_png): > in_img = tmp_path_factory.mktemp("tiff_gray8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray8_png), > "-depth", > "8", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 254, 'mean': 111.517, 'median': 109, 'standardDeviation': 87.1815, 'kurtosis': -1.3425, 'skewness': 0.17345, 'entropy': 0.803611}}, 'colormapEntries': 256, 'colormap': ['#000000FF', '#010101FF', '#020202FF', '#030303FF', '#040404FF', '#050505FF', '#060606FF', '#070707FF', '#080808FF', '#090909FF', '#0A0A0AFF', '#0B0B0BFF', '#0C0C0CFF', '#0D0D0DFF', '#0E0E0EFF', '#0F0F0FFF', '#101010FF', '#111111FF', '#121212FF', '#131313FF', '#141414FF', '#151515FF', '#161616FF', '#171717FF', '#181818FF', '#191919FF', '#1A1A1AFF', '#1B1B1BFF', '#1C1C1CFF', '#1D1D1DFF', '#1E1E1EFF', '#1F1F1FFF', '#202020FF', '#212121FF', '#222222FF', '#232323FF', '#242424FF', '#252525FF', '#262626FF', '#272727FF', '#282828FF', '#292929FF', '#2A2A2AFF', '#2B2B2BFF', '#2C2C2CFF', '#2D2D2DFF', '#2E2E2EFF', '#2F2F2FFF', '#303030FF', '#313131FF', '#323232FF', '#333333FF', '#343434FF', '#353535FF', '#363636FF', '#373737FF', '#383838FF', '#393939FF', '#3A3A3AFF', '#3B3B3BFF', '#3C3C3CFF', '#3D3D3DFF', '#3E3E3EFF', '#3F3F3FFF', '#404040FF', '#414141FF', '#424242FF', '#434343FF', '#444444FF', '#454545FF', '#464646FF', '#474747FF', '#484848FF', '#494949FF', '#4A4A4AFF', '#4B4B4BFF', '#4C4C4CFF', '#4D4D4DFF', '#4E4E4EFF', '#4F4F4FFF', '#505050FF', '#515151FF', '#525252FF', '#535353FF', '#545454FF', '#555555FF', '#565656FF', '#575757FF', '#585858FF', '#595959FF', '#5A5A5AFF', '#5B5B5BFF', '#5C5C5CFF', '#5D5D5DFF', '#5E5E5EFF', '#5F5F5FFF', '#606060FF', '#616161FF', '#626262FF', '#636363FF', '#646464FF', '#656565FF', '#666666FF', '#676767FF', '#686868FF', '#696969FF', '#6A6A6AFF', '#6B6B6BFF', '#6C6C6CFF', '#6D6D6DFF', '#6E6E6EFF', '#6F6F6FFF', '#707070FF', '#717171FF', '#727272FF', '#737373FF', '#747474FF', '#757575FF', '#767676FF', '#777777FF', '#787878FF', '#797979FF', '#7A7A7AFF', '#7B7B7BFF', '#7C7C7CFF', '#7D7D7DFF', '#7E7E7EFF', '#7F7F7FFF', '#808080FF', '#818181FF', '#828282FF', '#838383FF', '#848484FF', '#858585FF', '#868686FF', '#878787FF', '#888888FF', '#898989FF', '#8A8A8AFF', '#8B8B8BFF', '#8C8C8CFF', '#8D8D8DFF', '#8E8E8EFF', '#8F8F8FFF', '#909090FF', '#919191FF', '#929292FF', '#939393FF', '#949494FF', '#959595FF', '#969696FF', '#979797FF', '#989898FF', '#999999FF', '#9A9A9AFF', '#9B9B9BFF', '#9C9C9CFF', '#9D9D9DFF', '#9E9E9EFF', '#9F9F9FFF', '#A0A0A0FF', '#A1A1A1FF', '#A2A2A2FF', '#A3A3A3FF', '#A4A4A4FF', '#A5A5A5FF', '#A6A6A6FF', '#A7A7A7FF', '#A8A8A8FF', '#A9A9A9FF', '#AAAAAAFF', '#ABABABFF', '#ACACACFF', '#ADADADFF', '#AEAEAEFF', '#AFAFAFFF', '#B0B0B0FF', '#B1B1B1FF', '#B2B2B2FF', '#B3B3B3FF', '#B4B4B4FF', '#B5B5B5FF', '#B6B6B6FF', '#B7B7B7FF', '#B8B8B8FF', '#B9B9B9FF', '#BABABAFF', '#BBBBBBFF', '#BCBCBCFF', '#BDBDBDFF', '#BEBEBEFF', '#BFBFBFFF', '#C0C0C0FF', '#C1C1C1FF', '#C2C2C2FF', '#C3C3C3FF', '#C4C4C4FF', '#C5C5C5FF', '#C6C6C6FF', '#C7C7C7FF', '#C8C8C8FF', '#C9C9C9FF', '#CACACAFF', '#CBCBCBFF', '#CCCCCCFF', '#CDCDCDFF', '#CECECEFF', '#CFCFCFFF', '#D0D0D0FF', '#D1D1D1FF', '#D2D2D2FF', '#D3D3D3FF', '#D4D4D4FF', '#D5D5D5FF', '#D6D6D6FF', '#D7D7D7FF', '#D8D8D8FF', '#D9D9D9FF', '#DADADAFF', '#DBDBDBFF', '#DCDCDCFF', '#DDDDDDFF', '#DEDEDEFF', '#DFDFDFFF', '#E0E0E0FF', '#E1E1E1FF', '#E2E2E2FF', '#E3E3E3FF', '#E4E4E4FF', '#E5E5E5FF', '#E6E6E6FF', '#E7E7E7FF', '#E8E8E8FF', '#E9E9E9FF', '#EAEAEAFF', '#EBEBEBFF', '#ECECECFF', '#EDEDEDFF', '#EEEEEEFF', '#EFEFEFFF', '#F0F0F0FF', '#F1F1F1FF', '#F2F2F2FF', '#F3F3F3FF', '#F4F4F4FF', '#F5F5F5FF', '#F6F6F6FF', '#F7F7F7FF', '#F8F8F8FF', '#F9F9F9FF', '#FAFAFAFF', '#FBFBFBFF', '#FCFCFCFF', '#FDFDFDFF', '#FEFEFEFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa'}, 'tainted': False, 'filesize': '1807B', 'numberPixels': '3600', 'pixelsPerSecond': '2776060B', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.803611, > 'kurtosis': -1.3425, > 'max': 254, > 'mean': 111.517, > 'median': 109, > 'min': 0, > 'skewness': 0.17345, > 'standardDeviation': 87.1815}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', > '#010101FF', > '#020202FF', > '#030303FF', > '#040404FF', > '#050505FF', > '#060606FF', > '#070707FF', > '#080808FF', > '#090909FF', > '#0A0A0AFF', > '#0B0B0BFF', > '#0C0C0CFF', > '#0D0D0DFF', > '#0E0E0EFF', > '#0F0F0FFF', > '#101010FF', > '#111111FF', > '#121212FF', > '#131313FF', > '#141414FF', > '#151515FF', > '#161616FF', > '#171717FF', > '#181818FF', > '#191919FF', > '#1A1A1AFF', > '#1B1B1BFF', > '#1C1C1CFF', > '#1D1D1DFF', > '#1E1E1EFF', > '#1F1F1FFF', > '#202020FF', > '#212121FF', > '#222222FF', > '#232323FF', > '#242424FF', > '#252525FF', > '#262626FF', > '#272727FF', > '#282828FF', > '#292929FF', > '#2A2A2AFF', > '#2B2B2BFF', > '#2C2C2CFF', > '#2D2D2DFF', > '#2E2E2EFF', > '#2F2F2FFF', > '#303030FF', > '#313131FF', > '#323232FF', > '#333333FF', > '#343434FF', > '#353535FF', > '#363636FF', > '#373737FF', > '#383838FF', > '#393939FF', > '#3A3A3AFF', > '#3B3B3BFF', > '#3C3C3CFF', > '#3D3D3DFF', > '#3E3E3EFF', > '#3F3F3FFF', > '#404040FF', > '#414141FF', > '#424242FF', > '#434343FF', > '#444444FF', > '#454545FF', > '#464646FF', > '#474747FF', > '#484848FF', > '#494949FF', > '#4A4A4AFF', > '#4B4B4BFF', > '#4C4C4CFF', > '#4D4D4DFF', > '#4E4E4EFF', > '#4F4F4FFF', > '#505050FF', > '#515151FF', > '#525252FF', > '#535353FF', > '#545454FF', > '#555555FF', > '#565656FF', > '#575757FF', > '#585858FF', > '#595959FF', > '#5A5A5AFF', > '#5B5B5BFF', > '#5C5C5CFF', > '#5D5D5DFF', > '#5E5E5EFF', > '#5F5F5FFF', > '#606060FF', > '#616161FF', > '#626262FF', > '#636363FF', > '#646464FF', > '#656565FF', > '#666666FF', > '#676767FF', > '#686868FF', > '#696969FF', > '#6A6A6AFF', > '#6B6B6BFF', > '#6C6C6CFF', > '#6D6D6DFF', > '#6E6E6EFF', > '#6F6F6FFF', > '#707070FF', > '#717171FF', > '#727272FF', > '#737373FF', > '#747474FF', > '#757575FF', > '#767676FF', > '#777777FF', > '#787878FF', > '#797979FF', > '#7A7A7AFF', > '#7B7B7BFF', > '#7C7C7CFF', > '#7D7D7DFF', > '#7E7E7EFF', > '#7F7F7FFF', > '#808080FF', > '#818181FF', > '#828282FF', > '#838383FF', > '#848484FF', > '#858585FF', > '#868686FF', > '#878787FF', > '#888888FF', > '#898989FF', > '#8A8A8AFF', > '#8B8B8BFF', > '#8C8C8CFF', > '#8D8D8DFF', > '#8E8E8EFF', > '#8F8F8FFF', > '#909090FF', > '#919191FF', > '#929292FF', > '#939393FF', > '#949494FF', > '#959595FF', > '#969696FF', > '#979797FF', > '#989898FF', > '#999999FF', > '#9A9A9AFF', > '#9B9B9BFF', > '#9C9C9CFF', > '#9D9D9DFF', > '#9E9E9EFF', > '#9F9F9FFF', > '#A0A0A0FF', > '#A1A1A1FF', > '#A2A2A2FF', > '#A3A3A3FF', > '#A4A4A4FF', > '#A5A5A5FF', > '#A6A6A6FF', > '#A7A7A7FF', > '#A8A8A8FF', > '#A9A9A9FF', > '#AAAAAAFF', > '#ABABABFF', > '#ACACACFF', > '#ADADADFF', > '#AEAEAEFF', > '#AFAFAFFF', > '#B0B0B0FF', > '#B1B1B1FF', > '#B2B2B2FF', > '#B3B3B3FF', > '#B4B4B4FF', > '#B5B5B5FF', > '#B6B6B6FF', > '#B7B7B7FF', > '#B8B8B8FF', > '#B9B9B9FF', > '#BABABAFF', > '#BBBBBBFF', > '#BCBCBCFF', > '#BDBDBDFF', > '#BEBEBEFF', > '#BFBFBFFF', > '#C0C0C0FF', > '#C1C1C1FF', > '#C2C2C2FF', > '#C3C3C3FF', > '#C4C4C4FF', > '#C5C5C5FF', > '#C6C6C6FF', > '#C7C7C7FF', > '#C8C8C8FF', > '#C9C9C9FF', > '#CACACAFF', > '#CBCBCBFF', > '#CCCCCCFF', > '#CDCDCDFF', > '#CECECEFF', > '#CFCFCFFF', > '#D0D0D0FF', > '#D1D1D1FF', > '#D2D2D2FF', > '#D3D3D3FF', > '#D4D4D4FF', > '#D5D5D5FF', > '#D6D6D6FF', > '#D7D7D7FF', > '#D8D8D8FF', > '#D9D9D9FF', > '#DADADAFF', > '#DBDBDBFF', > '#DCDCDCFF', > '#DDDDDDFF', > '#DEDEDEFF', > '#DFDFDFFF', > '#E0E0E0FF', > '#E1E1E1FF', > '#E2E2E2FF', > '#E3E3E3FF', > '#E4E4E4FF', > '#E5E5E5FF', > '#E6E6E6FF', > '#E7E7E7FF', > '#E8E8E8FF', > '#E9E9E9FF', > '#EAEAEAFF', > '#EBEBEBFF', > '#ECECECFF', > '#EDEDEDFF', > '#EEEEEEFF', > '#EFEFEFFF', > '#F0F0F0FF', > '#F1F1F1FF', > '#F2F2F2FF', > '#F3F3F3FF', > '#F4F4F4FF', > '#F5F5F5FF', > '#F6F6F6FF', > '#F7F7F7FF', > '#F8F8F8FF', > '#F9F9F9FF', > '#FAFAFAFF', > '#FBFBFBFF', > '#FCFCFCFF', > '#FDFDFDFF', > '#FEFEFEFF', > '#FFFFFFFF'], > 'colormapEntries': 256, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1807B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2776060B', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff') >tmp_gray8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray8_png0/gray8.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) > >src/img2pdf_test.py:2989: AssertionError >___________ ERROR at setup of test_tiff_ccitt_lsb_m2l_white[pikepdf] ___________ >[gw7] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_lsb_m2l_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_lsb_m2l_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '2.70153MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.70153MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_lsb_m2l_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) > >src/img2pdf_test.py:3407: AssertionError >__________________ ERROR at setup of test_tiff_gray1[pikepdf] __________________ >[gw1] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...667750c820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_gray1_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_gray1") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-depth", > "1", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_gray10/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '3.22763MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_gray10/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.22763MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_gray10/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f667750c820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw1')) > >src/img2pdf_test.py:2818: AssertionError >_________________ ERROR at setup of test_tiff_cmyk16[pikepdf] __________________ >[gw10] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...41554d7c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal_png0/normal.png') > > @pytest.fixture(scope="session") > def tiff_cmyk16_img(tmp_path_factory, tmp_normal_png): > in_img = tmp_path_factory.mktemp("tiff_cmyk16") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > "-depth", > "16", > "-colorspace", > "cmyk", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/tiff_cmyk160/in.tiff', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2658B', 'numberPixels': '3600', 'pixelsPerSecond': '3.74256MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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': '2658B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/tiff_cmyk160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.74256MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/tiff_cmyk160/in.tiff') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f741554d7c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10')) > >src/img2pdf_test.py:2426: AssertionError >__________________ ERROR at setup of test_tiff_rgb14[pikepdf] __________________ >[gw17] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e1f03a820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19129, 'median': 0, 'standardDeviation': 27325.3, 'kurtosis': -1.00123, 'skewness': 0.914894, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19131, 'median': 0, 'standardDeviation': 27318.2, 'kurtosis': -1.00107, 'skewness': 0.91491, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19162.3, 'median': 0, 'standardDeviation': 27339.4, 'kurtosis': -1.00682, 'skewness': 0.912034, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19093.6, 'median': 0, 'standardDeviation': 27318.4, 'kurtosis': -0.997986, 'skewness': 0.916981, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '56857a73cb1bc199af11eb296a32acee230c7924189b059cbf8a49b2a711286e'}, 'tainted': False, 'filesize': '4998B', 'numberPixels': '3600', 'pixelsPerSecond': '2.99218MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.997986, > 'max': 65535, > 'mean': 19093.6, > 'median': 0, > 'min': 0, > 'skewness': 0.916981, > 'standardDeviation': 27318.4}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00682, > 'max': 65535, > 'mean': 19162.3, > 'median': 0, > 'min': 0, > 'skewness': 0.912034, > 'standardDeviation': 27339.4}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00107, > 'max': 65535, > 'mean': 19131, > 'median': 0, > 'min': 0, > 'skewness': 0.91491, > 'standardDeviation': 27318.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4998B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00123, > 'max': 65535, > 'mean': 19129, > 'median': 0, > 'min': 0, > 'skewness': 0.914894, > 'standardDeviation': 27325.3}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2.99218MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '56857a73cb1bc199af11eb296a32acee230c7924189b059cbf8a49b2a711286e'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce1f03a820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17')) > >src/img2pdf_test.py:2591: AssertionError >_________________ ERROR at setup of test_tiff_gray16[pikepdf] __________________ >[gw19] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...b6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) >tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/gray16_png0/gray16.png') > > @pytest.fixture(scope="session") > def tiff_gray16_img(tmp_path_factory, tmp_gray16_png): > in_img = tmp_path_factory.mktemp("tiff_gray16") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray16_png), > "-depth", > "16", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 65534, 'mean': 28769.9, 'median': 28139, 'standardDeviation': 22445.6, 'kurtosis': -1.34052, 'skewness': 0.171573, 'entropy': 0.758063}}, 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe'}, 'tainted': False, 'filesize': '4633B', 'numberPixels': '3600', 'pixelsPerSecond': '2.91421MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.758063, > 'kurtosis': -1.34052, > 'max': 65534, > 'mean': 28769.9, > 'median': 28139, > 'min': 0, > 'skewness': 0.171573, > 'standardDeviation': 22445.6}}, > 'class': 'DirectClass', > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4633B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.91421MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '3dc6f07d1abbd185ffc0e5c1fe4d86353961d022ea3d6312862105552fd0b7fe'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_gray160/in.tiff') >tmp_gray16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/gray16_png0/gray16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdb6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) > >src/img2pdf_test.py:3046: AssertionError >_________________ ERROR at setup of test_tiff_gray4[internal] __________________ >[gw18] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) >tmp_gray4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray4_png0/gray4.png') > > @pytest.fixture(scope="session") > def tiff_gray4_img(tmp_path_factory, tmp_gray4_png): > in_img = tmp_path_factory.mktemp("tiff_gray4") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray4_png), > "-depth", > "4", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray40/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 4, 'baseDepth': 4, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 15, 'mean': 6.58306, 'median': 6, 'standardDeviation': 5.14943, 'kurtosis': -1.33592, 'skewness': 0.173306, 'entropy': 0.92194}}, 'colormapEntries': 16, 'colormap': ['#000000FF', '#111111FF', '#222222FF', '#333333FF', '#444444FF', '#555555FF', '#666666FF', '#777777FF', '#888888FF', '#999999FF', '#AAAAAAFF', '#BBBBBBFF', '#CCCCCCFF', '#DDDDDDFF', '#EEEEEEFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13'}, 'tainted': False, 'filesize': '1169B', 'numberPixels': '3600', 'pixelsPerSecond': '3.32776MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.92194, > 'kurtosis': -1.33592, > 'max': 15, > 'mean': 6.58306, > 'median': 6, > 'min': 0, > 'skewness': 0.173306, > 'standardDeviation': 5.14943}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', > '#111111FF', > '#222222FF', > '#333333FF', > '#444444FF', > '#555555FF', > '#666666FF', > '#777777FF', > '#888888FF', > '#999999FF', > '#AAAAAAFF', > '#BBBBBBFF', > '#CCCCCCFF', > '#DDDDDDFF', > '#EEEEEEFF', > '#FFFFFFFF'], > 'colormapEntries': 16, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 4, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1169B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray40/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.32776MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'f55f92cd5de129beef98d7a2919d8c3af3b516976d822f041c7f99d42b48cc13'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/tiff_gray40/in.tiff') >tmp_gray4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18/gray4_png0/gray4.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f6ba4a68b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw18')) > >src/img2pdf_test.py:2932: AssertionError >________________ ERROR at setup of test_tiff_palette1[internal] ________________ >[gw12] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) >tmp_palette1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/palette1_png0/palette1.png') > > @pytest.fixture(scope="session") > def tiff_palette1_img(tmp_path_factory, tmp_palette1_png): > in_img = tmp_path_factory.mktemp("tiff_palette1_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette1_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 2, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 3, 'mean': 0.868399, 'median': 0.0235294, 'standardDeviation': 1.33474, 'kurtosis': -1.10431, 'skewness': 0.946328, 'entropy': 0.863645}}, 'channelStatistics': {'red': {'min': 0, 'max': 3, 'mean': 0.863366, 'median': 0.0117647, 'standardDeviation': 1.34538, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'green': {'min': 0, 'max': 3, 'mean': 0.868399, 'median': 0.0235294, 'standardDeviation': 1.33474, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'blue': {'min': 0, 'max': 3, 'mean': 0.873431, 'median': 0.0352941, 'standardDeviation': 1.32411, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}}, 'colormapEntries': 3, 'colormap': ['#010203FF', '#FEFDFCFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '2', 'png:IHDR.bit_depth': '2', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '3', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a'}, 'tainted': False, 'filesize': '723B', 'numberPixels': '3600', 'pixelsPerSecond': '3.54897MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 2, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.873431, > 'median': 0.0352941, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.32411}, > 'green': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.868399, > 'median': 0.0235294, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.33474}, > 'red': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.863366, > 'median': 0.0117647, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.34538}}, > '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': 'PseudoClass', > 'colormap': ['#010203FF', '#FEFDFCFF', '#FFFFFFFF'], > 'colormapEntries': 3, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '723B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.863645, > 'kurtosis': -1.10431, > 'max': 3, > 'mean': 0.868399, > 'median': 0.0235294, > 'min': 0, > 'skewness': 0.946328, > 'standardDeviation': 1.33474}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.54897MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '2', > 'png:IHDR.bit_depth': '2', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '3', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff') >tmp_palette1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/palette1_png0/palette1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f5e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) > >src/img2pdf_test.py:3194: AssertionError >_____________ ERROR at setup of test_tiff_ccitt_nometa2[internal] ______________ >[gw5] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_nometa2_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_nometa2_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > str(in_img), > ] > ) >> subprocess.check_call( > ["tiffset", "-u", "278", str(in_img)] > ) # remove RowsPerStrip (278) > >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) > >src/img2pdf_test.py:3820: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'],) >kwargs = {}, retcode = 1 >cmd = ['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff']' returned non-zero exit status 1. > >cmd = ['tiffset', > '-u', > '278', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'] >kwargs = {} >popenargs = (['tiffset', > '-u', > '278', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'],) >retcode = 1 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >---------------------------- Captured stderr setup ----------------------------- >/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff: Not a TIFF or MDI file, bad magic number 20617 (0x5089). >___________ ERROR at setup of test_tiff_ccitt_lsb_m2l_black[pikepdf] ___________ >[gw11] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_lsb_m2l_black_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_lsb_m2l_black_img") / "in.tiff" > # "-define quantum:polarity=min-is-black" requires ImageMagick with: > # https://github.com/ImageMagick/ImageMagick/commit/00730551f0a34328685c59d0dde87dd9e366103a > # or at least 7.0.8-11 from Aug 29, 2018 > # or at least 6.9.10-12 from Sep 7, 2018 (for the ImageMagick6 branch) > # also see: https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=34605 > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-black", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '2.21666MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2.21666MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_lsb_m2l_black_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) > >src/img2pdf_test.py:3657: AssertionError >__________ ERROR at setup of test_tiff_ccitt_msb_l2m_white[internal] ___________ >[gw9] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...dca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_msb_l2m_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_msb_l2m_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=msb", > "-define", > "tiff:fill-order=lsb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '3.43649MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.43649MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) > >src/img2pdf_test.py:3570: AssertionError >__________ ERROR at setup of test_tiff_ccitt_msb_m2l_white[internal] ___________ >[gw7] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_msb_m2l_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_msb_m2l_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=msb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_msb_m2l_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '3.97364MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_msb_m2l_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.97364MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:10+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/tiff_ccitt_msb_m2l_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) > >src/img2pdf_test.py:3488: AssertionError >__________________ ERROR at setup of test_tiff_gray8[pikepdf] __________________ >[gw8] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) >tmp_gray8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray8_png0/gray8.png') > > @pytest.fixture(scope="session") > def tiff_gray8_img(tmp_path_factory, tmp_gray8_png): > in_img = tmp_path_factory.mktemp("tiff_gray8") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray8_png), > "-depth", > "8", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Grayscale', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 254, 'mean': 111.517, 'median': 109, 'standardDeviation': 87.1815, 'kurtosis': -1.3425, 'skewness': 0.17345, 'entropy': 0.803611}}, 'colormapEntries': 256, 'colormap': ['#000000FF', '#010101FF', '#020202FF', '#030303FF', '#040404FF', '#050505FF', '#060606FF', '#070707FF', '#080808FF', '#090909FF', '#0A0A0AFF', '#0B0B0BFF', '#0C0C0CFF', '#0D0D0DFF', '#0E0E0EFF', '#0F0F0FFF', '#101010FF', '#111111FF', '#121212FF', '#131313FF', '#141414FF', '#151515FF', '#161616FF', '#171717FF', '#181818FF', '#191919FF', '#1A1A1AFF', '#1B1B1BFF', '#1C1C1CFF', '#1D1D1DFF', '#1E1E1EFF', '#1F1F1FFF', '#202020FF', '#212121FF', '#222222FF', '#232323FF', '#242424FF', '#252525FF', '#262626FF', '#272727FF', '#282828FF', '#292929FF', '#2A2A2AFF', '#2B2B2BFF', '#2C2C2CFF', '#2D2D2DFF', '#2E2E2EFF', '#2F2F2FFF', '#303030FF', '#313131FF', '#323232FF', '#333333FF', '#343434FF', '#353535FF', '#363636FF', '#373737FF', '#383838FF', '#393939FF', '#3A3A3AFF', '#3B3B3BFF', '#3C3C3CFF', '#3D3D3DFF', '#3E3E3EFF', '#3F3F3FFF', '#404040FF', '#414141FF', '#424242FF', '#434343FF', '#444444FF', '#454545FF', '#464646FF', '#474747FF', '#484848FF', '#494949FF', '#4A4A4AFF', '#4B4B4BFF', '#4C4C4CFF', '#4D4D4DFF', '#4E4E4EFF', '#4F4F4FFF', '#505050FF', '#515151FF', '#525252FF', '#535353FF', '#545454FF', '#555555FF', '#565656FF', '#575757FF', '#585858FF', '#595959FF', '#5A5A5AFF', '#5B5B5BFF', '#5C5C5CFF', '#5D5D5DFF', '#5E5E5EFF', '#5F5F5FFF', '#606060FF', '#616161FF', '#626262FF', '#636363FF', '#646464FF', '#656565FF', '#666666FF', '#676767FF', '#686868FF', '#696969FF', '#6A6A6AFF', '#6B6B6BFF', '#6C6C6CFF', '#6D6D6DFF', '#6E6E6EFF', '#6F6F6FFF', '#707070FF', '#717171FF', '#727272FF', '#737373FF', '#747474FF', '#757575FF', '#767676FF', '#777777FF', '#787878FF', '#797979FF', '#7A7A7AFF', '#7B7B7BFF', '#7C7C7CFF', '#7D7D7DFF', '#7E7E7EFF', '#7F7F7FFF', '#808080FF', '#818181FF', '#828282FF', '#838383FF', '#848484FF', '#858585FF', '#868686FF', '#878787FF', '#888888FF', '#898989FF', '#8A8A8AFF', '#8B8B8BFF', '#8C8C8CFF', '#8D8D8DFF', '#8E8E8EFF', '#8F8F8FFF', '#909090FF', '#919191FF', '#929292FF', '#939393FF', '#949494FF', '#959595FF', '#969696FF', '#979797FF', '#989898FF', '#999999FF', '#9A9A9AFF', '#9B9B9BFF', '#9C9C9CFF', '#9D9D9DFF', '#9E9E9EFF', '#9F9F9FFF', '#A0A0A0FF', '#A1A1A1FF', '#A2A2A2FF', '#A3A3A3FF', '#A4A4A4FF', '#A5A5A5FF', '#A6A6A6FF', '#A7A7A7FF', '#A8A8A8FF', '#A9A9A9FF', '#AAAAAAFF', '#ABABABFF', '#ACACACFF', '#ADADADFF', '#AEAEAEFF', '#AFAFAFFF', '#B0B0B0FF', '#B1B1B1FF', '#B2B2B2FF', '#B3B3B3FF', '#B4B4B4FF', '#B5B5B5FF', '#B6B6B6FF', '#B7B7B7FF', '#B8B8B8FF', '#B9B9B9FF', '#BABABAFF', '#BBBBBBFF', '#BCBCBCFF', '#BDBDBDFF', '#BEBEBEFF', '#BFBFBFFF', '#C0C0C0FF', '#C1C1C1FF', '#C2C2C2FF', '#C3C3C3FF', '#C4C4C4FF', '#C5C5C5FF', '#C6C6C6FF', '#C7C7C7FF', '#C8C8C8FF', '#C9C9C9FF', '#CACACAFF', '#CBCBCBFF', '#CCCCCCFF', '#CDCDCDFF', '#CECECEFF', '#CFCFCFFF', '#D0D0D0FF', '#D1D1D1FF', '#D2D2D2FF', '#D3D3D3FF', '#D4D4D4FF', '#D5D5D5FF', '#D6D6D6FF', '#D7D7D7FF', '#D8D8D8FF', '#D9D9D9FF', '#DADADAFF', '#DBDBDBFF', '#DCDCDCFF', '#DDDDDDFF', '#DEDEDEFF', '#DFDFDFFF', '#E0E0E0FF', '#E1E1E1FF', '#E2E2E2FF', '#E3E3E3FF', '#E4E4E4FF', '#E5E5E5FF', '#E6E6E6FF', '#E7E7E7FF', '#E8E8E8FF', '#E9E9E9FF', '#EAEAEAFF', '#EBEBEBFF', '#ECECECFF', '#EDEDEDFF', '#EEEEEEFF', '#EFEFEFFF', '#F0F0F0FF', '#F1F1F1FF', '#F2F2F2FF', '#F3F3F3FF', '#F4F4F4FF', '#F5F5F5FF', '#F6F6F6FF', '#F7F7F7FF', '#F8F8F8FF', '#F9F9F9FF', '#FAFAFAFF', '#FBFBFBFF', '#FCFCFCFF', '#FDFDFDFF', '#FEFEFEFF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa'}, 'tainted': False, 'filesize': '1807B', 'numberPixels': '3600', 'pixelsPerSecond': '2776060B', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.803611, > 'kurtosis': -1.3425, > 'max': 254, > 'mean': 111.517, > 'median': 109, > 'min': 0, > 'skewness': 0.17345, > 'standardDeviation': 87.1815}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', > '#010101FF', > '#020202FF', > '#030303FF', > '#040404FF', > '#050505FF', > '#060606FF', > '#070707FF', > '#080808FF', > '#090909FF', > '#0A0A0AFF', > '#0B0B0BFF', > '#0C0C0CFF', > '#0D0D0DFF', > '#0E0E0EFF', > '#0F0F0FFF', > '#101010FF', > '#111111FF', > '#121212FF', > '#131313FF', > '#141414FF', > '#151515FF', > '#161616FF', > '#171717FF', > '#181818FF', > '#191919FF', > '#1A1A1AFF', > '#1B1B1BFF', > '#1C1C1CFF', > '#1D1D1DFF', > '#1E1E1EFF', > '#1F1F1FFF', > '#202020FF', > '#212121FF', > '#222222FF', > '#232323FF', > '#242424FF', > '#252525FF', > '#262626FF', > '#272727FF', > '#282828FF', > '#292929FF', > '#2A2A2AFF', > '#2B2B2BFF', > '#2C2C2CFF', > '#2D2D2DFF', > '#2E2E2EFF', > '#2F2F2FFF', > '#303030FF', > '#313131FF', > '#323232FF', > '#333333FF', > '#343434FF', > '#353535FF', > '#363636FF', > '#373737FF', > '#383838FF', > '#393939FF', > '#3A3A3AFF', > '#3B3B3BFF', > '#3C3C3CFF', > '#3D3D3DFF', > '#3E3E3EFF', > '#3F3F3FFF', > '#404040FF', > '#414141FF', > '#424242FF', > '#434343FF', > '#444444FF', > '#454545FF', > '#464646FF', > '#474747FF', > '#484848FF', > '#494949FF', > '#4A4A4AFF', > '#4B4B4BFF', > '#4C4C4CFF', > '#4D4D4DFF', > '#4E4E4EFF', > '#4F4F4FFF', > '#505050FF', > '#515151FF', > '#525252FF', > '#535353FF', > '#545454FF', > '#555555FF', > '#565656FF', > '#575757FF', > '#585858FF', > '#595959FF', > '#5A5A5AFF', > '#5B5B5BFF', > '#5C5C5CFF', > '#5D5D5DFF', > '#5E5E5EFF', > '#5F5F5FFF', > '#606060FF', > '#616161FF', > '#626262FF', > '#636363FF', > '#646464FF', > '#656565FF', > '#666666FF', > '#676767FF', > '#686868FF', > '#696969FF', > '#6A6A6AFF', > '#6B6B6BFF', > '#6C6C6CFF', > '#6D6D6DFF', > '#6E6E6EFF', > '#6F6F6FFF', > '#707070FF', > '#717171FF', > '#727272FF', > '#737373FF', > '#747474FF', > '#757575FF', > '#767676FF', > '#777777FF', > '#787878FF', > '#797979FF', > '#7A7A7AFF', > '#7B7B7BFF', > '#7C7C7CFF', > '#7D7D7DFF', > '#7E7E7EFF', > '#7F7F7FFF', > '#808080FF', > '#818181FF', > '#828282FF', > '#838383FF', > '#848484FF', > '#858585FF', > '#868686FF', > '#878787FF', > '#888888FF', > '#898989FF', > '#8A8A8AFF', > '#8B8B8BFF', > '#8C8C8CFF', > '#8D8D8DFF', > '#8E8E8EFF', > '#8F8F8FFF', > '#909090FF', > '#919191FF', > '#929292FF', > '#939393FF', > '#949494FF', > '#959595FF', > '#969696FF', > '#979797FF', > '#989898FF', > '#999999FF', > '#9A9A9AFF', > '#9B9B9BFF', > '#9C9C9CFF', > '#9D9D9DFF', > '#9E9E9EFF', > '#9F9F9FFF', > '#A0A0A0FF', > '#A1A1A1FF', > '#A2A2A2FF', > '#A3A3A3FF', > '#A4A4A4FF', > '#A5A5A5FF', > '#A6A6A6FF', > '#A7A7A7FF', > '#A8A8A8FF', > '#A9A9A9FF', > '#AAAAAAFF', > '#ABABABFF', > '#ACACACFF', > '#ADADADFF', > '#AEAEAEFF', > '#AFAFAFFF', > '#B0B0B0FF', > '#B1B1B1FF', > '#B2B2B2FF', > '#B3B3B3FF', > '#B4B4B4FF', > '#B5B5B5FF', > '#B6B6B6FF', > '#B7B7B7FF', > '#B8B8B8FF', > '#B9B9B9FF', > '#BABABAFF', > '#BBBBBBFF', > '#BCBCBCFF', > '#BDBDBDFF', > '#BEBEBEFF', > '#BFBFBFFF', > '#C0C0C0FF', > '#C1C1C1FF', > '#C2C2C2FF', > '#C3C3C3FF', > '#C4C4C4FF', > '#C5C5C5FF', > '#C6C6C6FF', > '#C7C7C7FF', > '#C8C8C8FF', > '#C9C9C9FF', > '#CACACAFF', > '#CBCBCBFF', > '#CCCCCCFF', > '#CDCDCDFF', > '#CECECEFF', > '#CFCFCFFF', > '#D0D0D0FF', > '#D1D1D1FF', > '#D2D2D2FF', > '#D3D3D3FF', > '#D4D4D4FF', > '#D5D5D5FF', > '#D6D6D6FF', > '#D7D7D7FF', > '#D8D8D8FF', > '#D9D9D9FF', > '#DADADAFF', > '#DBDBDBFF', > '#DCDCDCFF', > '#DDDDDDFF', > '#DEDEDEFF', > '#DFDFDFFF', > '#E0E0E0FF', > '#E1E1E1FF', > '#E2E2E2FF', > '#E3E3E3FF', > '#E4E4E4FF', > '#E5E5E5FF', > '#E6E6E6FF', > '#E7E7E7FF', > '#E8E8E8FF', > '#E9E9E9FF', > '#EAEAEAFF', > '#EBEBEBFF', > '#ECECECFF', > '#EDEDEDFF', > '#EEEEEEFF', > '#EFEFEFFF', > '#F0F0F0FF', > '#F1F1F1FF', > '#F2F2F2FF', > '#F3F3F3FF', > '#F4F4F4FF', > '#F5F5F5FF', > '#F6F6F6FF', > '#F7F7F7FF', > '#F8F8F8FF', > '#F9F9F9FF', > '#FAFAFAFF', > '#FBFBFBFF', > '#FCFCFCFF', > '#FDFDFDFF', > '#FEFEFEFF', > '#FFFFFFFF'], > 'colormapEntries': 256, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1807B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '2776060B', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'c2667319eb8e6bd622ec637829745a79fb93e299e2215be085d5d4ce9ca4d1fa'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Grayscale', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/tiff_gray80/in.tiff') >tmp_gray8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8/gray8_png0/gray8.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0210a2eb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw8')) > >src/img2pdf_test.py:2989: AssertionError >________________ ERROR at setup of test_tiff_palette1[pikepdf] _________________ >[gw12] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) >tmp_palette1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/palette1_png0/palette1.png') > > @pytest.fixture(scope="session") > def tiff_palette1_img(tmp_path_factory, tmp_palette1_png): > in_img = tmp_path_factory.mktemp("tiff_palette1_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette1_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 2, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 3, 'mean': 0.868399, 'median': 0.0235294, 'standardDeviation': 1.33474, 'kurtosis': -1.10431, 'skewness': 0.946328, 'entropy': 0.863645}}, 'channelStatistics': {'red': {'min': 0, 'max': 3, 'mean': 0.863366, 'median': 0.0117647, 'standardDeviation': 1.34538, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'green': {'min': 0, 'max': 3, 'mean': 0.868399, 'median': 0.0235294, 'standardDeviation': 1.33474, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}, 'blue': {'min': 0, 'max': 3, 'mean': 0.873431, 'median': 0.0352941, 'standardDeviation': 1.32411, 'kurtosis': -1.10513, 'skewness': 0.946138, 'entropy': 0.863645}}, 'colormapEntries': 3, 'colormap': ['#010203FF', '#FEFDFCFF', '#FFFFFFFF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '2', 'png:IHDR.bit_depth': '2', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '3', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a'}, 'tainted': False, 'filesize': '723B', 'numberPixels': '3600', 'pixelsPerSecond': '3.54897MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 2, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.873431, > 'median': 0.0352941, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.32411}, > 'green': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.868399, > 'median': 0.0235294, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.33474}, > 'red': {'entropy': 0.863645, > 'kurtosis': -1.10513, > 'max': 3, > 'mean': 0.863366, > 'median': 0.0117647, > 'min': 0, > 'skewness': 0.946138, > 'standardDeviation': 1.34538}}, > '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': 'PseudoClass', > 'colormap': ['#010203FF', '#FEFDFCFF', '#FFFFFFFF'], > 'colormapEntries': 3, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '723B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.863645, > 'kurtosis': -1.10431, > 'max': 3, > 'mean': 0.868399, > 'median': 0.0235294, > 'min': 0, > 'skewness': 0.946328, > 'standardDeviation': 1.33474}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.54897MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '2', > 'png:IHDR.bit_depth': '2', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '3', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': 'dc62896b6b3d3821fe51b079335349b090251db86c5413d64b5128a8e3551d7a'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/tiff_palette1_img0/in.tiff') >tmp_palette1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12/palette1_png0/palette1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f5e3c336a60>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw12')) > >src/img2pdf_test.py:3194: AssertionError >________________ ERROR at setup of test_tiff_palette4[pikepdf] _________________ >[gw22] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...a45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) >tmp_palette4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette4_png0/palette4.png') > > @pytest.fixture(scope="session") > def tiff_palette4_img(tmp_path_factory, tmp_palette4_png): > in_img = tmp_path_factory.mktemp("tiff_palette4_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette4_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette4_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 4.35056, 'median': 0, 'standardDeviation': 6.10245, 'kurtosis': -0.908749, 'skewness': 0.902293, 'entropy': 0.665013}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 4.86799, 'median': 0, 'standardDeviation': 6.56344, 'kurtosis': -1.29087, 'skewness': 0.739509, 'entropy': 0.662343}, 'green': {'min': 0, 'max': 15, 'mean': 4.27717, 'median': 0, 'standardDeviation': 6.16387, 'kurtosis': -0.883314, 'skewness': 0.931871, 'entropy': 0.658975}, 'blue': {'min': 0, 'max': 15, 'mean': 3.90652, 'median': 0, 'standardDeviation': 5.58004, 'kurtosis': -0.461386, 'skewness': 1.0275, 'entropy': 0.673721}}, 'colormapEntries': 13, 'colormap': ['#000000FF', '#800000FF', '#FF0000FF', '#FFFFFFFF', '#800080FF', '#FF00FFFF', '#808000FF', '#C0C0C0FF', '#000080FF', '#008000FF', '#808080FF', '#00FF00FF', '#008080FF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '13', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:10Z', 'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6'}, 'tainted': False, 'filesize': '1067B', 'numberPixels': '3600', 'pixelsPerSecond': '2.51978MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.673721, > 'kurtosis': -0.461386, > 'max': 15, > 'mean': 3.90652, > 'median': 0, > 'min': 0, > 'skewness': 1.0275, > 'standardDeviation': 5.58004}, > 'green': {'entropy': 0.658975, > 'kurtosis': -0.883314, > 'max': 15, > 'mean': 4.27717, > 'median': 0, > 'min': 0, > 'skewness': 0.931871, > 'standardDeviation': 6.16387}, > 'red': {'entropy': 0.662343, > 'kurtosis': -1.29087, > 'max': 15, > 'mean': 4.86799, > 'median': 0, > 'min': 0, > 'skewness': 0.739509, > 'standardDeviation': 6.56344}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#800000FF', > '#FF0000FF', > '#FFFFFFFF', > '#800080FF', > '#FF00FFFF', > '#808000FF', > '#C0C0C0FF', > '#000080FF', > '#008000FF', > '#808080FF', > '#00FF00FF', > '#008080FF'], > 'colormapEntries': 13, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1067B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.665013, > 'kurtosis': -0.908749, > 'max': 15, > 'mean': 4.35056, > 'median': 0, > 'min': 0, > 'skewness': 0.902293, > 'standardDeviation': 6.10245}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette4_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2.51978MB', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '13', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:10Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette4_img0/in.tiff') >tmp_palette4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette4_png0/palette4.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fca45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) > >src/img2pdf_test.py:3294: AssertionError >_________________ ERROR at setup of test_tiff_gray1[internal] __________________ >[gw0] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...619e797880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_gray1_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_gray1") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-depth", > "1", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_gray10/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:10Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '4.44008MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_gray10/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '4.44008MB', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:10Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_gray10/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f619e797880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw0')) > >src/img2pdf_test.py:2818: AssertionError >_________________ ERROR at setup of test_tiff_rgb12[internal] __________________ >[gw14] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...bea789070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19125.6, 'median': 0, 'standardDeviation': 27321.4, 'kurtosis': -1.00124, 'skewness': 0.914909, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19127.6, 'median': 0, 'standardDeviation': 27314.2, 'kurtosis': -1.00109, 'skewness': 0.914925, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19158.9, 'median': 0, 'standardDeviation': 27335.5, 'kurtosis': -1.00684, 'skewness': 0.912049, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19090.3, 'median': 0, 'standardDeviation': 27314.5, 'kurtosis': -0.998002, 'skewness': 0.916995, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:10Z', 'signature': '8785335cbbac1a7ae0b539755a7ec34e5ce37874a638fa9b11f158982eb5175f'}, 'tainted': False, 'filesize': '4908B', 'numberPixels': '3600', 'pixelsPerSecond': '3.30191MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.998002, > 'max': 65535, > 'mean': 19090.3, > 'median': 0, > 'min': 0, > 'skewness': 0.916995, > 'standardDeviation': 27314.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19158.9, > 'median': 0, > 'min': 0, > 'skewness': 0.912049, > 'standardDeviation': 27335.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19127.6, > 'median': 0, > 'min': 0, > 'skewness': 0.914925, > 'standardDeviation': 27314.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4908B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00124, > 'max': 65535, > 'mean': 19125.6, > 'median': 0, > 'min': 0, > 'skewness': 0.914909, > 'standardDeviation': 27321.4}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.30191MB', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:10Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '8785335cbbac1a7ae0b539755a7ec34e5ce37874a638fa9b11f158982eb5175f'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdbea789070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw14')) > >src/img2pdf_test.py:2531: AssertionError >_______________ ERROR at setup of test_tiff_multipage[internal] ________________ >[gw19] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...b6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/normal_png0/normal.png') >tmp_inverse_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/inverse_png0/inverse.png') > > @pytest.fixture(scope="session") > def tiff_multipage_img(tmp_path_factory, tmp_normal_png, tmp_inverse_png): > in_img = tmp_path_factory.mktemp("tiff_multipage_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_normal_png), > str(tmp_inverse_png), > "-strip", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads( > subprocess.check_output(CONVERT + [str(in_img) + "[0]", "json:"]) > ) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_multipage_img0/in.tiff[0]', 'baseName': 'in.tiff', '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': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.1465, 'median': 0, 'standardDeviation': 106.006, 'kurtosis': -1.00126, 'skewness': 0.915343, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.1542, 'median': 0, 'standardDeviation': 105.978, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 255, 'mean': 74.2758, 'median': 0, 'standardDeviation': 106.06, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 255, 'mean': 74.0094, 'median': 0, 'standardDeviation': 105.979, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'Zip', 'orientation': 'Undefined', 'properties': {'date:create': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', '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': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, 'tainted': False, 'filesize': '2384B', 'numberPixels': '3600', 'pixelsPerSecond': '3455940B', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.459548, > 'kurtosis': -0.998009, > 'max': 255, > 'mean': 74.0094, > 'median': 0, > 'min': 0, > 'skewness': 0.917431, > 'standardDeviation': 105.979}, > 'green': {'entropy': 0.460981, > 'kurtosis': -1.00686, > 'max': 255, > 'mean': 74.2758, > 'median': 0, > 'min': 0, > 'skewness': 0.912479, > 'standardDeviation': 106.06}, > 'red': {'entropy': 0.462046, > 'kurtosis': -1.0011, > 'max': 255, > 'mean': 74.1542, > 'median': 0, > 'min': 0, > 'skewness': 0.915359, > 'standardDeviation': 105.978}}, > '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.001', > 'endianness': 'Undefined', > 'filesize': '2384B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.454545, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.460859, > 'kurtosis': -1.00126, > 'max': 255, > 'mean': 74.1465, > 'median': 0, > 'min': 0, > 'skewness': 0.915343, > 'standardDeviation': 106.006}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_multipage_img0/in.tiff[0]', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3455940B', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > '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': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/tiff_multipage_img0/in.tiff') >tmp_inverse_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/inverse_png0/inverse.png') >tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19/normal_png0/normal.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdb6a7afb80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw19')) > >src/img2pdf_test.py:3105: AssertionError >___________ ERROR at setup of test_tiff_ccitt_msb_l2m_white[pikepdf] ___________ >[gw9] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...dca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_msb_l2m_white_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_msb_l2m_white_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=msb", > "-define", > "tiff:fill-order=lsb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > 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) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Bilevel', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'Gray', 'depth': 1, 'baseDepth': 1, 'channelDepth': {'gray': 1}, 'pixels': 3600, 'channelStatistics': {'gray': {'min': 0, 'max': 1, 'mean': 0.436111, 'median': 0, 'standardDeviation': 0.49597, 'kurtosis': -1.9342, 'skewness': 0.25756, 'entropy': 0.98819}}, 'colormapEntries': 2, 'colormap': ['#000000FF', '#FFFFFFFF'], 'renderingIntent': 'Undefined', 'gamma': 0.45455, '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': '2022-10-05T01:22:09+00:00', 'date:modify': '2022-10-05T01:22:09+00:00', 'date:timestamp': '2022-10-05T01:22:09+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '1', 'png:IHDR.bit_depth': '1', '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', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:09Z', 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, 'tainted': False, 'filesize': '692B', 'numberPixels': '3600', 'pixelsPerSecond': '3.43649MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 1, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'gray': 1}, > 'channelStatistics': {'gray': {'entropy': 0.98819, > 'kurtosis': -1.9342, > 'max': 1, > 'mean': 0.436111, > 'median': 0, > 'min': 0, > 'skewness': 0.25756, > 'standardDeviation': 0.49597}}, > 'class': 'PseudoClass', > 'colormap': ['#000000FF', '#FFFFFFFF'], > 'colormapEntries': 2, > 'colorspace': 'Gray', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 1, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '692B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > '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.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 3600, > 'pixelsPerSecond': '3.43649MB', > 'properties': {'date:create': '2022-10-05T01:22:09+00:00', > 'date:modify': '2022-10-05T01:22:09+00:00', > 'date:timestamp': '2022-10-05T01:22:09+00:00', > 'png:IHDR.bit-depth-orig': '1', > 'png:IHDR.bit_depth': '1', > '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', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:tIME': '2022-10-05T01:22:09Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '7cb2a4f4df5f29f3dcd3713b56f19caeb1074bdfee5baa5bfc3579735e655f66'}, > 'renderingIntent': 'Undefined', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Bilevel', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/tiff_ccitt_msb_l2m_white_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fdca5767b80>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw9')) > >src/img2pdf_test.py:3570: AssertionError >________________ ERROR at setup of test_tiff_palette4[internal] ________________ >[gw20] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) >tmp_palette4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette4_png0/palette4.png') > > @pytest.fixture(scope="session") > def tiff_palette4_img(tmp_path_factory, tmp_palette4_png): > in_img = tmp_path_factory.mktemp("tiff_palette4_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette4_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette4_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 4, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 15, 'mean': 4.35056, 'median': 0, 'standardDeviation': 6.10245, 'kurtosis': -0.908749, 'skewness': 0.902293, 'entropy': 0.665013}}, 'channelStatistics': {'red': {'min': 0, 'max': 15, 'mean': 4.86799, 'median': 0, 'standardDeviation': 6.56344, 'kurtosis': -1.29087, 'skewness': 0.739509, 'entropy': 0.662343}, 'green': {'min': 0, 'max': 15, 'mean': 4.27717, 'median': 0, 'standardDeviation': 6.16387, 'kurtosis': -0.883314, 'skewness': 0.931871, 'entropy': 0.658975}, 'blue': {'min': 0, 'max': 15, 'mean': 3.90652, 'median': 0, 'standardDeviation': 5.58004, 'kurtosis': -0.461386, 'skewness': 1.0275, 'entropy': 0.673721}}, 'colormapEntries': 13, 'colormap': ['#000000FF', '#800000FF', '#FF0000FF', '#FFFFFFFF', '#800080FF', '#FF00FFFF', '#808000FF', '#C0C0C0FF', '#000080FF', '#008000FF', '#808080FF', '#00FF00FF', '#008080FF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '4', 'png:IHDR.bit_depth': '4', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '13', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:10Z', 'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6'}, 'tainted': False, 'filesize': '1067B', 'numberPixels': '3600', 'pixelsPerSecond': '3.94322MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 4, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.673721, > 'kurtosis': -0.461386, > 'max': 15, > 'mean': 3.90652, > 'median': 0, > 'min': 0, > 'skewness': 1.0275, > 'standardDeviation': 5.58004}, > 'green': {'entropy': 0.658975, > 'kurtosis': -0.883314, > 'max': 15, > 'mean': 4.27717, > 'median': 0, > 'min': 0, > 'skewness': 0.931871, > 'standardDeviation': 6.16387}, > 'red': {'entropy': 0.662343, > 'kurtosis': -1.29087, > 'max': 15, > 'mean': 4.86799, > 'median': 0, > 'min': 0, > 'skewness': 0.739509, > 'standardDeviation': 6.56344}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#800000FF', > '#FF0000FF', > '#FFFFFFFF', > '#800080FF', > '#FF00FFFF', > '#808000FF', > '#C0C0C0FF', > '#000080FF', > '#008000FF', > '#808080FF', > '#00FF00FF', > '#008080FF'], > 'colormapEntries': 13, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.000', > 'endianness': 'Undefined', > 'filesize': '1067B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.665013, > 'kurtosis': -0.908749, > 'max': 15, > 'mean': 4.35056, > 'median': 0, > 'min': 0, > 'skewness': 0.902293, > 'standardDeviation': 6.10245}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette4_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.94322MB', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+00:00', > 'png:IHDR.bit-depth-orig': '4', > 'png:IHDR.bit_depth': '4', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '13', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:10Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '996c2a56ee8422da0f767d68b7bb2b067f628c17f9fd1d8be8a078d42608b2c6'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/tiff_palette4_img0/in.tiff') >tmp_palette4_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20/palette4_png0/palette4.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce95b64b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw20')) > >src/img2pdf_test.py:3294: AssertionError >______________ ERROR at setup of test_tiff_ccitt_nometa2[pikepdf] ______________ >[gw5] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_nometa2_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_nometa2_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > str(in_img), > ] > ) >> subprocess.check_call( > ["tiffset", "-u", "278", str(in_img)] > ) # remove RowsPerStrip (278) > >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) > >src/img2pdf_test.py:3820: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'],) >kwargs = {}, retcode = 1 >cmd = ['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['tiffset', '-u', '278', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff']' returned non-zero exit status 1. > >cmd = ['tiffset', > '-u', > '278', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'] >kwargs = {} >popenargs = (['tiffset', > '-u', > '278', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_ccitt_nometa2_img0/in.tiff'],) >retcode = 1 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >_____________ ERROR at setup of test_tiff_ccitt_nometa1[internal] ______________ >[gw11] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') > > @pytest.fixture(scope="session") > def tiff_ccitt_nometa1_img(tmp_path_factory, tmp_gray1_png): > in_img = tmp_path_factory.mktemp("tiff_ccitt_nometa1_img") / "in.tiff" > subprocess.check_call( > CONVERT > + [ > str(tmp_gray1_png), > "-compress", > "group4", > "-define", > "tiff:endian=lsb", > "-define", > "tiff:fill-order=msb", > "-define", > "quantum:polarity=min-is-white", > "-compress", > "Group4", > str(in_img), > ] > ) >> subprocess.check_call( > ["tiffset", "-u", "258", str(in_img)] > ) # remove BitsPerSample (258) > >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff') >tmp_gray1_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/gray1_png0/gray1.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) > >src/img2pdf_test.py:3730: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff'],) >kwargs = {}, retcode = 1 >cmd = ['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['tiffset', '-u', '258', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff']' returned non-zero exit status 1. > >cmd = ['tiffset', > '-u', > '258', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff'] >kwargs = {} >popenargs = (['tiffset', > '-u', > '258', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff'],) >retcode = 1 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >---------------------------- Captured stderr setup ----------------------------- >/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/tiff_ccitt_nometa1_img0/in.tiff: Not a TIFF or MDI file, bad magic number 20617 (0x5089). >__________________ ERROR at setup of test_tiff_rgb12[pikepdf] __________________ >[gw15] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...d19a40070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15')) >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15/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", > "-compress", > "Zip", > str(in_img), > ] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', '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': 16, 'baseDepth': 16, 'channelDepth': {'red': 16, 'green': 16, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19125.6, 'median': 0, 'standardDeviation': 27321.4, 'kurtosis': -1.00124, 'skewness': 0.914909, 'entropy': 0.455603}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19127.6, 'median': 0, 'standardDeviation': 27314.2, 'kurtosis': -1.00109, 'skewness': 0.914925, 'entropy': 0.456815}, 'green': {'min': 0, 'max': 65535, 'mean': 19158.9, 'median': 0, 'standardDeviation': 27335.5, 'kurtosis': -1.00684, 'skewness': 0.912049, 'entropy': 0.455643}, 'blue': {'min': 0, 'max': 65535, 'mean': 19090.3, 'median': 0, 'standardDeviation': 27314.5, 'kurtosis': -0.998002, 'skewness': 0.916995, 'entropy': 0.454351}}, 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:10+00:00', 'date:modify': '2022-10-05T01:22:10+00:00', 'date:timestamp': '2022-10-05T01:22:10+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', '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)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:10Z', 'signature': '8785335cbbac1a7ae0b539755a7ec34e5ce37874a638fa9b11f158982eb5175f'}, 'tainted': False, 'filesize': '4908B', 'numberPixels': '3600', 'pixelsPerSecond': '2419210B', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 16, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 16, 'red': 16}, > 'channelStatistics': {'blue': {'entropy': 0.454351, > 'kurtosis': -0.998002, > 'max': 65535, > 'mean': 19090.3, > 'median': 0, > 'min': 0, > 'skewness': 0.916995, > 'standardDeviation': 27314.5}, > 'green': {'entropy': 0.455643, > 'kurtosis': -1.00684, > 'max': 65535, > 'mean': 19158.9, > 'median': 0, > 'min': 0, > 'skewness': 0.912049, > 'standardDeviation': 27335.5}, > 'red': {'entropy': 0.456815, > 'kurtosis': -1.00109, > 'max': 65535, > 'mean': 19127.6, > 'median': 0, > 'min': 0, > 'skewness': 0.914925, > 'standardDeviation': 27314.2}}, > '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': 16, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '4908B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.455603, > 'kurtosis': -1.00124, > 'max': 65535, > 'mean': 19125.6, > 'median': 0, > 'min': 0, > 'skewness': 0.914909, > 'standardDeviation': 27321.4}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15/tiff_rgb80/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '2419210B', > 'properties': {'date:create': '2022-10-05T01:22:10+00:00', > 'date:modify': '2022-10-05T01:22:10+00:00', > 'date:timestamp': '2022-10-05T01:22:10+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:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:10Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '8785335cbbac1a7ae0b539755a7ec34e5ce37874a638fa9b11f158982eb5175f'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'TrueColor', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15/tiff_rgb80/in.tiff') >tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15/normal16_png0/normal16.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f8d19a40070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw15')) > >src/img2pdf_test.py:2531: AssertionError >________________ ERROR at setup of test_tiff_palette8[internal] ________________ >[gw22] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...a45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) >tmp_palette8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette8_png0/palette8.png') > > @pytest.fixture(scope="session") > def tiff_palette8_img(tmp_path_factory, tmp_palette8_png): > in_img = tmp_path_factory.mktemp("tiff_palette8_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette8_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.4189, 'median': 0, 'standardDeviation': 106.677, 'kurtosis': -0.998165, 'skewness': 0.9136, 'entropy': 0.575446}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.4925, 'median': 0, 'standardDeviation': 106.619, 'kurtosis': -0.999317, 'skewness': 0.912972, 'entropy': 0.580509}, 'green': {'min': 0, 'max': 255, 'mean': 74.5561, 'median': 0, 'standardDeviation': 106.546, 'kurtosis': -1.00447, 'skewness': 0.911503, 'entropy': 0.566691}, 'blue': {'min': 0, 'max': 255, 'mean': 74.2081, 'median': 0, 'standardDeviation': 106.867, 'kurtosis': -0.992966, 'skewness': 0.915579, 'entropy': 0.579138}}, 'colormapEntries': 161, 'colormap': ['#000000FF', '#330000FF', '#0F0F0FFF', '#660000FF', '#990000FF', '#CC0000FF', '#FF0000FF', '#FFFFFFFF', '#FF0040FF', '#FF2400FF', '#F0F0F0FF', '#FF4900FF', '#CC2400FF', '#990040FF', '#CC0040FF', '#FF0080FF', '#FF2440FF', '#FF6D00FF', '#992400FF', '#330040FF', '#CC0080FF', '#FF00BFFF', '#FF9200FF', '#CC4900FF', '#994900FF', '#662400FF', '#332400FF', '#000040FF', '#660040FF', '#990080FF', '#FF2480FF', '#FF4940FF', '#FF6D40FF', '#FF9240FF', '#FFB600FF', '#CC9200FF', '#CC6D00FF', '#664900FF', '#002400FF', '#660080FF', '#CC00BFFF', '#FF00FFFF', '#FF24BFFF', '#FF49BFFF', '#FF4980FF', '#FF6DBFFF', '#FF9280FF', '#FFB640FF', '#FFDB00FF', '#CCB600FF', '#999200FF', '#666D00FF', '#336D00FF', '#334900FF', '#000080FF', '#330080FF', '#9900BFFF', '#FF24FFFF', '#FF49FFFF', '#FF92BFFF', '#FFB680FF', '#FFDB80FF', '#FFDB40FF', '#FFFF00FF', '#CCDB00FF', '#66B600FF', '#669200FF', '#006D00FF', '#004900FF', '#3300BFFF', '#6600BFFF', '#9900FFFF', '#CC00FFFF', '#FF6DFFFF', '#FF92FFFF', '#FFB6BFFF', '#FFB6FFFF', '#FFDBBFFF', '#FFFFBFFF', '#FFFF80FF', '#FFFF40FF', '#CCFF00FF', '#99FF00FF', '#66DB00FF', '#00B600FF', '#009200FF', '#0000BFFF', '#3300FFFF', '#6600FFFF', '#33DB00FF', '#0000FFFF', '#66FF00FF', '#33FF00FF', '#00DB00FF', '#FFDBFFFF', '#00FF00FF', '#CC24FFFF', '#CCFF40FF', '#9924FFFF', '#CC49FFFF', '#CC6DFFFF', '#CCB6FFFF', '#CCFF80FF', '#9949FFFF', '#9992FFFF', '#CCDBFFFF', '#CCFFFFFF', '#CCFFBFFF', '#99FF40FF', '#3324FFFF', '#6624FFFF', '#666DFFFF', '#996DFFFF', '#99B6FFFF', '#99DBFFFF', '#99FFBFFF', '#99FF80FF', '#66FF80FF', '#66FF40FF', '#33FF40FF', '#336DFFFF', '#6692FFFF', '#66B6FFFF', '#99FFFFFF', '#66FFBFFF', '#33FF80FF', '#0024FFFF', '#3349FFFF', '#3392FFFF', '#33B6FFFF', '#66DBFFFF', '#66FFFFFF', '#33FFBFFF', '#00FF40FF', '#0049FFFF', '#006DFFFF', '#33DBFFFF', '#33FFFFFF', '#00FF80FF', '#0092FFFF', '#00B6FFFF', '#00DBFFFF', '#00FFBFFF', '#00FFFFFF', '#00DBBFFF', '#0092BFFF', '#00B6BFFF', '#0024BFFF', '#0049BFFF', '#00B680FF', '#00DB80FF', '#00DB40FF', '#004980FF', '#006D80FF', '#009280FF', '#009240FF', '#00B640FF', '#002480FF', '#006D40FF', '#002440FF', '#004940FF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:12+00:00', 'date:modify': '2022-10-05T01:22:12+00:00', 'date:timestamp': '2022-10-05T01:22:12+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '161', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:12Z', 'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856'}, 'tainted': False, 'filesize': '1922B', 'numberPixels': '3600', 'pixelsPerSecond': '3.34864MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.579138, > 'kurtosis': -0.992966, > 'max': 255, > 'mean': 74.2081, > 'median': 0, > 'min': 0, > 'skewness': 0.915579, > 'standardDeviation': 106.867}, > 'green': {'entropy': 0.566691, > 'kurtosis': -1.00447, > 'max': 255, > 'mean': 74.5561, > 'median': 0, > 'min': 0, > 'skewness': 0.911503, > 'standardDeviation': 106.546}, > 'red': {'entropy': 0.580509, > 'kurtosis': -0.999317, > 'max': 255, > 'mean': 74.4925, > 'median': 0, > 'min': 0, > 'skewness': 0.912972, > 'standardDeviation': 106.619}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#330000FF', > '#0F0F0FFF', > '#660000FF', > '#990000FF', > '#CC0000FF', > '#FF0000FF', > '#FFFFFFFF', > '#FF0040FF', > '#FF2400FF', > '#F0F0F0FF', > '#FF4900FF', > '#CC2400FF', > '#990040FF', > '#CC0040FF', > '#FF0080FF', > '#FF2440FF', > '#FF6D00FF', > '#992400FF', > '#330040FF', > '#CC0080FF', > '#FF00BFFF', > '#FF9200FF', > '#CC4900FF', > '#994900FF', > '#662400FF', > '#332400FF', > '#000040FF', > '#660040FF', > '#990080FF', > '#FF2480FF', > '#FF4940FF', > '#FF6D40FF', > '#FF9240FF', > '#FFB600FF', > '#CC9200FF', > '#CC6D00FF', > '#664900FF', > '#002400FF', > '#660080FF', > '#CC00BFFF', > '#FF00FFFF', > '#FF24BFFF', > '#FF49BFFF', > '#FF4980FF', > '#FF6DBFFF', > '#FF9280FF', > '#FFB640FF', > '#FFDB00FF', > '#CCB600FF', > '#999200FF', > '#666D00FF', > '#336D00FF', > '#334900FF', > '#000080FF', > '#330080FF', > '#9900BFFF', > '#FF24FFFF', > '#FF49FFFF', > '#FF92BFFF', > '#FFB680FF', > '#FFDB80FF', > '#FFDB40FF', > '#FFFF00FF', > '#CCDB00FF', > '#66B600FF', > '#669200FF', > '#006D00FF', > '#004900FF', > '#3300BFFF', > '#6600BFFF', > '#9900FFFF', > '#CC00FFFF', > '#FF6DFFFF', > '#FF92FFFF', > '#FFB6BFFF', > '#FFB6FFFF', > '#FFDBBFFF', > '#FFFFBFFF', > '#FFFF80FF', > '#FFFF40FF', > '#CCFF00FF', > '#99FF00FF', > '#66DB00FF', > '#00B600FF', > '#009200FF', > '#0000BFFF', > '#3300FFFF', > '#6600FFFF', > '#33DB00FF', > '#0000FFFF', > '#66FF00FF', > '#33FF00FF', > '#00DB00FF', > '#FFDBFFFF', > '#00FF00FF', > '#CC24FFFF', > '#CCFF40FF', > '#9924FFFF', > '#CC49FFFF', > '#CC6DFFFF', > '#CCB6FFFF', > '#CCFF80FF', > '#9949FFFF', > '#9992FFFF', > '#CCDBFFFF', > '#CCFFFFFF', > '#CCFFBFFF', > '#99FF40FF', > '#3324FFFF', > '#6624FFFF', > '#666DFFFF', > '#996DFFFF', > '#99B6FFFF', > '#99DBFFFF', > '#99FFBFFF', > '#99FF80FF', > '#66FF80FF', > '#66FF40FF', > '#33FF40FF', > '#336DFFFF', > '#6692FFFF', > '#66B6FFFF', > '#99FFFFFF', > '#66FFBFFF', > '#33FF80FF', > '#0024FFFF', > '#3349FFFF', > '#3392FFFF', > '#33B6FFFF', > '#66DBFFFF', > '#66FFFFFF', > '#33FFBFFF', > '#00FF40FF', > '#0049FFFF', > '#006DFFFF', > '#33DBFFFF', > '#33FFFFFF', > '#00FF80FF', > '#0092FFFF', > '#00B6FFFF', > '#00DBFFFF', > '#00FFBFFF', > '#00FFFFFF', > '#00DBBFFF', > '#0092BFFF', > '#00B6BFFF', > '#0024BFFF', > '#0049BFFF', > '#00B680FF', > '#00DB80FF', > '#00DB40FF', > '#004980FF', > '#006D80FF', > '#009280FF', > '#009240FF', > '#00B640FF', > '#002480FF', > '#006D40FF', > '#002440FF', > '#004940FF'], > 'colormapEntries': 161, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1922B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.575446, > 'kurtosis': -0.998165, > 'max': 255, > 'mean': 74.4189, > 'median': 0, > 'min': 0, > 'skewness': 0.9136, > 'standardDeviation': 106.677}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.34864MB', > 'properties': {'date:create': '2022-10-05T01:22:12+00:00', > 'date:modify': '2022-10-05T01:22:12+00:00', > 'date:timestamp': '2022-10-05T01:22:12+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '161', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:12Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff') >tmp_palette8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette8_png0/palette8.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fca45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) > >src/img2pdf_test.py:3344: AssertionError >________________ ERROR at setup of test_tiff_palette8[pikepdf] _________________ >[gw22] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...a45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) >tmp_palette8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette8_png0/palette8.png') > > @pytest.fixture(scope="session") > def tiff_palette8_img(tmp_path_factory, tmp_palette8_png): > in_img = tmp_path_factory.mktemp("tiff_palette8_img") / "in.tiff" > subprocess.check_call( > CONVERT + [str(tmp_palette8_png), "-compress", "Zip", str(in_img)] > ) > identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) > assert len(identify) == 1 > # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was > # put into an array, here we cater for the older version containing just > # the bare dictionary > if "image" in identify: > identify = [identify] > assert "image" in identify[0] >> assert identify[0]["image"].get("format") == "TIFF", str(identify) >E AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'PNG', 'formatDescription': 'PNG', 'mimeType': 'image/png', 'class': 'PseudoClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'Undefined', 'type': 'Palette', 'baseType': 'Undefined', 'endianness': 'Undefined', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 8, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 255, 'mean': 74.4189, 'median': 0, 'standardDeviation': 106.677, 'kurtosis': -0.998165, 'skewness': 0.9136, 'entropy': 0.575446}}, 'channelStatistics': {'red': {'min': 0, 'max': 255, 'mean': 74.4925, 'median': 0, 'standardDeviation': 106.619, 'kurtosis': -0.999317, 'skewness': 0.912972, 'entropy': 0.580509}, 'green': {'min': 0, 'max': 255, 'mean': 74.5561, 'median': 0, 'standardDeviation': 106.546, 'kurtosis': -1.00447, 'skewness': 0.911503, 'entropy': 0.566691}, 'blue': {'min': 0, 'max': 255, 'mean': 74.2081, 'median': 0, 'standardDeviation': 106.867, 'kurtosis': -0.992966, 'skewness': 0.915579, 'entropy': 0.579138}}, 'colormapEntries': 161, 'colormap': ['#000000FF', '#330000FF', '#0F0F0FFF', '#660000FF', '#990000FF', '#CC0000FF', '#FF0000FF', '#FFFFFFFF', '#FF0040FF', '#FF2400FF', '#F0F0F0FF', '#FF4900FF', '#CC2400FF', '#990040FF', '#CC0040FF', '#FF0080FF', '#FF2440FF', '#FF6D00FF', '#992400FF', '#330040FF', '#CC0080FF', '#FF00BFFF', '#FF9200FF', '#CC4900FF', '#994900FF', '#662400FF', '#332400FF', '#000040FF', '#660040FF', '#990080FF', '#FF2480FF', '#FF4940FF', '#FF6D40FF', '#FF9240FF', '#FFB600FF', '#CC9200FF', '#CC6D00FF', '#664900FF', '#002400FF', '#660080FF', '#CC00BFFF', '#FF00FFFF', '#FF24BFFF', '#FF49BFFF', '#FF4980FF', '#FF6DBFFF', '#FF9280FF', '#FFB640FF', '#FFDB00FF', '#CCB600FF', '#999200FF', '#666D00FF', '#336D00FF', '#334900FF', '#000080FF', '#330080FF', '#9900BFFF', '#FF24FFFF', '#FF49FFFF', '#FF92BFFF', '#FFB680FF', '#FFDB80FF', '#FFDB40FF', '#FFFF00FF', '#CCDB00FF', '#66B600FF', '#669200FF', '#006D00FF', '#004900FF', '#3300BFFF', '#6600BFFF', '#9900FFFF', '#CC00FFFF', '#FF6DFFFF', '#FF92FFFF', '#FFB6BFFF', '#FFB6FFFF', '#FFDBBFFF', '#FFFFBFFF', '#FFFF80FF', '#FFFF40FF', '#CCFF00FF', '#99FF00FF', '#66DB00FF', '#00B600FF', '#009200FF', '#0000BFFF', '#3300FFFF', '#6600FFFF', '#33DB00FF', '#0000FFFF', '#66FF00FF', '#33FF00FF', '#00DB00FF', '#FFDBFFFF', '#00FF00FF', '#CC24FFFF', '#CCFF40FF', '#9924FFFF', '#CC49FFFF', '#CC6DFFFF', '#CCB6FFFF', '#CCFF80FF', '#9949FFFF', '#9992FFFF', '#CCDBFFFF', '#CCFFFFFF', '#CCFFBFFF', '#99FF40FF', '#3324FFFF', '#6624FFFF', '#666DFFFF', '#996DFFFF', '#99B6FFFF', '#99DBFFFF', '#99FFBFFF', '#99FF80FF', '#66FF80FF', '#66FF40FF', '#33FF40FF', '#336DFFFF', '#6692FFFF', '#66B6FFFF', '#99FFFFFF', '#66FFBFFF', '#33FF80FF', '#0024FFFF', '#3349FFFF', '#3392FFFF', '#33B6FFFF', '#66DBFFFF', '#66FFFFFF', '#33FFBFFF', '#00FF40FF', '#0049FFFF', '#006DFFFF', '#33DBFFFF', '#33FFFFFF', '#00FF80FF', '#0092FFFF', '#00B6FFFF', '#00DBFFFF', '#00FFBFFF', '#00FFFFFF', '#00DBBFFF', '#0092BFFF', '#00B6BFFF', '#0024BFFF', '#0049BFFF', '#00B680FF', '#00DB80FF', '#00DB40FF', '#004980FF', '#006D80FF', '#009280FF', '#009240FF', '#00B640FF', '#002480FF', '#006D40FF', '#002440FF', '#004940FF'], 'renderingIntent': 'Perceptual', 'gamma': 0.45455, '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': '2022-10-05T01:22:12+00:00', 'date:modify': '2022-10-05T01:22:12+00:00', 'date:timestamp': '2022-10-05T01:22:12+00:00', 'png:bKGD': 'chunk was found (see Background color, above)', 'png:cHRM': 'chunk was found (see Chromaticity, above)', 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', 'png:IHDR.bit-depth-orig': '8', 'png:IHDR.bit_depth': '8', 'png:IHDR.color-type-orig': '3', 'png:IHDR.color_type': '3 (Indexed)', 'png:IHDR.interlace_method': '0 (Not interlaced)', 'png:IHDR.width,height': '60, 60', 'png:PLTE.number_colors': '161', 'png:sRGB': 'intent=0 (Perceptual Intent)', 'png:text': '3 tEXt/zTXt/iTXt chunks were found', 'png:tIME': '2022-10-05T01:22:12Z', 'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856'}, 'tainted': False, 'filesize': '1922B', 'numberPixels': '3600', 'pixelsPerSecond': '3.34864MB', 'userTime': '0.000u', 'elapsedTime': '0:01.001', 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 https://imagemagick.org'}}] >E assert 'PNG' == 'TIFF' >E - TIFF >E + PNG > >identify = [{'image': {'backgroundColor': '#FFFFFF', > 'baseDepth': 8, > 'baseName': 'in.tiff', > 'baseType': 'Undefined', > 'borderColor': '#DFDFDF', > 'channelDepth': {'blue': 1, 'green': 8, 'red': 8}, > 'channelStatistics': {'blue': {'entropy': 0.579138, > 'kurtosis': -0.992966, > 'max': 255, > 'mean': 74.2081, > 'median': 0, > 'min': 0, > 'skewness': 0.915579, > 'standardDeviation': 106.867}, > 'green': {'entropy': 0.566691, > 'kurtosis': -1.00447, > 'max': 255, > 'mean': 74.5561, > 'median': 0, > 'min': 0, > 'skewness': 0.911503, > 'standardDeviation': 106.546}, > 'red': {'entropy': 0.580509, > 'kurtosis': -0.999317, > 'max': 255, > 'mean': 74.4925, > 'median': 0, > 'min': 0, > 'skewness': 0.912972, > 'standardDeviation': 106.619}}, > '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': 'PseudoClass', > 'colormap': ['#000000FF', > '#330000FF', > '#0F0F0FFF', > '#660000FF', > '#990000FF', > '#CC0000FF', > '#FF0000FF', > '#FFFFFFFF', > '#FF0040FF', > '#FF2400FF', > '#F0F0F0FF', > '#FF4900FF', > '#CC2400FF', > '#990040FF', > '#CC0040FF', > '#FF0080FF', > '#FF2440FF', > '#FF6D00FF', > '#992400FF', > '#330040FF', > '#CC0080FF', > '#FF00BFFF', > '#FF9200FF', > '#CC4900FF', > '#994900FF', > '#662400FF', > '#332400FF', > '#000040FF', > '#660040FF', > '#990080FF', > '#FF2480FF', > '#FF4940FF', > '#FF6D40FF', > '#FF9240FF', > '#FFB600FF', > '#CC9200FF', > '#CC6D00FF', > '#664900FF', > '#002400FF', > '#660080FF', > '#CC00BFFF', > '#FF00FFFF', > '#FF24BFFF', > '#FF49BFFF', > '#FF4980FF', > '#FF6DBFFF', > '#FF9280FF', > '#FFB640FF', > '#FFDB00FF', > '#CCB600FF', > '#999200FF', > '#666D00FF', > '#336D00FF', > '#334900FF', > '#000080FF', > '#330080FF', > '#9900BFFF', > '#FF24FFFF', > '#FF49FFFF', > '#FF92BFFF', > '#FFB680FF', > '#FFDB80FF', > '#FFDB40FF', > '#FFFF00FF', > '#CCDB00FF', > '#66B600FF', > '#669200FF', > '#006D00FF', > '#004900FF', > '#3300BFFF', > '#6600BFFF', > '#9900FFFF', > '#CC00FFFF', > '#FF6DFFFF', > '#FF92FFFF', > '#FFB6BFFF', > '#FFB6FFFF', > '#FFDBBFFF', > '#FFFFBFFF', > '#FFFF80FF', > '#FFFF40FF', > '#CCFF00FF', > '#99FF00FF', > '#66DB00FF', > '#00B600FF', > '#009200FF', > '#0000BFFF', > '#3300FFFF', > '#6600FFFF', > '#33DB00FF', > '#0000FFFF', > '#66FF00FF', > '#33FF00FF', > '#00DB00FF', > '#FFDBFFFF', > '#00FF00FF', > '#CC24FFFF', > '#CCFF40FF', > '#9924FFFF', > '#CC49FFFF', > '#CC6DFFFF', > '#CCB6FFFF', > '#CCFF80FF', > '#9949FFFF', > '#9992FFFF', > '#CCDBFFFF', > '#CCFFFFFF', > '#CCFFBFFF', > '#99FF40FF', > '#3324FFFF', > '#6624FFFF', > '#666DFFFF', > '#996DFFFF', > '#99B6FFFF', > '#99DBFFFF', > '#99FFBFFF', > '#99FF80FF', > '#66FF80FF', > '#66FF40FF', > '#33FF40FF', > '#336DFFFF', > '#6692FFFF', > '#66B6FFFF', > '#99FFFFFF', > '#66FFBFFF', > '#33FF80FF', > '#0024FFFF', > '#3349FFFF', > '#3392FFFF', > '#33B6FFFF', > '#66DBFFFF', > '#66FFFFFF', > '#33FFBFFF', > '#00FF40FF', > '#0049FFFF', > '#006DFFFF', > '#33DBFFFF', > '#33FFFFFF', > '#00FF80FF', > '#0092FFFF', > '#00B6FFFF', > '#00DBFFFF', > '#00FFBFFF', > '#00FFFFFF', > '#00DBBFFF', > '#0092BFFF', > '#00B6BFFF', > '#0024BFFF', > '#0049BFFF', > '#00B680FF', > '#00DB80FF', > '#00DB40FF', > '#004980FF', > '#006D80FF', > '#009280FF', > '#009240FF', > '#00B640FF', > '#002480FF', > '#006D40FF', > '#002440FF', > '#004940FF'], > 'colormapEntries': 161, > 'colorspace': 'sRGB', > 'compose': 'Over', > 'compression': 'Zip', > 'depth': 8, > 'dispose': 'Undefined', > 'elapsedTime': '0:01.001', > 'endianness': 'Undefined', > 'filesize': '1922B', > 'format': 'PNG', > 'formatDescription': 'PNG', > 'gamma': 0.45455, > 'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'imageStatistics': {'Overall': {'entropy': 0.575446, > 'kurtosis': -0.998165, > 'max': 255, > 'mean': 74.4189, > 'median': 0, > 'min': 0, > 'skewness': 0.9136, > 'standardDeviation': 106.677}}, > 'intensity': 'Undefined', > 'interlace': 'None', > 'iterations': 0, > 'matteColor': '#BDBDBD', > 'mimeType': 'image/png', > 'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff', > 'numberPixels': '3600', > 'orientation': 'Undefined', > 'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0}, > 'pixels': 10800, > 'pixelsPerSecond': '3.34864MB', > 'properties': {'date:create': '2022-10-05T01:22:12+00:00', > 'date:modify': '2022-10-05T01:22:12+00:00', > 'date:timestamp': '2022-10-05T01:22:12+00:00', > 'png:IHDR.bit-depth-orig': '8', > 'png:IHDR.bit_depth': '8', > 'png:IHDR.color-type-orig': '3', > 'png:IHDR.color_type': '3 (Indexed)', > 'png:IHDR.interlace_method': '0 (Not interlaced)', > 'png:IHDR.width,height': '60, 60', > 'png:PLTE.number_colors': '161', > 'png:bKGD': 'chunk was found (see Background color, ' > 'above)', > 'png:cHRM': 'chunk was found (see Chromaticity, ' > 'above)', > 'png:gAMA': 'gamma=0.45455 (See Gamma, above)', > 'png:sRGB': 'intent=0 (Perceptual Intent)', > 'png:tIME': '2022-10-05T01:22:12Z', > 'png:text': '3 tEXt/zTXt/iTXt chunks were found', > 'signature': '698eff80780ee9b6927690e7948185d5bc1ecaaf1cc1f358f2462c70428e1856'}, > 'renderingIntent': 'Perceptual', > 'tainted': False, > 'transparentColor': '#00000000', > 'type': 'Palette', > 'units': 'Undefined', > 'userTime': '0.000u', > 'version': 'ImageMagick 7.1.0-48 Q16 x86_64 20449 ' > 'https://imagemagick.org'}, > 'version': '1.0'}] >in_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/tiff_palette8_img0/in.tiff') >tmp_palette8_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22/palette8_png0/palette8.png') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fca45a23b20>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw22')) > >src/img2pdf_test.py:3344: AssertionError >=================================== FAILURES =================================== >___________________________ test_png_rgb16[internal] ___________________________ >[gw11] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >png_rgb16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png') >png_rgb16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb16_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_rgb16(tmp_path_factory, png_rgb16_img, png_rgb16_pdf): > tmpdir = tmp_path_factory.mktemp("png_rgb16") >> compare_ghostscript(tmpdir, png_rgb16_img, png_rgb16_pdf, gsdevice="tiff48nc") > >png_rgb16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png') >png_rgb16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb16_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f1f9d3ab880>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160') > >src/img2pdf_test.py:5371: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = True > ext = 'tiff' > gsdevice = 'tiff48nc' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb16_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160') >src/img2pdf_test.py:318: in compare > subprocess.check_call( > cmyk = False > exact = True > icc = False > im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png' > im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff' >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/nor... '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff', 'null:'],) >kwargs = {}, retcode = 2 >cmd = ['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/norm...', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff', 'null:'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff', 'null:']' returned non-zero exit status 2. > >cmd = ['compare', > '-metric', > 'AE', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff', > 'null:'] >kwargs = {} >popenargs = (['compare', > '-metric', > 'AE', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/normal16_png0/normal16.png', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw11/png_rgb160/gs-1.tiff', > 'null:'],) >retcode = 2 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >compare: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/741. >____________________________ test_jpg_cmyk[pikepdf] ____________________________ >[gw5] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) >jpg_cmyk_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk0/in.jpg') >jpg_cmyk_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["darwin", "win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_jpg_cmyk(tmp_path_factory, jpg_cmyk_img, jpg_cmyk_pdf): > tmpdir = tmp_path_factory.mktemp("jpg_cmyk") >> compare_ghostscript( > tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", exact=False > ) > >jpg_cmyk_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk0/in.jpg') >jpg_cmyk_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3c3f762820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk1') > >src/img2pdf_test.py:5330: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'tiff' > gsdevice = 'tiff32nc' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk0/in.jpg') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk1') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk0/in.jpg' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk1/gs-1.tiff' >exact = False, icc = False, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b"compare: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/741.\n" > >cmyk = False >exact = False >icc = False >iccargs = [] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk0/in.jpg' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw5/jpg_cmyk1/gs-1.tiff' >psnr = (b"compare: no decode delegate for this image format `TIFF' @ error/constitute." > b'c/ReadImage/741.\n') > >src/img2pdf_test.py:348: ValueError >___________________________ test_jpg_cmyk[internal] ____________________________ >[gw4] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e3d0fb3070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4')) >jpg_cmyk_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk0/in.jpg') >jpg_cmyk_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["darwin", "win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_jpg_cmyk(tmp_path_factory, jpg_cmyk_img, jpg_cmyk_pdf): > tmpdir = tmp_path_factory.mktemp("jpg_cmyk") >> compare_ghostscript( > tmpdir, jpg_cmyk_img, jpg_cmyk_pdf, gsdevice="tiff32nc", exact=False > ) > >jpg_cmyk_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk0/in.jpg') >jpg_cmyk_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fe3d0fb3070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk1') > >src/img2pdf_test.py:5330: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'tiff' > gsdevice = 'tiff32nc' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk0/in.jpg') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk1') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk0/in.jpg' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk1/gs-1.tiff' >exact = False, icc = False, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b"compare: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/741.\n" > >cmyk = False >exact = False >icc = False >iccargs = [] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk0/in.jpg' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw4/jpg_cmyk1/gs-1.tiff' >psnr = (b"compare: no decode delegate for this image format `TIFF' @ error/constitute." > b'c/ReadImage/741.\n') > >src/img2pdf_test.py:348: ValueError >___________________________ test_png_rgb16[pikepdf] ____________________________ >[gw10] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...41554d7c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10')) >png_rgb16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png') >png_rgb16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb16_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_rgb16(tmp_path_factory, png_rgb16_img, png_rgb16_pdf): > tmpdir = tmp_path_factory.mktemp("png_rgb16") >> compare_ghostscript(tmpdir, png_rgb16_img, png_rgb16_pdf, gsdevice="tiff48nc") > >png_rgb16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png') >png_rgb16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb16_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f741554d7c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160') > >src/img2pdf_test.py:5371: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = True > ext = 'tiff' > gsdevice = 'tiff48nc' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb16_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160') >src/img2pdf_test.py:318: in compare > subprocess.check_call( > cmyk = False > exact = True > icc = False > im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png' > im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff' >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >popenargs = (['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/nor... '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff', 'null:'],) >kwargs = {}, retcode = 2 >cmd = ['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/norm...', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff', 'null:'] > > def check_call(*popenargs, **kwargs): > """Run command with arguments. Wait for command to complete. If > the exit code was zero then return, otherwise raise > CalledProcessError. The CalledProcessError object will have the > return code in the returncode attribute. > > The arguments are the same as for the call function. Example: > > check_call(["ls", "-l"]) > """ > retcode = call(*popenargs, **kwargs) > if retcode: > cmd = kwargs.get("args") > if cmd is None: > cmd = popenargs[0] >> raise CalledProcessError(retcode, cmd) >E subprocess.CalledProcessError: Command '['compare', '-metric', 'AE', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png', '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff', 'null:']' returned non-zero exit status 2. > >cmd = ['compare', > '-metric', > 'AE', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff', > 'null:'] >kwargs = {} >popenargs = (['compare', > '-metric', > 'AE', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/normal16_png0/normal16.png', > '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw10/png_rgb160/gs-1.tiff', > 'null:'],) >retcode = 2 > >/usr/lib/python3.8/subprocess.py:364: CalledProcessError >----------------------------- Captured stderr call ----------------------------- >compare: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/741. >___________________________ test_png_gray16[pikepdf] ___________________________ >[gw7] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >png_gray16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png') >png_gray16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray16_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_gray16(tmp_path_factory, png_gray16_img, png_gray16_pdf): > tmpdir = tmp_path_factory.mktemp("png_gray16") > # ghostscript outputs 8-bit grayscale, so the comparison will not be exact >> compare_ghostscript( > tmpdir, png_gray16_img, png_gray16_pdf, gsdevice="pnggray", exact=False > ) > >png_gray16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png') >png_gray16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray16_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f9634a5d070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray160') > >src/img2pdf_test.py:5508: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'png' > gsdevice = 'pnggray' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray16_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray160') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray160/gs-1.png' >exact = False, icc = False, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b'60.549 (0.60549)' > >cmyk = False >exact = False >icc = False >iccargs = [] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/gray16_png0/gray16.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw7/png_gray160/gs-1.png' >psnr = b'60.549 (0.60549)' > >src/img2pdf_test.py:348: ValueError >__________________________ test_png_gray16[internal] ___________________________ >[gw6] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...0db3788070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6')) >png_gray16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') >png_gray16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray16_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_gray16(tmp_path_factory, png_gray16_img, png_gray16_pdf): > tmpdir = tmp_path_factory.mktemp("png_gray16") > # ghostscript outputs 8-bit grayscale, so the comparison will not be exact >> compare_ghostscript( > tmpdir, png_gray16_img, png_gray16_pdf, gsdevice="pnggray", exact=False > ) > >png_gray16_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') >png_gray16_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray16_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f0db3788070>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray160') > >src/img2pdf_test.py:5508: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'png' > gsdevice = 'pnggray' > icc = False > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray16_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray160') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray160/gs-1.png' >exact = False, icc = False, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b'60.549 (0.60549)' > >cmyk = False >exact = False >icc = False >iccargs = [] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/gray16_png0/gray16.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw6/png_gray160/gs-1.png' >psnr = b'60.549 (0.60549)' > >src/img2pdf_test.py:348: ValueError >____________________________ test_png_icc[internal] ____________________________ >[gw16] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...f61ca1820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16')) >png_icc_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/icc_png0/icc.png') >png_icc_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["darwin", "win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf): > tmpdir = tmp_path_factory.mktemp("png_icc") >> compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, exact=False, icc=True) > >png_icc_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/icc_png0/icc.png') >png_icc_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f3f61ca1820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc0') > >src/img2pdf_test.py:5571: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'png' > gsdevice = 'png16m' > icc = True > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/icc_png0/icc.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc0') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/icc_png0/icc.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc0/gs-1.png' >exact = False, icc = True, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b'61.5441 (0.615441)' > >cmyk = False >exact = False >icc = True >iccargs = ['-profile', PosixPath('/usr/share/ghostscript/10.00.0/iccprofiles/srgb.icc')] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/icc_png0/icc.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw16/png_icc0/gs-1.png' >psnr = b'61.5441 (0.615441)' > >src/img2pdf_test.py:348: ValueError >____________________________ test_png_icc[pikepdf] _____________________________ >[gw17] linux -- Python 3.8.14 /usr/bin/python3.8 > >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/po...e1f03a820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17')) >png_icc_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/icc_png0/icc.png') >png_icc_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc_pdf0/out.pdf') > > @pytest.mark.skipif( > sys.platform in ["darwin", "win32"], > reason="test utilities not available on Windows and MacOS", > ) > def test_png_icc(tmp_path_factory, png_icc_img, png_icc_pdf): > tmpdir = tmp_path_factory.mktemp("png_icc") >> compare_ghostscript(tmpdir, png_icc_img, png_icc_pdf, exact=False, icc=True) > >png_icc_img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/icc_png0/icc.png') >png_icc_pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc_pdf0/out.pdf') >tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fce1f03a820>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17')) >tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc0') > >src/img2pdf_test.py:5571: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >src/img2pdf_test.py:372: in compare_ghostscript > compare(str(img), str(tmpdir / "gs-1.") + ext, exact, icc, False) > exact = False > ext = 'png' > gsdevice = 'png16m' > icc = True > img = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/icc_png0/icc.png') > pdf = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc_pdf0/out.pdf') > tmpdir = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc0') >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/icc_png0/icc.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc0/gs-1.png' >exact = False, icc = True, cmyk = False > > def compare(im1, im2, exact, icc, cmyk): > if exact: > if cmyk: > raise Exception("cmyk cannot be exact") > elif icc: > raise Exception("icc cannot be exact") > else: > subprocess.check_call( > COMPARE > + [ > "-metric", > "AE", > im1, > im2, > "null:", > ] > ) > else: > iccargs = [] > if icc: > if ICC_PROFILE is None: > pytest.skip("Could not locate an ICC profile") > iccargs = ["-profile", ICC_PROFILE] > psnr = subprocess.run( > COMPARE > + iccargs > + [ > "-metric", > "PSNR", > im1, > im2, > "null:", > ], > check=False, > stderr=subprocess.PIPE, > ).stderr > assert psnr != b"0" >> psnr = float(psnr.strip(b"0")) >E ValueError: could not convert string to float: b'61.5441 (0.615441)' > >cmyk = False >exact = False >icc = True >iccargs = ['-profile', PosixPath('/usr/share/ghostscript/10.00.0/iccprofiles/srgb.icc')] >im1 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/icc_png0/icc.png' >im2 = '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/pytest-of-portage/pytest-0/popen-gw17/png_icc0/gs-1.png' >psnr = b'61.5441 (0.615441)' > >src/img2pdf_test.py:348: ValueError >=========================== short test summary info ============================ >SKIPPED [2] src/img2pdf_test.py:5634: gif animation test fails >ERROR src/img2pdf_test.py::test_tiff_cmyk8[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_rgb8[pikepdf] - AssertionError: [{'versi... >ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_rgba8[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_rgba16[internal] - AssertionError: [{'ve... >ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] - AssertionError: [{'ve... >ERROR src/img2pdf_test.py::test_tiff_gray4[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_rgba16[pikepdf] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_gray2[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_multipage[pikepdf] - AssertionError: [{'... >ERROR src/img2pdf_test.py::test_tiff_palette2[internal] - AssertionError: [{'... >ERROR src/img2pdf_test.py::test_tiff_float[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_gray16[internal] - AssertionError: [{'ve... >ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] - subprocess.Call... >ERROR src/img2pdf_test.py::test_tiff_rgb8[internal] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] - Assertio... >ERROR src/img2pdf_test.py::test_tiff_gray2[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_rgba8[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] - Assertion... >ERROR src/img2pdf_test.py::test_tiff_palette2[pikepdf] - AssertionError: [{'v... >ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] - Assertio... >ERROR src/img2pdf_test.py::test_tiff_gray8[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] - Assertion... >ERROR src/img2pdf_test.py::test_tiff_gray1[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_gray4[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_palette1[internal] - AssertionError: [{'... >ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] - subprocess.Cal... >ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] - Assertion... >ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] - Assertio... >ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] - Assertio... >ERROR src/img2pdf_test.py::test_tiff_gray8[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_palette1[pikepdf] - AssertionError: [{'v... >ERROR src/img2pdf_test.py::test_tiff_palette4[pikepdf] - AssertionError: [{'v... >ERROR src/img2pdf_test.py::test_tiff_gray1[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] - AssertionError: [{'ver... >ERROR src/img2pdf_test.py::test_tiff_multipage[internal] - AssertionError: [{... >ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] - Assertion... >ERROR src/img2pdf_test.py::test_tiff_palette4[internal] - AssertionError: [{'... >ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] - subprocess.Call... >ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] - subprocess.Cal... >ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] - AssertionError: [{'vers... >ERROR src/img2pdf_test.py::test_tiff_palette8[internal] - AssertionError: [{'... >ERROR src/img2pdf_test.py::test_tiff_palette8[pikepdf] - AssertionError: [{'v... >FAILED src/img2pdf_test.py::test_png_rgb16[internal] - subprocess.CalledProce... >FAILED src/img2pdf_test.py::test_jpg_cmyk[pikepdf] - ValueError: could not co... >FAILED src/img2pdf_test.py::test_jpg_cmyk[internal] - ValueError: could not c... >FAILED src/img2pdf_test.py::test_png_rgb16[pikepdf] - subprocess.CalledProces... >FAILED src/img2pdf_test.py::test_png_gray16[pikepdf] - ValueError: could not ... >FAILED src/img2pdf_test.py::test_png_gray16[internal] - ValueError: could not... >FAILED src/img2pdf_test.py::test_png_icc[internal] - ValueError: could not co... >FAILED src/img2pdf_test.py::test_png_icc[pikepdf] - ValueError: could not con... >============= 8 failed, 239 passed, 2 skipped, 50 errors in 14.01s ============= > * ERROR: media-gfx/img2pdf-0.4.4::gentoo failed (test phase): > * pytest failed with python3.8 > * > * Call stack: > * ebuild.sh, line 122: Called src_test > * environment, line 3471: Called distutils-r1_src_test > * environment, line 1702: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 758: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3143: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2672: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2670: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 1109: Called distutils-r1_run_phase 'python_test' > * environment, line 1625: Called python_test > * environment, line 3434: Called epytest '-n' 'auto' > * environment, line 2180: 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.4::gentoo'`, > * the complete build log and the output of `emerge -pqv '=media-gfx/img2pdf-0.4.4::gentoo'`. > * The complete build log is located at '/var/log/emerge-log/build/media-gfx/img2pdf-0.4.4:20221005-012150.log'. > * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.4/temp/environment'. > * Working directory: '/var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4' > * S: '/var/tmp/portage/media-gfx/img2pdf-0.4.4/work/img2pdf-0.4.4' >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 875227
: 820405