Commit Graph

1348 Commits

Author SHA1 Message Date
wiredfool
35068e35d1 Merge pull request #2057 from arjennienhuis/RGBa
Add (un)packing between RGBA and BGRa
2016-08-25 12:31:23 +01:00
wiredfool
0444b4935b Merge pull request #2061 from wiredfool/j2k-access
Added return for J2k (and fpx) Load to return a pixel access object
2016-08-25 12:26:18 +01:00
homm
5c0eb2c365 normalize coefficients in normalize_coeffs_8bpc
increase precision of negative filter lobes. Add test
2016-08-25 04:11:02 -07:00
wiredfool
b77adf4692 Merge pull request #2090 from wiredfool/pr_2083
Skip failing numpy tests on Pypy <= 5.3.1
2016-08-25 11:57:57 +01:00
wiredfool
21209769bd More specific test 2016-08-25 03:55:50 -07:00
wiredfool
e980ca7896 Merge pull request #2010 from uploadcare/jpeg-raise-on-alpha
Show warning when trying to save RGBA image as JPEG
2016-08-25 11:41:49 +01:00
wiredfool
5d2667efda Merge pull request #2022 from uploadcare/rotation-pixel-center
Respect pixel centers during transform
2016-08-25 11:40:09 +01:00
wiredfool
30abb42c27 More specific version of pr #2083 2016-08-25 03:22:20 -07:00
Matthew Brett
824a0c232c BF: fix conversion of bit images to numpy arrays
Numpy cannot form arrays from bits.  To convert bit images to numpy,
convert bits to bytes.

From suggestion by Alexander Karpinsky, with thanks.

Fixes gh-350.
2016-08-17 18:47:14 -07:00
Arjen Nienhuis
67eb7a3dc2 Ignore PyPy numpy errors 2016-08-17 23:25:52 +02:00
Andrew Murray
61972f03ec Fixed typos [ci skip] 2016-08-13 12:32:13 +10:00
homm
193c756139 return implicit RGBA to JPEG save, raise warning 2016-08-09 03:11:35 +03:00
wiredfool
cf27e03dcd Added return for J2k (and fpx) Load to return a pixel access object 2016-08-08 07:36:34 -07:00
Arjen Nienhuis
28ede3a327 Merged BGRa test into Tests/test_lib_pack.py 2016-08-08 00:07:08 +02:00
Arjen Nienhuis
916ea94052 Add packing from RGBA to BGRa 2016-08-07 15:34:45 +02:00
homm
1b54e01736 Revert "temporary disable PCX P mode test due to errors in codec"
This reverts commit afff487084.
2016-08-07 13:48:01 +03:00
homm
993e49c0be Merge branch 'master' into rotation-pixel-center 2016-08-07 13:47:16 +03:00
Arjen Nienhuis
2ecbcce415 add unpacking from BRGa 2016-08-07 13:32:19 +03:00
wiredfool
ffa18c8efd Merge pull request #2011 from vlmath/master
Add ImageOps.scale to expand or contract a PIL image by a factor
2016-08-06 22:19:50 +01:00
wiredfool
879f864cd1 Merge pull request #2050 from hugovk/flake8
flake8 tests
2016-08-06 22:13:41 +01:00
wiredfool
0a8385f5e0 Merge pull request #2041 from uploadcare/pcx-encoding
PCX encoding fixes
2016-08-06 22:09:22 +01:00
Alexander Karpinsky
bc2c933552 Merge pull request #2052 from uploadcare/rotate-loading
Fix image loading when rotating by 0 deg
2016-08-05 19:35:06 +03:00
homm
3185262e31 fix image loading when rotating by 0 deg 2016-08-05 19:20:02 +03:00
hugovk
2c4a1209f4 flake8 2016-08-04 09:40:12 +03:00
homm
467f6cfcbb rename test 2016-07-29 12:47:36 +03:00
homm
978c37d699 add tests for different PCX encoding cases 2016-07-28 05:29:24 +03:00
homm
7a4847f457 all literals are bytes 2016-07-12 22:54:15 +03:00
homm
107307dfc9 do not use as_dict anywhere in tests except tests for as_dict warnings 2016-07-12 21:34:15 +03:00
homm
c2b4ff5fa4 skip empty values in ImageFileDirectory 2016-07-12 18:09:02 +03:00
homm
afff487084 temporary disable PCX P mode test due to errors in codec 2016-07-11 05:25:47 +03:00
homm
2221a6467c fix test which relied on old bugs 2016-07-11 01:47:25 +03:00
homm
5b8c8aa389 improve resize test 2016-07-11 00:47:58 +03:00
homm
1321713688 repeat all affine tests with PERSPECTIVE 2016-07-11 00:26:12 +03:00
homm
ad3f7238d2 add translate tests 2016-07-10 21:48:19 +03:00
homm
ac747d2290 resize transform tests 2016-07-10 16:09:33 +03:00
homm
2522101ed7 tests for 90 degree transformation 2016-07-10 15:23:01 +03:00
homm
1ba4e9e5ba remove end of file banner from all files 2016-07-10 14:11:28 +03:00
Marco De Donno
f19c52b5d5 Code style update 2016-07-06 10:21:00 +02:00
Marco De Donno
7d8fea012b Code style update 2016-07-06 01:32:16 +02:00
Marco De Donno
4d51a410d8 Add the test for factor = 1 and -1 2016-07-05 20:46:47 +02:00
Marco De Donno
7af3c4c3bc Add test for the ImageOps.scale function 2016-07-05 20:15:14 +02:00
wiredfool
e8c123c833 Merge pull request #1959 from uploadcare/new-filters
Add Box and Hamming filters for resampling
2016-07-05 12:25:57 +01:00
homm
af75f7ab40 test for reference counting 2016-07-05 00:17:11 +03:00
homm
c1da18e0ad do not allow to save images discarding alpha channel 2016-07-03 05:40:34 +03:00
homm
c36c5fcf0f fix access tests:
clean up global variable Image.USE_CFFI_ACCESS after tests
do not run tests twice via `test_put` and `test_get`
2016-07-03 04:33:14 +03:00
homm
66715246c1 remove mitchell filter. Has no advantages over bicubic 2016-07-02 01:54:39 +03:00
homm
a67e5453d5 add tests, fix errors ) 2016-07-02 01:54:39 +03:00
wiredfool
d553a9d603 Merge pull request #1996 from uploadcare/test-for-1986
Improve test for #1986
2016-06-30 20:16:54 +01:00
wiredfool
6c5cf14596 Merge pull request #1995 from wiredfool/move_j2k_check
Move test_j2k_overflow to check_j2k_overflow
2016-06-30 15:35:42 +01:00
wiredfool
3cb13f99cf rename large memory tests to remove test from name 2016-06-30 07:30:38 -07:00
wiredfool
872fd0652e Merge pull request #1846 from wiredfool/pr_1826
EPS + CMYK
2016-06-30 15:23:24 +01:00
wiredfool
da04d32a5b Merge pull request #1997 from wiredfool/32bit_test_precision
Fix 2 more failing tests on 32 bit due to float precision
2016-06-30 15:06:04 +01:00
homm
9c3bd46b36 improve test: compare all pixels, do not take color into account 2016-06-30 16:59:04 +03:00
Alexander Karpinsky
92660a1a05 Merge pull request #1986 from didrix/fix-1979-p2la
Fix issue converting P mode to LA
2016-06-30 17:43:53 +04:00
wiredfool
c057c4238e Fix 2 more failing tests on 32 bit due to float precision 2016-06-30 06:38:31 -07:00
wiredfool
5b13c38dd8 move overflow test to check, it is a DOS on 32bit machines 2016-06-30 06:28:29 -07:00
Alexander Karpinsky
639bdd3c02 Merge pull request #1991 from kkopachev/png-crc-error-ignore
Ability to skip crc checks for ancillary chunks
2016-06-30 17:25:04 +04:00
wiredfool
291c00c58a Merge pull request #1954 from uploadcare/skip-resampling-passes
Do not do unnecessary passes on resizing
2016-06-30 12:23:07 +01:00
Konstantin Kopachev
5f2fe6083c
CR feedback: don't use lambda 2016-06-29 17:29:55 -07:00
Konstantin Kopachev
885297d21f
Fix python 3 bytes to string concat error 2016-06-29 14:44:29 -07:00
wiredfool
41a747300f Merge pull request #1990 from AbdealiJK/ajk/test
test_imagecms: Reduce precision of extended info
2016-06-29 22:44:16 +01:00
wiredfool
ffcc067038 Merge pull request #1988 from wiredfool/iccprofile
Binary Tiff Metadata/ICC profile.
2016-06-29 22:35:03 +01:00
wiredfool
0ddb0f3c7f Merge pull request #1970 from uploadcare/ignore-decompression-dos
Ignore large text blocks in PNG if LOAD_TRUNCATED_IMAGES is enabled
2016-06-29 22:32:35 +01:00
Konstantin Kopachev
c3b970f046
Ability to skip crc checks for ancillary chunks 2016-06-29 12:24:37 -07:00
AbdealiJK
356926f825 test_imagecms: Reduce precision of extended info
In 32bit computers (when making wheels) it was found that the
precision of the extended information in test_extended_information() was
found to be lesser than what was being tested. This commit adds a helper
function which reduces the precision by truncating (multiplying by
10 ** digits, truncating to int and dividing by 10 ** digits) and then
testing the rtruncated numbers rather than the original numbers.
2016-06-28 21:14:34 +05:30
Diederik Veeze
95de0b6d05 Testing for p2la 2016-06-26 13:23:42 +02:00
wiredfool
c50503a14d API change/revert: Bytes should be returned as a single byte string, not a tuple of integers 2016-06-26 12:06:56 +01:00
wiredfool
a64c1674a1 Tests for issue #1462, #1834, #1831, #1910 2016-06-26 12:05:05 +01:00
wiredfool
1e2a27f00d Fixed broken test re: https://github.com/python-pillow/Pillow/issues/1462#issuecomment-210487186 2016-06-26 12:02:45 +01:00
wiredfool
97dbb5cd33 Merge pull request #1977 from kkopachev/jpeg-junk-header
Skip extra 0xff00 in jpeg
2016-06-25 15:30:19 +01:00
wiredfool
c1d25d9062 Merge pull request #1985 from wiredfool/palette
Use bytearray for mutable palette storage
2016-06-25 15:14:07 +01:00
wiredfool
95874635e1 Merge pull request #1984 from wiredfool/pr_1824
Pr 1824 rebase
2016-06-25 15:01:34 +01:00
wiredfool
0bc06f7944 Fix filename on py2.6 2016-06-25 14:50:40 +01:00
wiredfool
9e1b4aba9a These modes upconvert to 32bit I 2016-06-25 14:33:26 +01:00
Bryant Mairs
4f2836e218 Move constant to module level. 2016-06-25 12:20:37 +01:00
Bryant Mairs
7d5856bdf7 Corrects fromarray() datatype mapping for integer datatypes.
Currently failing for int16LE as of this commit.
2016-06-25 12:20:37 +01:00
Bryant Mairs
7fb24e8af0 Add test for reading and writing uint16 TIFFs. 2016-06-25 12:20:37 +01:00
Bryant Mairs
f51e90bf33 Create named constant for repeated values. 2016-06-25 12:19:12 +01:00
Bryant Mairs
51247fb7f0 Test all applicable numpy datatypes for Image.fromarray() 2016-06-25 12:19:12 +01:00
wiredfool
6a3acde001 Merge pull request #1909 from uploadcare/png-icc-profile
Get ICC profile from `encoderinfo` while PNG saving
2016-06-25 11:01:53 +01:00
Konstantin Kopachev
c8f93c979c
Skip extra 0xff00 in jpeg 2016-06-22 13:36:23 -07:00
homm
95402143fe ignore large text blocks in PNG if LOAD_TRUNCATED_IMAGES is enabled 2016-06-20 17:33:10 +03:00
homm
78fad0f819 Do not make unnecessary passes on resizing 2016-06-15 01:04:02 +03:00
Andrew Murray
3c2e374824 Added test 2016-06-09 22:28:29 +01:00
wiredfool
62551a8b49 Merge pull request #1933 from uploadcare/resample-vertical-pass
Resample horizontal + vertical pass
2016-06-08 14:14:41 +01:00
homm
f09067e45e add La mode (2 bands) to the test 2016-05-28 10:47:14 +03:00
homm
a1b12f792a improve CoreResampleAccuracy test. Use all bands configurations 2016-05-27 07:09:49 +03:00
homm
edc9880b61 accept RGBa and La modes for blur 2016-05-27 03:16:48 +03:00
wiredfool
13b8c1c70b test the output for a CMYK EPS image 2016-05-26 22:06:10 +01:00
wiredfool
3657bc10a6 Merge pull request #1889 from rr-/libpngquant
Add libimagequant support in quantize()
2016-05-26 21:12:25 +01:00
rr-
db989ad99b Add perceptive comparisons to quantization tests 2016-05-26 17:23:43 +02:00
homm
c4b92d09b7 support for La mode 2016-05-26 15:15:08 +03:00
homm
1ed5c59f23 tests for LA modes 2016-05-26 15:15:08 +03:00
homm
8947485e71 test dirty pixels 2016-05-26 15:15:08 +03:00
homm
05d1022e99 test for levels 2016-05-26 15:15:08 +03:00
homm
5ffd9e53bc use calloc and INT_MAX 2016-05-26 02:28:35 +03:00
homm
555d2ace49 add test for L 2016-05-26 02:07:56 +03:00
homm
f44a7f8b11 implement round
fix windows build
2016-05-26 02:07:56 +03:00
homm
e47002dec3 tests for 32bit modes 2016-05-26 02:07:56 +03:00
homm
9618ec98b8 test for consistency 2016-05-26 02:07:56 +03:00