Commit Graph

2059 Commits

Author SHA1 Message Date
Andrew Murray
cbc056f43d Fixed whitespace 2018-04-18 16:00:57 +10:00
Andrew Murray
b33b045e9b Changed test_imagetk to run on Python 3 2018-04-17 14:06:05 +10:00
Alexander
33c0b5df21 use assertRaisesRegex 2018-04-15 23:35:41 +03:00
Alexander
c6f5077afc Merge branch 'master' into lut-numpy 2018-04-15 23:30:40 +03:00
Alexander
497e9d8251 full buffer support 2018-04-15 00:33:15 +03:00
Hugo
7e8998a452 ImageOps.box_blur is deprecated, use ImageFilter.BoxBlur instead 2018-04-14 21:54:40 +03:00
Hugo
f733482c0e Remove workaround for since-fixed scipy regression, to remove recent scipy DeprecationWarning 2018-04-14 21:54:40 +03:00
Hugo
ecc4c7fecc Remove unittest regex deprecation warnings 2018-04-14 21:54:40 +03:00
Alexander
63b243e1f6 color lut numpy tests 2018-04-14 19:17:15 +03:00
Alexander
76e57bbbe2 Better numpy tests skipping 2018-04-14 18:59:57 +03:00
Alexander Karpinsky
b01ba0f50c
Merge pull request #3091 from uploadcare/lut-alter
Transforming LUTs
2018-04-14 18:08:52 +03:00
Alexander
a325559f58 One more test for coverage 2018-04-14 17:47:53 +03:00
Alexander
eae14c56e1 Check exception type only, not string 2018-04-14 17:22:21 +03:00
Alexander
aba478abba Raise error if it is occurred during conversion in getlist 2018-04-14 17:13:05 +03:00
Alexander
daa8e7dacd Add earlier catching of wrong channels count 2018-04-12 12:40:40 +03:00
Alexander
75c76d91e1 Add repr for Color3DLUT 2018-04-12 11:54:54 +03:00
Alexander
fb1d25417e test for wrong channels number in generate 2018-04-11 20:55:35 +03:00
Alexander
ecd0e5e15e check exception type only 2018-04-11 17:31:41 +03:00
Alexander
acfd4845c6 tests 2018-04-11 17:05:48 +03:00
Alexander
70c453b857 rename alter() to transform()
add with_normals argument
docstring
2018-04-11 16:17:10 +03:00
Andrew Murray
05c78a13e7 Changed encoderinfo to have priority over info when saving GIF images 2018-04-11 08:57:31 +10:00
Alexander Karpinsky
e24fad40ad
Merge pull request #3056 from uploadcare/color-LUT
3D Color lookup tables
2018-04-09 10:41:44 +03:00
Hugo
0567a54cd7
Merge pull request #3057 from storesource/RotateImagewithColor
Enabling background colour parameter on rotate
2018-04-05 09:45:22 +01:00
Jon Dufresne
e705cd1476 Fix dereferencing type-punned pointer will break strict-aliasing
Compiler warning appeared as:

src/path.c:574:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                      Py_TYPE(&item)->tp_name);
                      ^~~~~~~

As item is already of type PyObject*, and the Py_TYPE macro is
equivalent to (((PyObject*)(o))->ob_type), no need for the dereference.

https://docs.python.org/3/c-api/structures.html#c.Py_TYPE
2018-04-03 20:42:03 -07:00
Alexander
4231038132 Remove unused imports 2018-04-01 19:52:39 +03:00
Kathryn Davies
8f6be2ee7d Move location of fclose and add dump test. 2018-03-31 21:28:37 -07:00
Alexander
912980c52f Remove Color3DLUT.from_cube_file from сore library 2018-03-31 19:56:09 +03:00
Alexander
805dc44707 improve color cube parser 2018-03-30 11:29:59 +03:00
Alexander
c1b956e3c8 More tests fixes for windows 2018-03-30 10:21:01 +03:00
Alexander
83a5f6e5b5 change file mode 2018-03-30 10:09:22 +03:00
Alexander
e304a0d501 add tests, fix error messages 2018-03-30 09:57:54 +03:00
Alexander
aa929dda98 from_cube_file + test 2018-03-30 02:02:37 +03:00
Alexander
d2a5d1e44d Add tests for some cases and fix bugs 2018-03-29 23:56:51 +03:00
Alexander
622749530b Color3DLUT.generate 2018-03-29 17:26:21 +03:00
Alexander
506995d816 Tests for python API 2018-03-29 16:37:35 +03:00
storesource
79689977cf Remove unnecessary files 2018-03-27 21:05:19 +05:30
storesource
e1229db810
Rename File 2018-03-27 20:07:06 +05:30
storesource
eb3efb2587
Added Files for Rotate Fill tests 2018-03-27 19:52:24 +05:30
storesource
975b7fced5
Split test for fill and no fill
Added a simpler image to compare
2018-03-27 19:48:35 +05:30
storesource
8af7c679ab
Added basic green file for rotate
Making changes according to review
2018-03-27 19:43:04 +05:30
storesource
fa85f112cd
Updating Test
changing from equal to similar
2018-03-27 19:31:58 +05:30
storesource
65c78266ad
RotateImage with fill: Added file for assertion
Fail First: add image for assertion
2018-03-27 18:55:34 +05:30
storesource
bea25dba30
Rotate with fill color unit test
check if hopper image equals hopper45withfill after rotate
2018-03-27 18:41:49 +05:30
Alexander
838a5cffe7 more tests and fixed bug for interpolate4 2018-03-26 23:17:17 +03:00
Alexander
5227c30561 typos 2018-03-26 22:33:22 +03:00
Alexander
5f0b7ee73e More tests 2018-03-26 22:30:55 +03:00
Alexander
b30b2a280f Tests. First part 2018-03-26 19:30:00 +03:00
wiredfool
0e9f07def9
Merge pull request #3042 from hugovk/3006-parser-feed
Fix TypeError for JPEG2000 parser feed
2018-03-21 07:56:23 +00:00
wiredfool
d173e81798
Merge pull request #3023 from kkopachev/issue-3022
Certain corrupted jpegs can result in no data read
2018-03-21 07:55:17 +00:00
wiredfool
f504cbe642
Merge pull request #3007 from jleclanche/feat/blp
Add support for BLP file format
2018-03-21 07:54:29 +00:00
wiredfool
c004b6beaa
Merge pull request #2998 from hugovk/simplify-version-checks
Simplify version checks
2018-03-21 07:50:51 +00:00
Andrew Murray
4a781d0013 Replaced MacOS with macOS 2018-03-19 19:38:17 +11:00
Andrew Murray
2123dd70fb Allow append_images to set .icns scaled images 2018-03-19 19:38:07 +11:00
Hugo
3e6db78f75 Failing test for JPEG2000 parser feed 2018-03-18 11:13:33 +02:00
Hugo
ddc9e73b47
Merge pull request #2965 from vashek/master
Support appending to existing PDFs
2018-03-13 11:30:25 +02:00
hugovk
0b2a77e8e4 Use named version attribute 2018-03-12 10:37:18 +02:00
Jerome Leclanche
ef546cd303 blp: Remove images with unclear licenses 2018-03-12 09:48:13 +02:00
Konstantin Kopachev
5269bbc268
Add truncated jpeg tests 2018-03-07 21:31:51 -08:00
Jerome Leclanche
4d685ac0cd blp: Add more test images 2018-03-06 18:16:26 +02:00
Jerome Leclanche
73d7fff16e blp: Separate BLP1 and BLP2 decoding more cleanly 2018-03-06 18:16:26 +02:00
Jerome Leclanche
adaa703576 Add support for BLP file format 2018-03-06 18:16:26 +02:00
Andrew Murray
c13ccf13a1 Added missing whitespace 2018-03-06 19:53:07 +11:00
Andrew Murray
8116ee3738 Inline comment should start with '# ' 2018-03-04 21:36:34 +11:00
Andrew Murray
f22f1628eb At least two spaces before inline comment 2018-03-04 21:36:33 +11:00
Andrew Murray
2202196162 Flake8 blank line fixes 2018-03-04 21:36:33 +11:00
Dvořák Václav
928bea3002 issue #2959: enhance test, mainly to trigger Appveyor re-build 2018-03-04 00:01:14 +01:00
Dvořák Václav
24ecfe315a issue #2959: fix wrong Parent of pre-existing Page objects when appending 2018-03-03 23:32:47 +01:00
Hugo
4936b447f0
Merge pull request #2985 from Metallicow/trim-trailing-space
Trim trailing whitespace
2018-02-27 12:00:15 +02:00
Dvořák Václav
4cea610f16 issue #2959: oops. sorry. reverting accidental change that broke builds 2018-01-31 23:08:49 +01:00
Dvořák Václav
c15a0b2fce issue #2959: rename pdfParser.py to PdfParser.py 2018-01-31 00:35:55 +01:00
Dvořák Václav
9be8d669f9 issue #2959: changes based on @hugovk's review 2018-01-31 00:25:04 +01:00
Hugo
a852c6186f Basic WAL test 2018-01-29 17:18:06 +02:00
Hugo
8674f71907 File exported from hopper.png using Wally 2018-01-29 15:33:26 +02:00
Metallicow
5e94cd0fc2 Trim trailing whitespace tests dir 2018-01-27 00:07:24 -06:00
Andrew Murray
5e0de38519 Removed duplicate line 2018-01-27 10:09:51 +11:00
Dvořák Václav
ede57b91e0 issue #2959: keep file open, add context manager, add methods to support writing, eliminate the passing of file or buffer 2018-01-26 19:07:43 +01:00
Dvořák Václav
78fe32a431 issue #2959: support streams, add some tests 2018-01-26 17:15:38 +01:00
Dvořák Václav
53ce9ec4fb issue #2959: fix PdfDict attribute access, text decoding, tests 2018-01-26 13:42:11 +01:00
Dvořák Václav
4d3b13fb08 issue #2959: improve Info setting and dumping 2018-01-26 12:11:10 +01:00
Hugo
797d67b9a3
Merge pull request #2974 from wiredfool/webp_leak
Fix memory leak when opening webp files
2018-01-25 10:51:23 +02:00
Dvořák Václav
f9566877f3 issue #2959: fix broken test 2018-01-25 01:19:25 +01:00
Dvořák Václav
95f5c8d4ff issue #2959: move pdfParser self tests to Tests directory 2018-01-25 01:12:32 +01:00
Dvořák Václav
84f87471f5 issue #2959: support io.BytesIO objects 2018-01-25 00:44:59 +01:00
Dvořák Václav
13fe1a5ba7 issue #2959: text string decoding, support for Info dict, updated tests 2018-01-25 00:20:18 +01:00
Eric Soroos
1b06cbc3bb run webp leak check by default 2018-01-24 14:02:58 +00:00
Eric Soroos
379d3ccce2 Fixed up the webp leak check 2018-01-24 14:02:33 +00:00
wiredfool
9a19858fb7
Merge pull request #2938 from uploadcare/tiff-with-optional-channels
Tiff with optional channels
2018-01-24 11:10:18 +00:00
wiredfool
d04380afb6
Merge pull request #2961 from radarhere/assert
Changed assert statements to unittest calls
2018-01-24 10:54:18 +00:00
Dvořák Václav
cfacf8bff8 issue #2959: fix test for nonexistent PDF file 2018-01-24 02:39:15 +01:00
Dvořák Václav
a187a361cb issue #2959: add tests and fixes, text encoding, remove remnants of text writing from PdfImagePlugin 2018-01-24 02:28:39 +01:00
Dvořák Václav
ba211ff549 issue #2959: pdfParser selftest 2018-01-22 21:35:55 +01:00
Andrew Murray
cca94054aa Changed assert statements to unittest calls 2018-01-17 22:01:37 +11:00
Andrew Murray
4afed260dc Updated freetype to 2.9 2018-01-13 06:26:42 +11:00
Alexander
dc127273f4 Add RGBXX RGBXXX YCbCrXX YCbCrXXX rawmodes for TIFFs 2018-01-07 17:23:05 +03:00
Andrew Murray
4d3339b703 Added tests 2018-01-05 11:26:24 +11:00
Andrew Murray
30b2ddd070 Removed duplicate imports 2018-01-04 15:40:46 +11:00
Andrew Murray
62b2bdf909 Removed unused imports 2018-01-04 14:56:18 +11:00
Andrew Murray
1c60473488 Updated paths for src directory 2017-12-31 07:11:26 +11:00
Andrew Murray
6c61de97ad Added GD tests 2017-12-30 19:31:33 +11:00
Hugo
cc35bd70bc No need to run coverage on dev machines 2017-12-28 14:49:47 +00:00
Hugo
7df920303c Remove nose-specific code 2017-12-28 14:48:19 +00:00
Hugo
b55ea4014e Calls pytest directly 2017-12-28 14:48:19 +00:00
hugovk
5592163564 pytest no longer supports EOL Python 3.3 2017-12-28 14:48:19 +00:00
hugovk
20d00c5fe9 Update test instructions 2017-12-28 14:48:19 +00:00
hugovk
e30433e4b2 Test testing with pytest 2017-12-28 14:48:19 +00:00
wiredfool
49bd3232e5
Merge pull request #2899 from wiredfool/pr_2882
Run all compressed tiffs through libtiff
2017-12-27 20:39:51 +00:00
wiredfool
ff13d184d8
Merge pull request #2902 from wiredfool/pr_2388
Add disposal option when saving GIFs
2017-12-27 12:15:00 +00:00
wiredfool
bbe8076d67
Merge pull request #2903 from radarhere/eps
Allow for an empty line in EPS header data
2017-12-27 12:13:54 +00:00
wiredfool
bd5f99f19d
Merge pull request #2898 from wiredfool/pr_2790
Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk
2017-12-27 12:12:57 +00:00
Andrew Murray
e107ed6fcf Allow for an empty line in EPS header data 2017-12-24 21:12:48 +11:00
wiredfool
48260643d7 force range to a tuple, py3 2017-12-21 22:42:34 +00:00
wiredfool
378f74672c Added per-frame disposal, tests 2017-12-21 22:26:58 +00:00
linnil1
5b5d47863e Add dispose test 2017-12-21 22:06:59 +00:00
wiredfool
97ee3dd12b
Merge pull request #2583 from wiredfool/decompression_bomb_error
Decompression bomb error
2017-12-20 20:31:38 +00:00
Eric Soroos
768668c1d7 Added RGB*;16N Unpackers 2017-12-20 13:53:14 +00:00
Eric Soroos
e617d05b9e These tests/features now require libtiff 2017-12-20 12:22:28 +00:00
Eric Soroos
4b4f7d6a2c Refactor to use features 2017-12-20 12:21:33 +00:00
Eric Soroos
d698d522ef Added end to end tests in test_file_libtiff 2017-12-20 12:09:26 +00:00
Eric Soroos
4877552581 Read all compressed files through libtiff. 2017-12-20 11:55:40 +00:00
Eric Soroos
bec8f415be end to end test helper, more end to end tests for tiffs 2017-12-20 11:55:40 +00:00
Tomasz Jezierski
bc6683cecf tiff-colors-fix test adjust 2017-12-20 11:54:26 +00:00
Eric Soroos
a96ac321d5 merge error 2017-12-20 11:45:52 +00:00
Eric Soroos
25d961238c Added sRGB and cHRM chunks to PngInfo, added tests for #2782 2017-12-20 11:35:11 +00:00
Eric Soroos
1ea128c8a7 refactor out get_chunks 2017-12-20 11:33:22 +00:00
wiredfool
c4a91f05ef
Merge pull request #2894 from hugovk/avoid-random-noise-failure
Test: avoid random noise failure
2017-12-20 09:26:49 +00:00
wiredfool
1f749a88ee
Merge pull request #2896 from wiredfool/eps-test-arch
Bumped epsilon -- arch is showing 5.6 rather than <5
2017-12-19 19:39:12 +00:00
Eric Soroos
e5aa9d5f8b Bumped epsilon -- arch is showing 5.6 rather than <5 2017-12-19 16:20:36 +00:00
wiredfool
09c8b06f4c
Merge pull request #2890 from jdufresne/add-text-bool
Make PngImagePlugin.add_text() zip argument type bool
2017-12-19 15:50:01 +00:00
wiredfool
c94484ecab
Merge pull request #2880 from radarhere/webp
Updated libwebp to 0.6.1
2017-12-19 15:47:13 +00:00
Hugo
070e66fe7b flake8 2017-12-19 17:16:15 +02:00
Hugo
8adab0ec0d Noise effect: take five pixels, assert not all same 2017-12-19 17:12:58 +02:00
Hugo
11a2026f12 flake8 2017-12-19 15:12:02 +02:00
Hugo
c8eebc1dc7 Re-roll in case of identical noise 2017-12-19 15:06:43 +02:00
Jon Dufresne
c5a0d72c10 Remove unnecessary bool() calls throughout project
Can use truthy values in boolean expressions without first coercing to a
bool. Removes unnecessary call to bool().
2017-12-16 09:34:12 -08:00
Jon Dufresne
8844e2dd71 Make PngImagePlugin.add_text() zip argument type bool
Always used as a bool, but was previously defined as 0/1. Use modern
idiomatic Python by using the bool type for bool arguments.
2017-12-16 09:13:45 -08:00
wiredfool
9ed4ea9e47
Merge pull request #2883 from uploadcare/tiff-wrong-bitspersample
Fix count of BITSPERSAMPLE items in broken TIFF files
2017-12-09 14:32:47 +00:00
wiredfool
588944c4a8
Merge pull request #2852 from wiredfool/issue_2837
Fillcolor parameter for Transform
2017-12-09 14:15:41 +00:00
wiredfool
dcb8d6f0b8
Merge pull request #2862 from wiredfool/difference-upload
Display differences for test failures
2017-12-09 14:14:25 +00:00
Alexander
ce151bcd72 add test for this case 2017-12-08 17:32:39 +03:00
Andrew Murray
97dba99805 Increased average pixel value difference to allow for libwebp 0.6.1 2017-12-07 00:46:56 +11:00
wiredfool
9a7fbdf323 disable intentionally failing tests 2017-11-25 11:01:33 +00:00
Eric Soroos
5a8fd796e9 install the difference engine 2017-11-17 19:47:05 +00:00
wiredfool
669fd6a600
Merge pull request #2835 from radarhere/generator
Added support for generators when using append_images for WEBP
2017-11-13 13:20:08 +00:00
Eric Soroos
fa9e9c2795 remove duplicate test 2017-11-13 11:59:26 +00:00
Eric Soroos
52b6894865 parameter name change 2017-11-13 11:59:12 +00:00
wiredfool
dce04b680b Pass in fill color to transform. 2017-11-11 16:47:31 +00:00
Andrew Murray
28119dd68d Changed test to use tempfile 2017-11-08 12:59:05 +11:00
Andrew Murray
bfaa0a1f07 Added support for generators when using append_images for WEBP 2017-11-06 20:06:50 +11:00
Andrew Murray
6c6f95f1d6 Removed unnecessary code 2017-11-06 19:54:15 +11:00
wiredfool
a3a9faf3a2
Merge pull request #2761 from monolithlabs/animated_webp
Add support for animated WebP files
2017-11-05 15:34:50 +00:00