Commit Graph

49 Commits (main)

Author SHA1 Message Date
Johannes Schauer Marin Rodrigues e05580a49a
src/img2pdf_test.py: IM7 dropped 'baseType' in json output, so use 'type' instead which works for both IM6 and IM7 10 months ago
Johannes Schauer Marin Rodrigues acc25a4926
Support JPEG2000 images with transparency
Closes: #173
10 months ago
Johannes Schauer Marin Rodrigues 1e8557cef1
src/img2pdf_test.py: drop check for endianness for tests where it does not matter
IM7 defaults to big-endian on architectures other than x86 even if they
are little endian: https://github.com/ImageMagick/ImageMagick/issues/6300

Closes: #152
10 months ago
Johannes Schauer Marin Rodrigues 33139612f8
src/img2pdf_test.py: make endianness dependant on sys.byteorder (closes: #152) 11 months ago
Johannes Schauer Marin Rodrigues 64d27f4a8b
src/img2pdf_test.py: allow Bilevel as well as Grayscale type for png_gray1_img (closes: #161) 11 months ago
Johannes Schauer Marin Rodrigues b25429a4c1
src/img2pdf_test.py: add tests for timestamps 11 months ago
Johannes Schauer Marin Rodrigues 79e9985f35
src/img2pdf_test.py: black 11 months ago
Johannes Schauer Marin Rodrigues 0cbcb8fa12
avoid converting palette PNG with alpha to RGB (closes: #158) 12 months ago
Johannes Schauer Marin Rodrigues 10c6901fa3
src/img2pdf_test.py: do not test the depth attribute and rely on baseDepth
closes: #119
2 years ago
Johannes Schauer Marin Rodrigues 57d7e07e6b
Support imagemagick 7.1.0-48
- the output of -metric PSNR changed
 - CMYK output can now be exactly compared

closes: #148
2 years ago
Johannes Schauer Marin Rodrigues ef7b9e739d add miff tests for cmyk8 and rgb8 2 years ago
Johannes Schauer Marin Rodrigues bad6fcae39 support for MIFF which allows 16 bit CMYK images
closes: #144
2 years ago
Johannes Schauer Marin Rodrigues 244f034a2e
src/img2pdf_test.py: format with black 2 years ago
Johannes Schauer Marin Rodrigues 6cff2931e4
ensure that gif test input uses the same palette for all frames 2 years ago
Johannes Schauer Marin Rodrigues 0732dff0be
src/img2pdf_test.py: make img2pdf path configurable 3 years ago
Johannes Schauer Marin Rodrigues e522ec14d9
remove pdfrw from tests (closes: #108) 3 years ago
Johannes Schauer Marin Rodrigues 9c9e5ece19
src/img2pdf_test.py: add support for imagemagick 7 3 years ago
Tamás Zahola f483638b17 Test cases for transparency 3 years ago
Tamás Zahola 7f216a8848 Test support on macOS 3 years ago
Louis Sautier 152f6fb629
tests: look for sRGB.icc in several paths, skip related tests if not found
Always use Ghostscript's sRGB.icc.
3 years ago
Louis Sautier 1f3b456ac9
tests: don't expect ImageMagick to compress TIFF files by default
This is no longer the case with ImageMagick 7.
3 years ago
Michal Vasilek 4c5b72dab0
src/img2pdf_test.py: skip tests when icc profiles are not present 3 years ago
Michal Vasilek 853a1ec363 src/img2pdf_test.py: do not test format descriptions 3 years ago
Johannes Schauer Marin Rodrigues cd1088a5a9
format with black 3 years ago
Johannes Schauer Marin Rodrigues d08d8c5be9
src/img2pdf_test.py: compare icc images as non-exact 3 years ago
Johannes Schauer Marin Rodrigues 0e4f0047b2
src/img2pdf_test.py: refactor comparison code to remove code duplication 3 years ago
Johannes Schauer Marin Rodrigues 0ce25d08c2
src/img2pdf_test.py: also draw RGB letters to identify colors 3 years ago
Johannes Schauer Marin Rodrigues c5fd43e851
src/img2pdf_test.py: numpy.float got deprecated in NumPy 1.20 3 years ago
Johannes Schauer Marin Rodrigues 454d4e7775
src/img2pdf_test.py: distinguish between depth and baseDepth for tiff_rgb12 and tiff_rgb13 3 years ago
Johannes Schauer Marin Rodrigues cb2243fd10
src/img2pdf_test.py: Pillow >= 8.2.0 only uses half the palette size 3 years ago
Johannes Schauer Marin Rodrigues b8bfa98218
src/img2pdf_test.py: cater for endianess->endianness in 1.0 output format 3 years ago
Johannes 'josch' Schauer 11907242a5
src/img2pdf_test.py: we create our own channel-switching ICC profile 4 years ago
Johannes 'josch' Schauer f0b57985ee
first stab at embedding ICC profiles 4 years ago
Johannes 'josch' Schauer 1ba02bf838
src/img2pdf_test.py: use json output instead of -verbose everywhere (the former is for machines, the latter for human consumption and can change without notice) 4 years ago
Johannes 'josch' Schauer 7da0a00ef3
src/img2pdf_test.py: replace jpg_img check by json output 4 years ago
Johannes 'josch' Schauer 86fddab622
src/img2pdf_test.py: check for JP2 support 4 years ago
Johannes 'josch' Schauer 788102ee05
.travis.yml: use focal 4 years ago
Johannes 'josch' Schauer d92790ad26
try ghostscript version shaningans 4 years ago
Johannes 'josch' Schauer 9bd41dba1e
src/img2pdf_test.py: check that psnr is not zero 4 years ago
Johannes 'josch' Schauer 6c742be642
src/img2pdf_test.py: cater for json output of imagemagick before 6.9.9.34 4 years ago
Johannes 'josch' Schauer c506cf0b8d
try to use json output instead of identify -verbose 4 years ago
Johannes 'josch' Schauer fbb51d9083
tighten minimum imagemagick version for quantum:polarity=min-is-black 4 years ago
Johannes 'josch' Schauer 1d5be0cc9d
src/img2pdf_test.py: also catch subprocess.CalledProcessError 4 years ago
Johannes 'josch' Schauer e151ca27eb
src/img2pdf_test.py: skip tests on win32 and macos 4 years ago
Johannes 'josch' Schauer 7aed0ea0d0
src/img2pdf_test.py: fixes for Ubuntu Trusty 4 years ago
Johannes 'josch' Schauer bed0b4cdae
src/img2pdf_test.py: check for mutool >= 1.10.0 4 years ago
Johannes 'josch' Schauer 11f7db5003
src/img2pdf_test.py: explicitly convert PosixPath to str 4 years ago
Johannes 'josch' Schauer 0992832ab0
src/img2pdf_test.py: explicitly convert PosixPath to str 4 years ago
Johannes 'josch' Schauer 66fd7cc765
rename test.py -> src/img2pdf_test.py 4 years ago