Commit Graph

1383 Commits

Author SHA1 Message Date
homm
1477fbc07a update tests, add comments 2016-12-02 02:59:40 +03:00
homm
6def4bfc73 roi → box 2016-11-30 20:01:28 +03:00
homm
44e443fa75 fix int boundaries 2016-11-26 01:38:55 +03:00
homm
ef787bc3f5 use ROI in precompute_coeffs 2016-11-24 06:11:36 +03:00
homm
a1fedc0f8a expose roi to precompute_coeffs (still noop) 2016-11-24 06:05:20 +03:00
homm
338610b112 nearest and copy ROI 2016-11-24 05:12:41 +03:00
homm
f828416752 add roi argument to Image.resize() method
constraints check
2016-11-24 04:40:54 +03:00
homm
bcb6d606a2 fix typo! 2016-11-24 04:07:06 +03:00
homm
d4784bffb2 return copy of the image if size matches 2016-11-24 03:30:36 +03:00
homm
9947794ccd fix spelling error 2016-11-24 03:09:34 +03:00
Hugo
6fa7f3fc67 Merge pull request #2241 from wiredfool/sunrle
SunImagePlugin fixes
2016-11-23 16:10:17 +02:00
wiredfool
212508b3f2 Review comments 2016-11-23 05:33:02 -08:00
wiredfool
620d082457 Merge pull request #2240 from uploadcare/draft-min-scale
Use minimal scale for jpeg drafts
2016-11-22 15:22:59 +00:00
wiredfool
82caa13a02 Additional test images for sun raster files 2016-11-22 07:19:58 -08:00
Jon Dufresne
dbe9f85c7d Drop support for Python 2.6
* Drop unittest2 requirement
* Use set literals
* Use dict/set comprehension
* Use str.format() automatic numbering
2016-11-22 04:23:55 -08:00
wiredfool
87b8d2894a Merge pull request #2227 from radarhere/fpname
Fixed bug in saving to fp-objects in Python >= 3.4
2016-11-22 12:03:25 +00:00
homm
55fca4857c protect .draft() from second call 2016-11-22 04:28:04 +03:00
homm
8f6b7b258b use minimal scale for jpeg downscaling 2016-11-22 04:00:49 +03:00
wiredfool
318ff7d332 fixed support for hopper.ras, and other RGB sun raster files 2016-11-19 19:43:43 -08:00
wiredfool
e43c91cf1c Working 1 bit sun_rle raster file 2016-11-19 19:16:46 -08:00
Andrew Murray
38fd77ca7d Fixed bug in saving to fp-objects in Python >= 3.4 2016-11-15 20:13:25 +11:00
Jon Dufresne
ffa5bc2726 Use generator expressions instead of list comprehension
Avoids unnecessary temporary lists in memory.
2016-11-14 18:11:15 -08:00
Andrew Murray
b6a4d9bc94 Added test 2016-11-15 06:38:54 +11:00
wiredfool
8c36cd09f7 Merge pull request #2221 from jmerdich/master
Add support for another type of BMP bitfield
2016-11-14 16:13:10 +00:00
Jake Merdich
991df9b87a Update test image for xbgr bmp files 2016-11-14 10:26:57 -05:00
Jake Merdich
e63b97ea42 Add testing for bmp 'questionable' files 2016-11-14 10:10:56 -05:00
Andrew Murray
3dcef86fe5 Added missing top-level test code 2016-11-14 21:12:25 +11:00
wiredfool
9ee19f2aa9 Merge pull request #2182 from wiredfool/pyside_segfault
Fix for ImageQt Segfault
2016-11-11 17:00:27 +00:00
Jon Dufresne
f041188050 Replace try/except/fail pattern with TestCase.assertRaises()
Replace pattern with the builtin support for asserting exceptions.
2016-11-06 13:43:09 -08:00
Hugo
48b72eac34 Merge pull request #2184 from jdufresne/isinstance
Replace type() equality checks with isinstance
2016-11-01 19:07:06 +02:00
Jon Dufresne
a33939f5c3 Remove unused, open files at top level of tests.
The data read from the file was unused. The files remained opened and
were never explicitly closed.

Fixes some instances of warnings during tests:

"ResourceWarning: unclosed file ..."
2016-11-01 06:34:17 -07:00
Jon Dufresne
e44bb42ae9 Replace type() equality checks with isinstance 2016-10-31 06:41:43 -07:00
wiredfool
8582144e0e Fix for issue #1370, Segfault using QImages due to not retaining the data 2016-10-27 14:11:06 -07:00
Jon Dufresne
7992d2a65a Fix BytesWarning discovered while running tests
Discovered using the command:

python -b -m nose -vx Tests/test_*.py
2016-10-22 12:35:44 -07:00
Alexander Karpinsky
5a359fbf28 Fix coefficients calculation (#2162)
Fix coefficients calculation

* test for regression

* detailed comments what is going on
prevent setting the `k[-1]` item

* more readable
2016-10-17 01:31:45 -07:00
homm
923f0bb9b3 improve test 2016-10-04 03:11:53 +03:00
homm
c5e111e6b8 allow lists as arguments for Image.new 2016-10-04 03:06:35 +03:00
wiredfool
22ff3f4358 Vulnerable map function is not called on windows 2016-10-03 07:42:48 -07:00
wiredfool
aa8cfce94c IOError is also a valid error here 2016-10-03 07:33:29 -07:00
wiredfool
b3ad80a2bd Image.core.open_ppm has been removed. Test the Storage.c fix with an alternate method. Assert that the ordinary opener rejects the negative size in the PPM file 2016-10-03 07:27:02 -07:00
wiredfool
445451c0b9 Added common check for size tuple errors 2016-10-03 07:27:02 -07:00
wiredfool
c50ebe6459 Map.c overflow fixes 2016-10-03 07:27:02 -07:00
wiredfool
5d8a0be45a Memory error in Storage.c when accepting negative image size arguments 2016-10-03 07:27:02 -07:00
wiredfool
d9fc1848a2 Merge pull request #2140 from SemanticsOS/lambdafu/tiff-multipage
Add TIFF save_all writer.
2016-10-03 06:31:39 -07:00
wiredfool
2db3f00e92 Merge pull request #2141 from wiredfool/tiff_fd
Move libtiff fd duplication to _load_libtiff
2016-10-03 06:03:50 -07:00
wiredfool
f8e6953e6e Merge pull request #2133 from wiredfool/gif-optimize-perf
Speed up GIF save optimization step
2016-10-03 06:03:12 -07:00
wiredfool
9440764863 Merge pull request #2131 from wiredfool/imagecms-segfault
Fix for ImageCms Segfault
2016-10-03 06:02:39 -07:00
wiredfool
ab29e2fa24 Merge pull request #2138 from wiredfool/issue_1077
Make Image.crop an immediate operation, not lazy.
2016-10-03 06:01:34 -07:00
Andrew Murray
4c28926da3 Fixed typos 2016-10-02 21:31:53 +11:00
wiredfool
b81da5a322 Tests for issue #1651 2016-09-29 22:29:19 +01:00