Commit Graph

2778 Commits

Author SHA1 Message Date
wiredfool
cdaa448782 Merge pull request #2389 from hugovk/outline
Test ImageDraw.Outline and and ImageDraw.Shape
2017-02-06 16:57:18 +00:00
wiredfool
b93025fa5b Merge pull request #2380 from evalapply/master
BUG fix: '' in image mode no longer causes a crash
2017-01-31 19:03:29 +00:00
hugovk
96dfd722c3 Test ImageDraw.Outline curve 2017-01-31 08:22:33 +02:00
hugovk
008431fe0e Test ImageDraw.Outline curve 2017-01-30 21:50:48 +02:00
Hugo
04e3f585b0 Test no change with identity matrix 2017-01-30 14:28:00 +02:00
Hugo
7fba16b074 Test for similarity 2017-01-30 14:27:29 +02:00
hugovk
07af06bf8c Expose and test radial_gradient 2017-01-29 18:44:24 +02:00
hugovk
3ead178d18 flake8 2017-01-29 18:38:06 +02:00
hugovk
47b1c66961 Expose and test linear_gradient 2017-01-29 18:17:31 +02:00
hugovk
fdf0737fcd Test matrix convert for ValueError: image has wrong mode 2017-01-29 15:55:17 +02:00
hugovk
90dac5f4dc Refactor and test matrix convert with RGB and L modes 2017-01-29 14:24:49 +02:00
hugovk
cea36587ab Test matrix convert 2017-01-29 14:03:38 +02:00
Lukasz Kozuchowski
3e317f3ca0 Empty image mode test 2017-01-29 07:50:28 +01:00
Jarkko Pöyry
fa56b3d255 Add tests for CMS transform auxiliary channel preservation. See bug #1662. 2017-01-28 22:04:49 +02:00
Andrew Murray
e67ee44ea8 Added test for missing method data in Image transform 2017-01-28 14:21:41 +11:00
Andrew Murray
cd114cef3f Added test for Image fromstring NotImplementedError 2017-01-28 14:16:39 +11:00
Andrew Murray
2039d43d85 Added test for unknown filter in Image resize 2017-01-28 14:09:28 +11:00
Andrew Murray
01cb6590a4 Added test for point operation on F mode image 2017-01-28 14:02:22 +11:00
Andrew Murray
e8495e5917 Added test for abbreviated Image paste mask syntax 2017-01-28 13:50:44 +11:00
Andrew Murray
581fef2ebd Added test for Image offset NotImplementedError 2017-01-28 13:06:28 +11:00
Jon Dufresne
cecdb2af61 Send unwanted subprocess output to /dev/null
Avoids unnecessary creation of temporary files as well as unnecessarily
storing process output in memory. The temporary files would sometimes
remain and not be cleaned up.
2017-01-26 17:31:29 -08:00
wiredfool
2df28a6601 Merge pull request #2347 from radarhere/icc_profile
Moved iCCP chunk before PLTE chunk when saving as PNG
2017-01-26 14:26:25 +00:00
wiredfool
a62f2c5b44 Merge pull request #2365 from SemanticsOS/lambdafu/dpiresolution
Default to inch-interpretation for missing ResolutionUnit in TiffImagePlugin
2017-01-26 14:22:32 +00:00
wiredfool
2d06d8550f Merge pull request #2359 from wiredfool/issue_1902
Fix for issue ImageTk Integer Overflow error
2017-01-26 14:12:32 +00:00
Eric Soroos
e66271d464 added tests for functionality in ImageTk 2017-01-26 05:31:45 -08:00
Andrew Murray
f0480de118 Restricted PNG encoderinfo chunks to valid values when saving 2017-01-21 16:57:03 +11:00
Andrew Murray
ded14572a1 Added more tests for PNG chunk ordering 2017-01-21 14:47:59 +11:00
Andrew Murray
361f579579 Moved iCCP chunk before PLTE chunk when saving as PNG 2017-01-21 13:32:22 +11:00
Eric Soroos
94cc72a2ba disable tests broken on old system versions of numpy/scipy 2017-01-20 11:35:49 -08:00
Hugo
bceee54895 Prevent nose -v printing docstrings (#2369) 2017-01-20 19:10:02 +00:00
Marcus Brinkmann
8a9bd2cdcd Default to inch-interpretation for missing ResolutionUnit in TiffImagePlugin. 2017-01-19 17:24:28 +01:00
Andrew Murray
b82151f281 Removed unused division import 2017-01-18 20:06:47 +11:00
Andrew Murray
c168f01111 Removed imports used only by comments 2017-01-18 20:06:47 +11:00
Andrew Murray
97a2d42dac Removed unused print_function imports 2017-01-18 20:06:21 +11:00
wiredfool
c1b510c72c Merge pull request #2307 from radarhere/contextmanagers
Added context managers
2017-01-17 13:20:41 +00:00
Andrew Murray
89742225bf Fixed test coverage 2017-01-07 13:20:16 +11:00
Andrew Murray
2a93cdb698 Simplified assertEqual checks to assertTrue 2017-01-07 11:35:09 +11:00
Luis G
dad5971561 Add unit tests
Add unit tests for registered_extensions
2017-01-07 11:32:16 +11:00
Andrew Murray
c5265e2100 Added test for crop operation with no argument 2017-01-03 13:30:09 +11:00
wiredfool
45138fec9b Added output checked tests for rotate with center and translate 2017-01-01 11:09:06 +00:00
wiredfool
7228de1491 test image 2016-12-31 19:31:02 +00:00
wiredfool
5fda1a803a Added resample target test 2016-12-31 19:30:26 +00:00
wiredfool
cc1ba56c28 Refactor tests 2016-12-31 19:12:39 +00:00
Marcus Brinkmann
90077b3975 Add center and translate option to Image.rotate. 2016-12-31 19:01:09 +00:00
wiredfool
5269828d3a Test: Relax WMF test condition, fixes #2323 2016-12-31 17:38:35 +00:00
wiredfool
c7df6287fa Merge pull request #2262 from wiredfool/zero_size
Allow 0 size images, Fixes #2259
2016-12-31 16:35:14 +00:00
wiredfool
20abc9cdfe Fix size check on expan for image_rotate 2016-12-31 13:31:51 +00:00
wiredfool
7d59183c1d Zero image size test 2016-12-31 13:19:29 +00:00
wiredfool
0a922b962f tests for basic operations on 0x0 images 2016-12-31 13:19:29 +00:00
wiredfool
69bea50810 Allow 0 size images, Fixes #2259 2016-12-31 13:19:29 +00:00
wiredfool
3d185ee857 added tests for sgi writing 2016-12-31 12:29:10 +00:00
wiredfool
95888466c8 Added correctness tests for opening SGI images 2016-12-30 22:20:46 +00:00
Andrew Murray
a06dd59df7 Added context managers 2016-12-28 09:54:10 +11:00
wiredfool
944a470a79 Merge pull request #2312 from wiredfool/pr_2298
List of individual frame durations for saving animated gifs. #2298
2016-12-27 12:00:40 +00:00
wiredfool
f36a04570f Merge pull request #2313 from wiredfool/pr_2196
Unified different GIF optimize conditions #2196, Test for #2196
2016-12-27 11:53:50 +00:00
wiredfool
915270ef6f test for issue #2195 2016-12-27 03:33:20 -08:00
wiredfool
e530f2a228 Added tuple option for durations 2016-12-27 03:04:37 -08:00
wiredfool
87092ad4f8 can pass list of integer to set different duration for each frame when saving GIF 2016-12-27 02:44:05 -08:00
Alessio Sergi
7e8a6c61f8 Use pathlib2 for Path objects on Python < 3.4
The pathlib backport module is no longer maintained. The development
has moved to the pathlib2 module instead.

Quoting from the pathlib's README:
"Attention: this backport module isn't maintained anymore. If you want
to report issues or contribute patches, please consider the pathlib2
project instead."

Other projects have already switched to pathlib2, most notably IPython
and its dependencies.
2016-12-17 18:50:50 +01:00
wiredfool
80b78be21a Merge pull request #2199 from jdufresne/dep-olefile
Remove vendored version of olefile Python package in favor of upstream
2016-12-13 20:12:29 +00:00
wiredfool
55f7a736a4 Merge pull request #2234 from radarhere/print
Updated comments to use print as a function
2016-12-13 20:00:25 +00:00
wiredfool
9f711ea59a Merge pull request #2286 from hugovk/change-freetype2.7-epsilon
Increase epsilon for FreeType 2.7
2016-12-13 19:54:00 +00:00
wiredfool
86ff654487 Merge pull request #2279 from uploadcare/fast-assert_image_similar
Fast assert_image_similar
2016-12-13 19:52:50 +00:00
hugovk
acf68c835c Increase epsilon for FreeType 2.7 2016-12-12 15:16:43 +02:00
Andrew Murray
41e492b026 Removed use of spaces in TIFF kwargs, deprecated in 2.7 2016-12-09 20:44:42 +11:00
Hugo
e83479edf0 Merge pull request #2263 from wiredfool/tiff_bytesio
Fix for writing Tiff to BytesIO using libtiff
2016-12-09 11:04:41 +02:00
Alexander
9ee1f58215 fix I;16 mode 2016-12-07 05:16:10 +03:00
Alexander
ba92896a53 remove old version 2016-12-07 04:39:36 +03:00
Alexander
52c8e2050e replace test "1"-mode image 2016-12-07 03:09:13 +03:00
Alexander
8967a20ad7 test new assert_image_similar implementation 2016-12-07 03:07:20 +03:00
wiredfool
aa247dbb60 Moving tests requiring libtiff to test_file_libtiff 2016-12-05 08:25:10 -08:00
Hugo
837d583b15 Merge pull request #2275 from wiredfool/issue_2272
Update Maxblock heuristic (fixes #2272)
2016-12-04 21:38:22 +02:00
Hugo
03b9d718fc Merge pull request #2274 from wiredfool/issue_2258
Fix for 2 bit palette corruption #2258
2016-12-04 12:27:40 +02:00
wiredfool
d983aead74 Py3 bytes 2016-12-03 14:49:44 +00:00
wiredfool
7e2bd28a7c Fix for issue 2272, CMYK images miss the heuristic for the maxblock buffer scaling 2016-12-03 14:45:45 +00:00
wiredfool
4b57345683 Refactor random image 2016-12-03 14:45:05 +00:00
wiredfool
88c43b61b7 Fix for #2258, 2 bit palette images corrupted 2016-12-03 14:08:59 +00:00
wiredfool
86606022c5 Merge pull request #2193 from SemanticsOS/lambdafu/libtiff-icc
Update info.icc_profile when using libtiff reader.
2016-12-03 13:44:26 +00:00
wiredfool
8a68bd6daa Merge pull request #2270 from ChristopherHogan/test_ifd_rational_save
Test: Fix bug in test_ifd_rational_save
2016-12-03 13:38:02 +00:00
homm
77210e410d test for common modes and filters
pass box for RGBA → RGBa conversion
2016-12-02 16:33:48 +03:00
homm
cf25722a73 improve error message 2016-12-02 15:42:33 +03:00
homm
295382aadc vertical and horizontal pass with boxes 2016-12-02 15:40:32 +03:00
homm
1477fbc07a update tests, add comments 2016-12-02 02:59:40 +03:00
Chris Hogan
711e95e361 Fix bug in test_idf_rational_save
A boolean wrapped in parentheses is still a boolean, not a tuple.
The comma makes this an actual tuple so it can be iterated on in
the for loop.
2016-12-01 11:10:03 -06:00
homm
6def4bfc73 roi → box 2016-11-30 20:01:28 +03:00
hugovk
ed4c0a58e8 Test case for #2266 2016-11-30 16:36:04 +02:00
hugovk
4061c3836c Created with IrfanView 2016-11-30 14:38:04 +02:00
hugovk
4d6c2d5601 Test saving 256x256 icons 2016-11-30 14:37:50 +02:00
wiredfool
e0b957240b Merge pull request #2087 from cskau/patch-1
Fixes TIFFImagePlugin ICC color profile saving.
2016-11-29 19:33:52 +00:00
glexey
0116c9240e EMF: support negative bounding box coordinates (#2249)
* EMF: support negative bounding box coordinates

Similar to placeable WMF, bounding box coordinates
should be interpreted as signed integer, otherwise
opening EMF file with negative (x0,y0) fails.

* Basic load tests for WMF and EMF formats

* WMF/WMF tests: just test open(), not load()

Not sure why load() fails on Debian build. Well, at least we can test
open().

* WMF/EMF: Unpack signed integers using unpack()

* WMF/EMF: Compare to reference PNG rendering

* EMF/WMF comparison: use assert_image_similar()

* Use similarity epsilon 0.5 for WMF, as vector rendering looks different across Windows platforms

* Trigger rebuild
2016-11-27 16:03:51 +00:00
Andrew Murray
67be3a9eda Added future print_function imports 2016-11-26 11:05:56 +11:00
Andrew Murray
4ed31e8ef7 Updated comments to use print as a function 2016-11-26 11:02:44 +11: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
wiredfool
ce3432f5f4 Test for issue #2206 2016-11-23 06:24:40 -08: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
Jon Dufresne
52b1f46b12 Deprecate vendored version of olefile Python package in favor of upstream
Pillow now requires the olefile Python package through setup.py.

This removes Pillow's maintenance of this library by instead relying on
and reusing the upstream version. No longer need to regularly update the
vendored package and docs. olefile bug fixes and features can go
directly upstream.

During travis tests, now installs Pillow package before tests; this will
also install all dependencies (currently, only olefile).
2016-11-22 18:17:31 -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
Jon Dufresne
a5d6519d74 Remove long deprecated ImageDraw methods
Deprecated in 89ccf66ff7 since Sep 29,
2015, version 3.0.0.
2016-11-13 10:08:47 -08: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
Clement Skau
caf53b05ec Fixes TIFFImagePlugin ICC color profile saving.
In the TIFF code saving icc_profile is conditional on tag_v2 being set which doesn't make sense to me. I believe this is merely an indentation typo.

I've been trying to save TIFFs with im.info['icc_profile'] set and compression=raw, but unfortunately this results in TIFFs without ICC color profiles.
With the attached patch TIFFs with said conditions will be saved with the profile set in im.info['icc_profile'].

Note: There are a number of different conditions that need to be met for code to succeed in saving with the profile since it branches between using libtiff and ImageFile._save(..), and the libtiff code does not currently save the ICC color profile.
For instance setting compression=tiff_lzw will result in using libtiff and no profile will be saved.
2016-11-05 15:01:39 +09:00
Marcus Brinkmann
66de02685f Update info.icc_profile when using libtiff reader. 2016-11-04 16:37:49 +01: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
Eric Soroos
95b50bf611 Make Image.crop an immediate operation, not lazy. Fixes #1077 2016-09-29 13:28:24 -07:00
wiredfool
4a90e8f75b Merge pull request #2024 from uploadcare/fix-empty-exif-tags
Skip empty values in ImageFileDirectory
2016-09-29 08:24:44 -07:00
wiredfool
0902120f09 Merge pull request #2139 from SemanticsOS/lambdafu/multipage-tiff-palette
Force reloading palette when using mmap in ImageFile.
2016-09-29 08:20:25 -07:00
Marcus Brinkmann
92c7337df0 Add TIFF save_all writer. 2016-09-29 17:05:33 +02:00
Marcus Brinkmann
c74e45e87c Force reloading palette when using mmap in ImageFile. 2016-09-29 14:54:25 +02:00
Tim Graham
0c66b80a95 Fix "invalid escape sequence" warning in Python 3.6
http://bugs.python.org/issue27364
2016-09-27 19:26:57 -04:00
wiredfool
bc66e2b34a py3 fix 2016-09-26 15:15:43 -07:00
wiredfool
1d068b6e0a Check type of items passed into to ImageCms.ImageCmsProfile, fixes #2037 2016-09-26 14:56:00 -07:00
wiredfool
a51d3bcdba Speed up Gif save optimization step: don't do it as often and do it in C. Fixes #2093 2016-09-26 14:51:28 -07:00
Andrew Murray
d3d29ab2e3 Use truth value when checking for optimize option on save 2016-09-25 21:20:54 +10:00
wiredfool
21d1fd6be0 Merge pull request #2125 from radarhere/macos
Renamed references to OS X to macOS
2016-09-25 09:31:01 +01:00
Andrew Murray
b58f76dc4f Renamed references to OS X to macOS 2016-09-23 21:12:03 +10:00
Andrew Murray
de6158f5f1 Read value when checking for JPEG progressive key 2016-09-23 20:32:21 +10:00
Andrew Murray
051a410859 Convert DPI to ints when saving as JPEG 2016-09-22 19:41:32 +10:00
wiredfool
25797b2baa Merge pull request #2103 from radarhere/append_images
Added append_images parameter to GIF saving
2016-09-22 10:21:31 +01:00
wiredfool
69ee1e35b8 Merge pull request #2015 from uploadcare/paste-speedup
Speedup paste with masks up to 80%
2016-09-22 10:10:56 +01:00
wiredfool
9c4c16df75 Merge pull request #2068 from Mischanix/dxtc
Move DDS decoders to C, add DXT3, BC7 Decoders
2016-09-22 10:04:23 +01:00
wiredfool
8ed63793bf Merge pull request #2111 from anntzer/save-tiff-resolution-when-originally-missing-entry
Fix saving originally missing TIFF tags.
2016-09-22 09:20:56 +01:00
homm
f07c42f719 added more case insensitivity tests 2016-09-19 12:12:16 +03:00
Antony Lee
7e9c944caf Fix saving originally missing TIFF tags.
Don't incorrectly set the tag type to None if it was originally missing.
2016-09-19 00:31:17 -07:00
homm
cdd0624945 improve tests 2016-09-19 03:12:53 +03:00
homm
7faf18ccde better paste tests 2016-09-19 03:12:20 +03:00
homm
c90eecd8f3 paste test for different mask formats 2016-09-19 03:12:20 +03:00
homm
9453129a57 simpler colormap lookup 2016-09-17 12:38:45 +03:00
homm
859a75ba07 complete getrgb tests 2016-09-17 12:22:27 +03:00
Andrew Murray
b346ed36f1 Added append_images parameter to GIF saving 2016-09-11 12:04:01 +10:00
Andrew Murray
572a3d970c Removed whitespace from blank lines 2016-09-03 12:23:42 +10:00
Andrew Murray
72d5218080 Flake8 fixes 2016-09-03 12:17:22 +10:00
Andrew Murray
5c59603fcf Fixed typos 2016-08-31 20:12:07 +10:00
Hugo
ad9fddbcbc Remove duplicate import 2016-08-29 12:57:12 +03:00
Robert Nix
2be760ca79 Add support for BC7 to DdsImagePlugin 2016-08-26 02:26:03 -05:00
Robert Nix
b46804ea27 Add support for DXT3 to DdsImagePlugin 2016-08-25 20:12:44 -05:00
Robert Nix
18a91cebcf Move DDS decoders to C
- Fixed inaccurate BC1/BC3 texture decoding
2016-08-25 19:27:48 -05:00
Eric Soroos
5b0a1a1c0d Moved tiff save / load of uint16 to test_file_tiff.
Saving a numpy generated image as a tiff will save in native endian, and comparing it to a
little endian tiff will fail on bigendian machines.
2016-08-25 12:49:40 -07:00
wiredfool
39227ff33c Merge pull request #2091 from wiredfool/pr_2008
Resampling lookups, trailing empty coefficients, precision
2016-08-25 12:58:36 +01:00
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
Alexander Karpinsky
73c81404e6 Merge pull request #1920 from uploadcare/resampling-accuracy-tests
Tests for resampling accuracy
2016-05-26 02:05:15 +03:00
wiredfool
5839c3b9d1 Merge pull request #1921 from thebostik/decode_jpeg_qtable
More fixes related to custom jpeg qtables
2016-05-24 09:51:46 +01:00
wiredfool
1eedd2ef15 Merge pull request #1896 from radarhere/comment
Added support for GIF comment extension
2016-05-23 22:32:52 +01:00
Stephen Arthur
7872501c5b Added test cases to exhibit issues with custom qtables 2016-05-22 17:54:03 -07:00
homm
39fcd80b2e tests for resample accuracy 2016-05-21 23:58:54 +03:00
homm
1a6c6b1250 tests for icc profile in png 2016-05-12 20:31:54 +03:00
Andrew Murray
6de51536c4 Replaced mixed tabs and spaces with spaces 2016-05-10 22:23:23 +10:00
Andrew Murray
63ae7fbfe9 Removed unnecessary lambdas 2016-05-10 22:20:49 +10:00
Andrew Murray
8298fcce73 Added support for GIF comment extension 2016-05-07 13:57:40 +10:00
rr-
d471b35470 Fix typo 2016-05-06 23:29:53 +02:00
rr-
c5278000c5 Skip libimagequant's test if it's unavailable 2016-05-06 21:40:18 +02:00
wiredfool
9a4f6482b4 Merge pull request #1893 from wiredfool/tiff_check
Skip tests that require libtiff if it is not installed, fixes #1866
2016-05-06 17:19:54 +01:00
wiredfool
be2100be7b Skip tests that require libtiff if it is not installed, fixes #1866 2016-05-06 09:07:00 -07:00
wiredfool
3926bfb747 Skip test when icc profile is not available, fixes #1887 2016-05-06 08:58:40 -07:00
rr-
eb354be7c4 Add method=Image.LIBIMAGEQUANT for quantize() 2016-05-05 21:39:16 +02:00
wiredfool
42f7a08ca4 Merge pull request #1856 from radarhere/eafp
Combined duplicate code in ImageTk
2016-05-03 21:02:08 +01:00
wiredfool
a0602fb68c Merge pull request #1882 from wiredfool/pr_1840
Fix Transparency for PNG images
2016-05-03 19:51:04 +01:00
wiredfool
b2800b57a7 spelling typos 2016-05-03 19:46:22 +01:00
Andrew Murray
abdb848f08 Corrected filename [ci skip] 2016-05-03 19:23:51 +10:00
Andrew Murray
0b515ae3fa Added test for ImageTk _get_image_from_kw 2016-05-01 22:19:52 +10:00
wiredfool
460480dfff Merge pull request #1847 from wiredfool/revert-1813-DIB_1293
Revert 1813, plus second commit with tweaks.
2016-05-01 10:31:59 +01:00
wiredfool
9f9436ca2f Merge pull request #1871 from wiredfool/pr_1865
Rebased #1865 + 1 test
2016-05-01 10:14:08 +01:00
wiredfool
219182beda Removing all transparency from the test image 2016-04-29 21:17:18 +01:00
wiredfool
6f92a5adc0 Tests for LA mode looping through numpy 2016-04-29 21:03:24 +01:00
Pierrick Koch
cb42a9383c [Test] image array add LA mode test 2016-04-29 21:03:24 +01:00
wiredfool
300ca19a0e Merge pull request #1854 from hugovk/tga-rle
Test TGA RLE file
2016-04-29 20:44:32 +01:00
wiredfool
12bfb976bd Merge pull request #1855 from hugovk/tiff-lzw
Test TIFF with LZW compression
2016-04-29 20:43:10 +01:00
hugovk
11b8faa761 Update RTD links https://blog.readthedocs.com/securing-subdomains/ 2016-04-28 09:35:03 +03:00
hugovk
839c52b96a flake8 2016-04-21 23:13:10 +03:00
hugovk
311f8f6a9c Test TIF with LZW compression 2016-04-21 23:10:08 +03:00
hugovk
272f11434d convert hopper.png -compress lzw hopper_lzw.tif 2016-04-21 23:09:23 +03:00
hugovk
31b05ce82c Test TGA RLE file 2016-04-21 17:49:35 +03:00
hugovk
ad299ea9e5 Source: https://samples.libav.org/image-samples/TGA/ 2016-04-21 17:49:25 +03:00
wiredfool
0507192a77 Comments for future people investigating alpha and DIBs 2016-04-19 20:36:25 +01:00
wiredfool
23a847c532 Fixes DIB image format
The DIB image format uses the 40 byte BMP header, followed by 3 masks
for RGB channels. We were reading 4 masks, consuming the first pixel
of the image.

Mostly fixes issue #1293. Remaining issue: alpha channel is actually a
transparency mask.
2016-04-19 20:17:36 +01:00
wiredfool
ae6c46ea92 Merge pull request #1814 from thebostik/jpeg-qtable-bounds
Valid range for baseline jpeg qtables 0 to 255
2016-04-19 16:48:03 +01:00
wiredfool
faeb269e30 Revert "Fix for DIB/BMP images" 2016-04-19 16:37:29 +01:00
wiredfool
4dfc0f905d Merge pull request #1830 from radarhere/grammar
Minor grammar fix
2016-04-19 16:02:30 +01:00
Oliver Tonnhofer
0f8d66bc96 add failing test for #1838; extend tests for current transparency behavior 2016-04-19 10:21:48 +02:00
Andrew Murray
ecd4d5a186 Removed unused test helper 2016-04-17 23:27:09 +10:00
Andrew Murray
4737944197 Minor grammar fix 2016-04-14 00:08:44 +10:00
Andrew Murray
392d567352 Added CMYK mode for opening EPS files 2016-04-13 18:27:46 +10:00
Stephen Arthur
5025bdd487 Valid range for baseline jpeg qtables 1 to 255, fixed overflow from using signed char instead of unsigned char. added test 2016-04-07 09:35:14 -07:00
Stephen Arthur
b38c32ed70 Valid range for baseline jpeg qtables 0 to 255, fixed issue from using signed char instead of unsigned char. added test 2016-04-06 18:47:51 -07:00
Hugo
a7c678b1af Merge pull request #1813 from wiredfool/DIB_1293
Fix for DIB/BMP images
2016-04-06 19:58:25 +03:00
wiredfool
e84e02997c Fixes DIB image format
The DIB image format uses the 40 byte BMP header, followed by 3 masks
for RGB channels. We were reading 4 masks, consuming the first pixel
of the image.

Mostly fixes issue #1293. Remaining issue: alpha channel is actually a
transparency mask.
2016-04-06 07:38:41 -07:00
Hugo
cee9a1da15 Merge pull request #1805 from wiredfool/verify-struct-error
Catch struct.errors when verifying png files
2016-04-04 16:38:29 +03:00
wiredfool
90378c8298 Fixing compatibility with the truncated images tests 2016-04-04 05:40:37 -07:00
wiredfool
bb91abe147 Merge pull request #1804 from hugovk/tiff_jpegtables
Test saving TIFF with JPEGTables tag
2016-04-04 05:06:53 -07:00
wiredfool
77da73c90f Catch struct.errors when verifying png files, convert to SyntaxErrors, fixes #1755 2016-04-04 03:08:22 -07:00
wiredfool
ca5e22b59a Merge pull request #1794 from radarhere/spiderimageplugin
SpiderImagePlugin: raise an error when seeking in a non-stack file
2016-04-04 02:07:41 -07:00
Andrew Murray
dabb68a61e Added tests 2016-04-04 18:48:21 +10:00
hugovk
ba817af569 Merge 2016-04-03 23:08:49 +03:00
wiredfool
14f3b45f46 Merge pull request #1789 from zwhfly/tiff
Add Support for 2/4 bpp Tiff Grayscale Images
2016-04-03 12:07:48 -07:00
Andrew Murray
26bf1937c7 Added warning for deprecated as_dict method 2016-04-03 23:41:28 +10:00
Hugo
77b5a531c6 Merge pull request #1625 from radarhere/health
Health fixes
2016-04-03 10:58:35 +03:00
wiredfool
a1f244343d Fixed j2k integer overflow error on encode - CVE-2016-3076 2016-04-01 05:11:54 -07:00
Andrew Murray
677b958a7f Health fixes 2016-04-01 21:49:30 +11:00
wiredfool
26970c5e21 Merge pull request #1782 from radarhere/compression
Different frames may have different compression types
2016-04-01 03:38:18 -07:00
wiredfool
39fb128898 Merge pull request #1772 from radarhere/copy
Added __copy__ method to Image
2016-04-01 03:35:21 -07:00
wiredfool
0fb65753ce Merge pull request #1780 from wiredfool/j2k_exception
Fix for UnboundLocalError with corrupt jpeg2k file
2016-04-01 03:29:09 -07:00
zwhfly
124bee0485 Add Tests for 2/4 bpp Tiff Grayscale Images
Including inverted and/or bit-order-reversed formats.
2016-03-29 20:19:22 +08:00
Geka
33fff9e4a8 Add test for multipage tiff file with different compression 2016-03-27 22:19:04 +11:00
wiredfool
0c4131bf67 Fixing tests on windows/32bit 2016-03-26 15:01:26 -07:00
wiredfool
43b4b8d664 Fix for UnboundLocalError with corrupt jpeg2k file 2016-03-26 13:41:00 -07:00
wiredfool
f65fcf7274 Fixing the tests on py 3.x 2016-03-16 10:13:51 +00:00
Andrew Murray
bb0d312de7 Added __copy__ method to Image 2016-03-16 20:23:51 +11:00
wiredfool
c6ec3be0d6 Fix for integer overflow in path.c 2016-03-15 19:56:40 +00:00
wiredfool
b550b2a9e4 Merge pull request #1756 from SemanticsOS/lambdafu/pycms
Give much more details about ICC profiles.
2016-03-14 10:05:49 -07:00
wiredfool
fb853267f9 Merge pull request #1748 from radarhere/path
Fixed bug when saving to a non-existent path using pathlib
2016-03-14 09:48:53 -07:00
Marcus Brinkmann
87603266ad Give much more details about ICC profiles. 2016-03-05 04:40:24 +01:00
Andrew Murray
b959a25f09 Fixed bug when saving to a non-existent path using pathlib 2016-02-27 13:10:50 +11:00
hugovk
39e407dbc1 Failing test for #1744 2016-02-24 15:06:28 +02:00
Hugo
cfc195f15c Merge pull request #1723 from radarhere/show
Removed unused Tests files
2016-02-09 14:49:14 +02:00
Andrew Murray
779f7e129e Removed unused Tests files 2016-02-09 22:06:44 +11:00
Andrew Murray
ce3e59414c Fixed typo [ci skip] 2016-02-09 22:02:43 +11:00
Eric Soroos
717720b051 Fix for buffer overflow in TiffDecode.c CVE-2016-0740 2016-02-04 08:13:11 -08:00
wiredfool
893a40850c FLI overflow error fix and testcase CVE-2016-0775 2016-02-04 08:13:02 -08:00
wiredfool
1723dc2d07 Merge pull request #1714 from wiredfool/resample-overflow
Overflow in resample.c, with tests
2016-02-04 07:52:59 -08:00
wiredfool
95a25a0d82 input parameter filtering 2016-02-04 07:19:54 -08:00
wiredfool
ff7962c3be test for #1711 2016-02-04 07:19:54 -08:00
wiredfool
c581d8abfb added __main__ clause 2016-02-04 04:24:47 -08:00
wiredfool
ae453aa18b PCD decoder overruns the shuffle buffer, Fixes #568 2016-02-02 05:46:26 -08:00
wiredfool
850f6dca06 added tests for ftex 2016-02-01 05:23:37 -08:00
Jerome Leclanche
58c59bbad0 Add a loader for the FTEX format from Independence War 2: Edge of Chaos 2016-02-01 05:23:37 -08:00
wiredfool
c09ba49f0f Merge pull request #1647 from radarhere/multiline
Allowed text method to pass on multiline_text method specific arguments
2016-02-01 01:18:51 -08:00
wiredfool
7d1df35089 Merge pull request #1686 from radarhere/seek
Allow ImageSequence to seek to zero
2016-01-31 09:08:09 -08:00
wiredfool
3f1834a67b Merge pull request #1649 from radarhere/iterator
Modified ImageSequence Iterator class to be an iterator
2016-01-31 09:06:43 -08:00
wiredfool
99e88c7796 Merge pull request #1653 from wiredfool/gbr
Fixed long broken GBRImagePlugin
2016-01-31 09:03:03 -08:00
Andrew Murray
2b0c037d5f Allowed ImageSequence to seek to zero 2016-01-27 14:04:05 +11:00
Andrew Murray
0ad6f5ff1f Updated deprecated asserts 2016-01-24 12:44:31 +11:00
Andrew Murray
a7a087e0b2 Added FPX test 2016-01-23 13:50:17 +11:00
Andrew Murray
da7e712cb4 Added MIC test 2016-01-23 13:46:36 +11:00
Andrew Murray
957187d417 Added TIFF IFD test 2016-01-21 16:00:53 +11:00
wiredfool
b0d15c9b8d Catch truncated DDS files 2016-01-15 21:34:36 +00:00
wiredfool
18d48dc665 fixing dds plugin on Py 2.x, relaxing dxt5 test 2016-01-08 13:58:19 -08:00
wiredfool
13f2d22700 Correctness tests for DDS 2016-01-08 07:59:18 -08:00
wiredfool
25428afb70 Working GbrImagePlugin for version 2 GBR (gimp brush) files 2016-01-08 07:18:48 -08:00
wiredfool
ccd9d4b489 Test images for GbrImagePlugin, created in GIMP 2.8 by Eric Soroos 2016-01-08 07:18:05 -08:00
hugovk
05b22cedd5 Add docstrings 2016-01-06 12:26:58 +02:00
Andrew Murray
f4df96816b Modified ImageSequence Iterator class to be an iterator 2016-01-06 21:09:40 +11:00
hugovk
517cbbff08 Test NotImplementedError 2016-01-06 11:59:47 +02:00
hugovk
02ec83ee64 Test image from https://github.com/python-pillow/Pillow/pull/1644#issuecomment-169101551 2016-01-06 11:57:51 +02:00
hugovk
f826bff3c7 Simplify sanity tests 2016-01-06 11:24:09 +02:00
hugovk
3515cf82b7 Test images from https://github.com/python-pillow/Pillow/pull/1644#issuecomment-169101551 2016-01-06 11:00:08 +02:00
hugovk
ca216951ab Test DdsImagePlugin 2016-01-06 10:59:37 +02:00
Andrew Murray
a653afb10d Allowed textsize method to pass on multiline_textsize method specific arguments 2016-01-06 17:13:16 +11:00
Andrew Murray
89e3758fb8 Allowed text method to pass on multiline_text method specific arguments 2016-01-06 10:42:03 +11:00
wiredfool
859ce84976 Version check rather than try/except 2016-01-03 13:04:04 -08:00
wiredfool
21beef192a Fixing test failures on python 2.6/windows 2016-01-03 12:23:39 -08:00
wiredfool
7a4ff8e66c Forcing this one to pass 2016-01-01 15:57:42 +00:00
wiredfool
e5076a3278 Merge pull request #1620 from wiredfool/issue_1597
Partial fix for #1597
2016-01-01 07:47:58 -08:00
wiredfool
36d4f5a9b4 Tests for permitted libtiff metadata 2016-01-01 05:30:40 -08:00
wiredfool
a6c1331fdd Rolling back exif support to pre-3.0 format 2016-01-01 04:14:24 -08:00
Hugo
c0b3fe77d7 Merge pull request #1621 from radarhere/health
Flake8 fixes
2015-12-31 15:18:31 +02:00
Hugo
55a037c50b Merge pull request #1531 from wiredfool/exif_div_zero
Divide by zero in Exif
2015-12-31 15:15:20 +02:00
Andrew Murray
a83bcec169 Flake8 fixes 2015-12-31 07:27:27 +11:00
wiredfool
9fa6634f4d Partial fix for #1597
Haven't excercized all of the metadata that we're allowing yet,
and there's clearly still something up with Arrays, as one
of them is still crashing and making it impossible to save a
palette with a libtiff image.
2015-12-30 07:54:14 -08:00
wiredfool
253bc038c5 Python 3.2, sigh 2015-12-30 00:45:48 +00:00
wiredfool
31428b7009 Py3 fixes 2015-12-29 23:56:47 +00:00
hugovk
d9c90bba91 Test passes for 2.9.0, fails for 3.0.0 2015-12-29 22:57:36 +00:00
wiredfool
3ac9396e8c Write round trip for rationals, including nan value 2015-12-29 22:00:36 +00:00
wiredfool
3dd4b39411 Namespace 2015-12-29 21:33:10 +00:00
wiredfool
5e7a5bf237 Limit rationals for expected values in round trip 2015-12-29 21:33:10 +00:00
wiredfool
8ed2d1ed02 Changing the type of the target values 2015-12-27 20:48:47 +00:00
wiredfool
722ee8240b Inherit from Rational instead of Fraction, some basic tests. Fixes Py2.6 2015-12-27 10:21:32 +00:00
wiredfool
deecbcd3a3 Added a rational class for TiffIFD that allows for 0/0 2015-12-27 10:21:31 +00:00
wiredfool
86ebe1eeb9 Merge pull request #1610 from radarhere/ttf
Removed unused file
2015-12-27 02:10:53 -08:00
Andrew Murray
a0d7282ea7 Removed unused file 2015-12-25 21:49:22 +11:00
Andrew Murray
416efb840b Clarified comment 2015-12-25 12:02:18 +11:00
Andrew Murray
afa4166a57 Updated deprecated asserts 2015-12-16 14:30:17 +11:00
Hugo
6005800396 Merge pull request #1594 from wiredfool/g4_attributes
Allow saving RowsPerStrip with libtiff.
2015-12-15 15:45:36 +02:00
wiredfool
436daee5e0 Merge pull request #1591 from radarhere/health
Health fixes
2015-12-14 21:00:09 +00:00
wiredfool
65ff8f9f5a Merge pull request #1578 from cartisan/numpy-conversion-for-hsv
Enabled conversion to numpy array for HSV images. #1559
2015-12-14 20:55:47 +00:00
wiredfool
3d5e395bb5 Merge pull request #1579 from hugovk/imagefont_getters
Test ImageFont getters
2015-12-14 20:48:03 +00:00
wiredfool
b68bb56b64 test for issue #1561 2015-12-14 20:24:01 +00:00
Andrew Murray
c27110ab56 Flake8 fixes 2015-12-10 21:34:02 +11:00
Andrew Murray
1c99b39239 Fixed redefined built-in 2015-12-10 21:34:02 +11:00
Andrew Murray
9176633d60 Specified exception type 2015-12-10 09:22:36 +11:00
Hugo
6e16168567 Merge pull request #1577 from radarhere/float
Changed arcs, chords and pie slices to use floats
2015-12-09 11:16:43 +02:00
Andrew Murray
8f9b3a7372 Changed arcs, chords and pie slices to use floats 2015-12-09 00:28:52 +11:00
Andrew Murray
ee82f7089c Changed assertTrue isinstance to assertIsInstance 2015-12-08 20:31:02 +11:00
Hugo
5f1a042293 Merge pull request #1576 from radarhere/imagedraw
Removed FIXME from ImageDraw test
2015-12-07 20:50:58 +02:00
hugovk
1110978fc7 Test another ImageFont getter 2015-12-07 20:44:03 +02:00
hugovk
1ae23a807f Test ImageFont getters 2015-12-07 20:24:57 +02:00
cartisan
8b76f557ce Enabled conversion to numpy array for HSV images. #1559 2015-12-07 17:40:42 +00:00
wiredfool
fb17bf3d20 Merge pull request #1478 from baumatron/pillow_fix_eps_gs_command
Fix command to invoke ghostscript for eps files.
2015-12-07 14:15:51 +00:00
wiredfool
2f75ee7e9f Merge pull request #1574 from hugovk/wiredfool-multiline_text-plus4
Consistent multiline spacing and tests, with extra space
2015-12-07 13:41:15 +00:00
Andrew Murray
f0944438ab Removed FIXME from ImageDraw test 2015-12-08 00:03:38 +11:00
wiredfool
51cd06685e Merge pull request #1556 from radarhere/unpack
Throw TypeError if no cursors were found in .cur file
2015-12-07 12:59:34 +00:00
wiredfool
bceb18baa2 Merge pull request #1555 from Nexuapex/master
ExtraSamples tag should be a SHORT, not a BYTE
2015-12-07 12:53:51 +00:00
hugovk
731d0b1b73 Default spacing of 4, update tests 2015-12-06 18:31:33 +02:00
hugovk
d52e58dbbd Merge remote-tracking branch 'upstream/master' into wiredfool-multiline_text 2015-12-06 18:05:25 +02:00
hugovk
c82b54b896 Update tests 2015-12-06 15:57:19 +02:00
Andrew Murray
806df2e7db Removed unused argument 2015-12-02 16:55:50 +11:00
Andrew Murray
407aa77db4 Removed unnecessary lambda 2015-12-02 16:49:30 +11:00
Andrew Murray
674515d568 Changed lines to be below 80 characters 2015-12-02 16:41:26 +11:00
Andrew Murray
4ab0cbb5ba Removed unused variable 2015-12-02 16:15:12 +11:00
Andrew Murray
d321177589 Removed undefined variable 2015-12-02 16:09:47 +11:00
John Calsbeek
b496f37e1f Add test for #1524. 2015-12-01 09:14:32 -08:00
Andrew Murray
0c3e224537 Throw TypeError if no cursors were found in .cur file 2015-11-26 19:56:41 +11:00
wiredfool
35296ca155 Merge pull request #1519 from mattip/master
test, fix missing 'version' key value in __array_interface__
2015-11-18 09:39:34 +00:00
wiredfool
c0b08068c8 Merge pull request #1534 from radarhere/shortlink
Removed shortlink
2015-11-18 09:29:39 +00:00
Andrew Murray
4d7b630b33 Catch OverflowError in SpiderImagePlugin 2015-11-18 01:18:01 +11:00
Hugo van Kemenade
a0393ee3a0 Merge pull request #1539 from wiredfool/issue_1526
Fix the definition of icc_profile in TiffTags
2015-11-16 10:23:41 +02:00
wiredfool
4883c4d202 image for test 2015-11-15 16:43:16 +00:00
wiredfool
f8a5ded0d6 Test for #1526, load binary tagged iccprofile 2015-11-15 16:41:49 +00:00
Andrew Murray
529d680aee Removed comment 2015-11-11 23:42:19 +11:00
Andrew Murray
03eadad5ef Removed shortlink 2015-11-11 23:25:55 +11:00
mattip
0ff05afa56 test, fix missing 'version' key value in __array_interface__ 2015-11-02 20:07:12 +02:00
Andrew Murray
9a2903bf5b Changed 32 bit to 32-bit and 64 bit to 64-bit 2015-10-15 00:49:03 +11:00
Andrew Murray
0eabe68882 Added test 2015-10-12 23:13:45 +11:00
Andrew Murray
6bd7e7f02d Removed trailing whitespace 2015-10-11 21:24:35 +11:00
Hugo van Kemenade
25d03d6fce Merge pull request #1465 from wiredfool/bug-iccprofile
Add tag info for iccprofile, fixes #1462
2015-10-05 15:23:16 +03:00
wiredfool
23631302a9 Merge pull request #1467 from wiredfool/sampleformat
Flatten sampleformat to initial value, fixes #1466
2015-10-05 01:43:03 -07:00
wiredfool
543238849c Merge pull request #1464 from wiredfool/pathlib_temporaryfile
Fix handling of pathlib in save. Fixes #1460
2015-10-05 01:41:58 -07:00
hugovk
0e23d74173 Make tests more robust re: https://github.com/python-pillow/Pillow/issues/947#issuecomment-61641247 2015-10-05 10:27:23 +03:00
wiredfool
5e670e9b70 using test file with known license 2015-10-03 17:04:40 -07:00
wiredfool
7206be535e Flatten sampleformat to initial value, fixes #1466 2015-10-03 22:57:44 +01:00
wiredfool
157df44e51 Add tag info for iccprofile, fixes #1462 2015-10-03 16:35:53 +01:00
wiredfool
d965257616 Fix handling of pathlib in save. Fixes #1460 2015-10-03 08:12:44 +01:00
wiredfool
5ee9dd6f88 Fixing test on py 2.x 2015-10-02 03:03:15 -07:00
wiredfool
eb80824f51 Have to guard the ctypes.wintypes import 2015-10-01 14:54:32 +01:00
wiredfool
7a48d7658d removing the print 2015-10-01 14:54:32 +01:00
wiredfool
3228860514 Test for PR#1431, following [nu744] 2015-10-01 14:54:32 +01:00
wiredfool
92f5133469 Merge pull request #1445 from radarhere/pdf
Added PDF multipage saving
2015-10-01 05:33:11 -07:00
wiredfool
89ccf66ff7 Merge pull request #1343 from radarhere/deprecated
Removed deprecated code
2015-09-29 15:38:34 +01:00
Andrew Murray
4e31fb745f Added PDF multipage saving 2015-09-29 22:51:52 +10:00
wiredfool
388b2dab0c Merge pull request #1428 from uploadcare/load-broken-images
Load more broken images
2015-09-24 21:53:36 +01:00
homm
62a52a7a34 replace broken image 2015-09-23 00:33:03 +03:00
wiredfool
eaabb21b4a Merge pull request #1429 from ericfrederich/conversion
use png when converting from a QImage to a Pillow Image
2015-09-20 11:04:16 +01:00
wiredfool
68dd0ac2cc Merge pull request #1430 from ericfrederich/qt_align
bug fix: Qt wants data aligned to 32 bits
2015-09-20 10:41:38 +01:00
wiredfool
de34547f33 Merge pull request #1419 from wiredfool/tiff-ifd-rewrite
Tiff ImageFileDirectory Rewrite
2015-09-20 10:36:19 +01:00
Andrew Murray
71c95c8e5f Restored deprecated methods with errors instead 2015-09-19 21:36:19 +10:00
Andrew Murray
5835c1e09c Added deprecation warning to ImageDraw setfont method, as specified in docs 2015-09-19 21:12:10 +10:00
Andrew Murray
baa5143394 Removed methods deprecated in 2.0 2015-09-19 21:06:12 +10:00
Andrew Murray
47366692d9 Removed ImagePalette methods, deprecated in 2.6 2015-09-19 21:06:12 +10:00
Andrew Murray
a3107af63f Removed ImageFileIO, deprecated since PIL 2015-09-19 21:06:12 +10:00
Andrew Murray
3841a11fb5 Removed ImageFont filename param, deprecated in 2.1 2015-09-19 21:06:12 +10:00
Eric L Frederich
e67a4c4270 preserve alpha during conversion; add tests; found bug and added TODOs 2015-09-18 16:15:24 -04:00
Eric L Frederich
86e775daa3 bug fix: Qt wants data aligned to 32 bits
Images in Qt show up incorrectly if each line is not aligned to 32 bits.

It is pretty common for an image's lines to be 32-bit alinged by chance.
Obviously any 32-bit image will not have any problem.
For the bug to manifest itself you'd need...
* a 1-bit image whose width is not a multiple of 32
* an 8-bit image who width is not a multiple of 4

Testing more images now and added a 7x13 png test image
2015-09-18 16:07:35 -04:00
wiredfool
a38fb2d0c5 Merge pull request #1384 from radarhere/gifparams
GIF 89a and animation parameters
2015-09-18 14:41:45 +01:00
homm
f46d65d0a4 test for this 2015-09-15 20:12:16 +03:00
homm
0f87b1f125 suppress and check warning during tests 2015-09-15 04:07:02 +03:00
homm
9930b05a33 fix tiff exif loading in case when file is empty or ended 2015-09-15 04:06:51 +03:00
wiredfool
9286c9e460 Reenabling and fixing the former test_xyres_tiff test for integer resolutions 2015-09-14 05:10:27 -07:00
wiredfool
4adbc9735c Reorder load_* parameters to pass master tests 2015-09-14 04:35:09 -07:00
wiredfool
05348d4f8f Reenabling failing/crashing tests, with fixes 2015-09-14 03:03:24 -07:00
wiredfool
c2818ee09e Add versioned api to tests 2015-09-13 16:19:40 +01:00
wiredfool
4596df45c1 Versioned interface for TiffTags 2015-09-13 15:15:13 +01:00
wiredfool
f3ab9b9f81 temp removing segfaulting test on travis 2015-09-13 14:38:51 +01:00
wiredfool
2636679868 updating tests for legacy_api api change 2015-09-13 14:08:49 +01:00
wiredfool
0c35194167 rewrite of #1416 working 2015-09-12 10:11:10 +01:00
wiredfool
b1fdff4034 In a twisty maze of bytes, text and arbitrary metadata, py2 and py3. New IFD is putting textdata in type7 metadata and returning bytes, old one put it in type 2 string and returned a string. This may be an issue 2015-09-11 23:44:23 +01:00
wiredfool
426c9d8fc2 test failing update 2015-09-11 22:40:38 +01:00
wiredfool
5f9fff0215 Restoring bad exif handling 2015-09-11 22:39:37 +01:00
wiredfool
47a963c2a4 Legacy/versioned interface 2015-09-11 22:39:37 +01:00
wiredfool
0c942911d9 fixed the rebase 2015-09-11 22:39:37 +01:00
Antony Lee
c113e8f7cd libtiff's rational precision is limited to C floats. 2015-09-11 22:39:37 +01:00
Antony Lee
ba7b8d1708 Fail on invalid EXIF, reverting ed2cca1. 2015-09-11 22:39:37 +01:00
Antony Lee
93abbd0caa Restore legacy TIFF API.
To have the old API that always returns tuples, and fractions as pairs,
set the `legacy_api` attribute of the IFD to True.

This should alleviate concerns about backwards compatibility.
2015-09-11 22:39:37 +01:00
Antony Lee
38f7e23495 Include tests of #1113. 2015-09-11 22:35:58 +01:00
Antony Lee
d5b46dce96 Fix MPO support, and Python2.6 support. 2015-09-11 22:34:50 +01:00
Antony Lee
974bcc074b Major rewrite of TIFF ImageFileDirectory.
Do not represent scalar tags as 1-element tuples.  Keep tag
type and count information in TiffTags.TAGS.  Normalize data in
ImageFileDirectory.__setitem__: wrap and unwrap tuples as needed,
convert rationals to floats.  (To ensure consistency, make the "tags"
attribute private.)  Interpret byte data as a series of integers rather
than a bytearray (which should only map to the "undefined" type).  On
Python3, if a str is assigned to an "undefined" tag, encode it as ASCII.

Note that a large number of tags have been removed from TiffTags.TAGS
because I do not have time to figure out the type and count of each of
them.  They should be restored before this gets merged in.

This obviously breaks backwards compatibility in a lot of ways...
2015-09-11 22:34:50 +01:00
Hugo van Kemenade
991829b75a Merge pull request #1414 from wiredfool/pr1360
Catch TypeError in _getexif
2015-09-10 19:11:32 +03:00
Hugo van Kemenade
f631ddb1ef Merge pull request #1416 from wiredfool/pr1309
Fix for UnicodeDecodeError in TiffImagePlugin
2015-09-10 19:07:48 +03:00
Bogdan Kubala
42b5a85cb4 Fix for UnicodeDecodeError in TiffImagePlugin
Fix for UnicodeDecodeError: ascii codec cannot decode byte while saving a TIFF image

Problem occured while saving TIFF images that contain non-ascii characters in metadata

Manually merged with master by wiredfool
2015-09-10 07:57:47 -07:00
wiredfool
60f44f2dce Merge pull request #1337 from homm/extraneous-jpeg-bytes
Skip any number extraneous chars at the end of JPEG chunks
2015-09-10 15:39:55 +01:00
wiredfool
07d95c3861 Added test for typeerror test for gpsexif 2015-09-10 05:32:11 -07:00
wiredfool
1b40b6fd32 Merge pull request #1366 from uploadcare/fix-truncated-regression-from-master
Pillow fails to load truncated images with LOAD_TRUNCATED_IMAGES
2015-09-10 11:59:58 +01:00
wiredfool
43c5f2cd64 Merge pull request #1387 from radarhere/imaging
Improved handling of getink color
2015-09-09 21:43:32 +01:00
homm
0b19a86087 skip any number extraneous chars at the end of chunks 2015-09-08 18:05:37 +03:00
homm
5309c8e21e Skip ImageFont_bitmap test if _imagingft C module is not installed 2015-09-08 18:00:00 +03:00
homm
430e9922eb test for loading truncated image and raising proper exception 2015-09-08 17:43:12 +03:00
Andrew Murray
a0d38a3884 Fixed infinite loop on truncated file 2015-08-29 02:05:08 +10:00
Andrew Murray
9026b81439 Check that images are L mode in ImageMorph methods 2015-08-28 22:54:17 +10:00
Andrew Murray
c6b13d294f Flake8 fixes 2015-08-25 22:27:18 +10:00
Andrew Murray
60902efeb0 Added test 2015-08-22 23:03:11 +10:00
Andrew Murray
b8ff91ab3b Corrected version number when saving GIFs 2015-08-21 22:10:13 +10:00
Andrew Murray
f64bc891d4 Changed GifImagePlugin to include use image info params 2015-08-21 22:09:05 +10:00
Anton Vlasenko
1f8a37841c Testing that animated gif preserves all important headers 2015-08-21 21:46:04 +10:00
Andrew Murray
f6d11a2803 Only use fast rotate operations if the expand flag is in use or the image is square 2015-08-06 00:23:14 +10:00
Andrew Murray
cf4145e2c9 Added test for pathlib 2015-08-05 21:29:24 +10:00
Hugo van Kemenade
1368d972e7 Merge pull request #1367 from radarhere/imagegrab
Added support for ImageGrab.grab to OS X
2015-08-01 10:54:31 +03:00
Andrew Murray
7c0554c74e Added support for ImageGrab.grab to OS X 2015-08-01 17:44:13 +10:00
Andrew Murray
f5df0b86fc Fixed PSDraw stdout Python 3 compatibility 2015-07-31 20:59:59 +10:00
Andrew Murray
3a25b1cd9b Added test for _getexif TypeError 2015-07-29 23:38:26 +10:00
Anton Vlasenko
a90e72076a Fixing typo to have proper testing 2015-07-23 11:29:26 +02:00
Andrew Murray
2a3a34d2ff Treat MPO with unknown header as base JPEG file 2015-07-19 22:56:04 +10:00
Andrew Murray
c7339c244e Added additional tests for TiffImagePlugin 2015-07-13 23:37:44 +10:00
Andrew Murray
94ed100bb2 Removed ImageDraw methods deprecated in PIL 1.1.15 2015-07-13 17:41:26 +10:00
Andrew Murray
309ab1fc3d Various Flake8 fixes 2015-07-03 16:22:56 +10:00
Andrew Murray
a06b59bd52 Added various tests 2015-07-03 15:03:25 +10:00
Alex Clark
290fa69dfa Merge pull request #1327 from hugovk/more_imagefont_tests
More ImageFont tests
2015-07-02 05:23:30 -04:00
Alex Clark
67d1541c6f Merge pull request #1207 from anntzer/logger
Use logging instead of print.
2015-07-02 05:22:07 -04:00
hugovk
bfa6b07741 flake8 2015-07-01 22:53:18 +03:00
hugovk
efa0fa1b4f More ImageFont tests 2015-07-01 22:51:38 +03:00
Alex Clark
567d83089f Merge pull request #1323 from radarhere/multiframe_test
Added multiframe GIF test
2015-07-01 14:30:45 -04:00
hugovk
dba0e7960a More GIMP palette tests 2015-07-01 14:28:34 +03:00
Andrew Murray
63a32a9c5b Added test for GimpPaletteFile 2015-07-01 15:47:47 +10:00
Andrew Murray
4fbea3e553 Added multiframe GIF test 2015-07-01 09:18:05 +10:00
Alex Clark
be1df0f33c Merge pull request #1320 from radarhere/gifmaker
Merged gifmaker into GifImagePlugin
2015-06-30 08:00:39 -04:00
Alex Clark
c489150602 Merge pull request #1319 from radarhere/is_animated
Added is_animated
2015-06-30 07:59:56 -04:00
Alex Clark
d29c3937ee Merge pull request #1302 from hugovk/1301_integer_expected
DPI should be tuple of ints, not floats
2015-06-30 07:57:28 -04:00
Andrew Murray
7227b4d01d Added test 2015-06-30 18:07:23 +10:00
hugovk
593a910e92 Unit test and image: convert hopper.png hopper.bmp 2015-06-30 07:09:35 +03:00
Andrew Murray
d20eef450b Added is_animated 2015-06-30 13:25:00 +10:00
Alex Clark
75be4af068 Merge pull request #1282 from radarhere/eoferror
Frame position when seeking past the end of file
2015-06-29 20:16:15 -04:00
Antony Lee
4e754e9c55 Use logging instead of print.
cf. #1191.

Only TiffImagePlugin and OLEFileIO still rely on (their own) DEBUG flag.
I left TiffImagePlugin as it is because I hope #1059 gets merged in
first, and OLEFileIO because it uses its own logic.

Untested, as usual.
2015-06-29 12:39:50 -07:00
Hugo van Kemenade
06a2f4bf76 Merge pull request #1316 from radarhere/patch-1
Fixed ValueError in Python 2.6
2015-06-29 10:20:26 +03:00
Andrew Murray
29cb7d24b8 Fixed ValueError in Python 2.6 2015-06-29 14:59:05 +10:00
Christoph Gohlke
3dd3c4e28c TST: fix ValueError on Python 2.6 2015-06-28 20:50:17 -07:00
Andrew Murray
afa4cadb23 Added width and height properties 2015-06-26 17:20:17 +10:00
wiredfool
cea766e980 Merge pull request #1217 from radarhere/qt-convert
Add functions to convert: Image <-> QImage; Image <-> QPixmap
2015-06-22 11:32:55 -07:00
Hugo van Kemenade
05c482655c Merge pull request #1291 from radarhere/winbuild_health
Style/health fixes
2015-06-21 17:42:01 +03:00
Andrew Murray
b553ad7a70 Further fixes 2015-06-21 16:33:55 +10:00
wiredfool
680aaa41cb Merge pull request #1177 from radarhere/multiline
Multiline text
2015-06-20 13:58:28 -07:00
Andrew Murray
bbf3b52357 Flake8 fixes 2015-06-20 14:46:04 +10:00
Andrew Murray
c1b1f184b8 Updated documentation URL 2015-06-19 18:28:13 +10:00
Andrew Murray
40b659764d Restored deleted test 2015-06-19 18:23:17 +10:00
Andrew Murray
33d51d4255 Flake8 and health fixes 2015-06-19 15:36:23 +10:00
Andrew Murray
43e2c92802 Removed unused imports 2015-06-19 15:35:56 +10:00
wiredfool
a92d737177 Merge pull request #1278 from wiredfool/winbuild
Windows Build/CI
2015-06-18 09:03:38 -07:00
Andrew Murray
1111e9fb35 Fixed frame position when seeking past the end of file 2015-06-19 00:49:18 +10:00
Andrew Murray
b7335ec9d9 Added multiline tests 2015-06-18 17:51:33 +10:00
Roman Inflianskas
854d343aa5 add functions to convert: Image <-> QImage; Image <-> QPixmap (see #897); fix typo that breaks tests 2015-06-18 11:21:14 +10:00
Roman Inflianskas
2d706d74dc add functions to convert: Image <-> QImage; Image <-> QPixmap (see #897) 2015-06-18 11:21:14 +10:00
wiredfool
d2e54d7973 Merge pull request #1255 from radarhere/polygon
Fixed polygon edge drawing
2015-06-17 18:18:36 -07:00
Andrew Murray
1ee1860b52 Added test for invalid image 2015-06-18 10:12:20 +10:00
wiredfool
2605f27bd3 Find all the function names 2015-06-16 14:08:10 -07:00
wiredfool
1086ba9e6e Function rename 2015-06-16 13:35:34 -07:00
wiredfool
9abedaab1d Merge pull request #1248 from radarhere/health
Further health fixes
2015-06-16 11:54:03 -07:00
wiredfool
e567267784 Merge pull request #1230 from hugovk/1229_xbm
Identify XBM file created with filename including underscore
2015-06-16 11:51:35 -07:00
wiredfool
30631902d6 Merge pull request #1231 from radarhere/image_palette
Copy image when saving in GifImagePlugin
2015-06-16 11:49:41 -07:00
wiredfool
87d5c8a506 added explanation 2015-06-12 10:17:04 -07:00
wiredfool
0347bcc91d Tests that faill on appveyor CI, but pass on a real machine 2015-06-12 09:56:12 -07:00
Andrew Murray
ecb1cef99b Added background color index saving to GifImagePlugin 2015-06-11 11:10:05 +10:00
hugovk
5c40cb1ba6 Merge 2015-06-08 20:46:39 +03:00
Andrew Murray
46f439604c Added tests 2015-06-08 01:02:43 +10:00
Andrew Murray
109ec638d9 Added test for bad EXIF data 2015-06-07 00:10:15 +10:00
Andrew Murray
a1b71d5ee0 Added test for polygon edge drawing 2015-06-06 00:46:50 +10:00
Hugo
b816c048ad Merge pull request #1172 from radarhere/gif
Added duration and loop set to GifImagePlugin
2015-06-04 13:07:58 +03:00
Andrew Murray
40c05380c5 Changed string statement to docstring 2015-05-30 09:18:27 +10:00
Andrew Murray
26bcc443d1 Specified exception types 2015-05-30 09:18:27 +10:00
Andrew Murray
a996033079 Fixed various typos 2015-05-29 14:59:54 +10:00
Hugo
b350a2ac95 Merge pull request #1239 from juztin/master
Setting transparency value to 0 when the tRNS contains only null byte(s)
2015-05-27 22:37:29 +03:00
Justin Wilson
e33b5c6355 Added test to check that png with null tRNS value defaults to a zero transparency value. 2015-05-27 09:45:27 -06:00
Hugo
06c8d715f2 Merge pull request #1233 from radarhere/features
Separated out feature checking from selftest
2015-05-27 14:39:00 +03:00
Hugo
394b245a39 Merge pull request #1240 from radarhere/future
Correct future print imports
2015-05-27 14:37:38 +03:00
Andrew Murray
3c7e37d2d7 Replaced old-style classes 2015-05-27 00:07:21 +10:00
Andrew Murray
4e2de9d9ed Added missing future print imports and removed unnecessary imports 2015-05-23 20:28:41 +10:00
hugovk
05987c8d60 Test unsupported features 2015-05-15 11:42:36 +03:00
Andrew Murray
3458e7a4c3 Added feature checking tests 2015-05-15 07:33:17 +10:00
Andrew Murray
ca89d431ba To avoid modifications, copy image when saving in GifImagePlugin 2015-05-13 16:39:25 +10:00
hugovk
ca7f44e7ae Fix comment and file 2015-05-12 13:34:18 +03:00
hugovk
bf1645616f Passing test for hopper.xbm and failing test for hopper_underscore.xbm 2015-05-12 12:43:58 +03:00
hugovk
30bb31ef59 Fix test according to original: 689f28aae7 (diff-d48d995756d16b9d9b8151e27377a37dR25) 2015-05-05 19:38:10 +03:00
Hugo
e7d85432e4 Fix OS X build
PR https://github.com/python-pillow/Pillow/pull/1209 missed a `file` -> `test_file` change on line 28, which broke the Mac build. Let's also make the constant uppercase whilst we're at it.
2015-05-05 11:15:55 +03:00
Hugo
7e02582931 Merge pull request #1210 from toabctl/issue-1202
Fix test TestImageFont.test_textsize_equal for SLE11SP3
2015-04-29 15:39:50 +03:00
Thomas Bechtold
80a8463225 Fix test TestImageFont.test_textsize_equal
The current test failed on SLE11SP3 so use assert_image_similar() for
the test.
This fixes issue 1202.
2015-04-29 14:21:42 +02:00
Andrew Murray
ee34d6843b Further health fixes 2015-04-24 18:24:52 +10:00
Andrew Murray
76fec69eda Removed unnecessary lambdas 2015-04-24 16:02:39 +10:00
Andrew Murray
7f414057c9 Fixed redefinition of built-in 2015-04-24 16:02:39 +10:00
Andrew Murray
566153f59f Fixed statements with no effect 2015-04-24 16:02:39 +10:00
Andrew Murray
540a225ea0 Removed unnecessary pass lines and commented debugging lines 2015-04-24 16:02:38 +10:00
Andrew Murray
9794aafc37 Removed or commented unused variables 2015-04-24 16:02:38 +10:00
Andrew Murray
e22e4239e5 Removed unused imports 2015-04-24 16:01:47 +10:00
Andrew Murray
d1c182cadc Various Flake8 fixes 2015-04-24 09:26:52 +10:00
Andrew Murray
aa1368f551 Flake8 fixes 2015-04-23 23:41:42 +10:00
Hugo
5302acae37 Merge pull request #1185 from radarhere/icns
Added icns save for OS X
2015-04-23 10:47:58 +03:00
Benoit Pierre
a649757f03 tests: add missing "from __future__ import division" 2015-04-16 20:10:19 +02:00
Benoit Pierre
4f6c366e75 fix imaging leaks in putdata and getlist 2015-04-16 20:09:39 +02:00
Hugo
b7bf299dad Merge pull request #1113 from bpedersen2/master
Tiff: allow writing floating point tag values
2015-04-14 11:50:07 +03:00
Andrew Murray
689f28aae7 Added icns save 2015-04-12 12:58:46 +10:00
Andrew Murray
a5917b3fa3 Added GifImagePlugin tests 2015-04-04 11:45:30 +11:00
Alex Clark
ea65087a20 Merge pull request #1125 from artscoop/patch-1
Fix 32-bit BMP loading (RGBA or RGBX)
2015-04-01 15:23:32 -04:00
hugovk
2879819ce7 Style/health fixes 2015-04-01 16:47:01 +03:00
Alex Clark
c91768f7bf Merge pull request #1117 from radarhere/master
Allow truetype() to search for extensions other than .ttf
2015-04-01 06:01:19 -04:00
Andrew Murray
b75ee4c5b6 Added tests for font paths without extensions and for preferring ttf extensions 2015-04-01 15:26:00 +11:00
Alex Clark
9c37a29553 Merge pull request #982 from hugovk/cache
Re-enable test image caching
2015-03-31 21:36:24 -04:00
Alex Clark
0925c4adbb Merge pull request #1152 from hugovk/1104
Fix: Cannot identify EPS images
2015-03-31 21:12:55 -04:00
Andrew Murray
444d9d5731 Changed variable name foo since it has been blacklisted in health 2015-04-01 10:29:26 +11:00
Andrew Murray
192fa39fb7 Fixed duplicate import in test_imagecms 2015-04-01 09:56:12 +11:00
Andrew Murray
128280e5b8 Fixed duplicate import in Tests helper 2015-04-01 09:56:04 +11:00
hugovk
883858151d Simple test for 1104 2015-03-26 14:05:17 +02:00
Andrew Murray
84ec2af495 Allow truetype() to search for extensions other than .ttf 2015-03-21 21:13:15 +11:00
Hugo
cabbc5d599 Merge pull request #1123 from radarhere/font_variant
Added copy method font_variant() and accessible properties to truetype()
2015-03-21 10:15:57 +02:00
hugovk
9bd38bfa06 Run test_effect_noise() on non-Windows, don't be too strict 2015-03-05 23:21:42 +02:00
artscoop
514c55aa16 Test fix for supported 32bit RGBA .cur file
Some .cur file with alpha was loaded fully opaque with PIL. Fixed, and fixed the test to take that into account.
2015-03-05 10:55:32 +01:00
Andrew Murray
7a798f8724 Added copy method font_variant() and accessible properties to truetype() 2015-03-04 00:00:18 +11:00
Hugo
061c9f41d8 Merge pull request #1121 from radarhere/endian
Let Python do the endian stuff + tests
2015-03-02 10:43:27 +02:00
Andrew Murray
f644adbb05 Fixed binary conversion bug, and added corresponding tests 2015-03-02 09:56:47 +11:00
Andrew Murray
ef6f30b674 Fixed typo in Tests README.rst 2015-03-02 09:28:24 +11:00
Björn Pedersen
47f5c9e650 Fix float precission 2015-02-23 12:11:20 +01:00
Björn Pedersen
e8553e1dae Tiff float tags: Use first val in tuple 2015-02-23 12:06:29 +01:00
Björn Pedersen
0238a80e24 Fix test failure on float
due to rounding, the values are just 'almost' equal.
2015-02-23 11:19:32 +01:00
Benoit Pierre
4af381c6ba webp: add memory leak test 2015-02-23 11:10:37 +01:00
Björn Pedersen
1f11fc7be5 Fix typo in test 2015-02-23 11:09:01 +01:00
Björn Pedersen
31be9f12ad Add tests for tiff float tag values
Add tests for writing of float/double values in tiff file tags.
2015-02-23 10:52:27 +01:00
Hans-Peter Jansen
be30160d57 early versions of webp are known to produce higher deviations: deal with it 2015-02-14 23:50:25 +11:00
hugovk
d12acfee84 Test as_dict() directly instead of as string. Fix for PyPy. 2015-02-08 19:09:39 +02:00
immerrr
d41fed6732 Enable basic support for 'RGBa' raw encoding/decoding 2015-02-02 13:06:56 +03:00
wiredfool
d80c27dc3f Merge pull request #1095 from hugovk/pickle_L_mode
Fix pickling L mode images with no palette
2015-01-30 11:39:50 -08:00
hugovk
7823197fdd Failing tests to pickle L mode images 2015-01-30 14:00:46 +02:00
wiredfool
8c2a7502a4 Correct the name 2015-01-28 10:02:04 -08:00
wiredfool
05fe86654c Added _repr_png method for ipython display hooks 2015-01-28 09:35:31 -08:00
wiredfool
1e040feb1b Adjust buffer size when quality=keep, fixes #148 (again) 2015-01-18 10:56:29 -08:00
wiredfool
8cb58bbd72 Fix bitmap tests to account for different metrics for bitmap and ttf fonts on some platforms 2015-01-07 21:38:36 -08:00
Yifu Yu
14a9bba962 Make bitmap test runnable as a standalone. 2015-01-07 21:38:36 -08:00
Yifu Yu
20642d67cc Remove unused StringIO.
StringIO does not exists on py3, which leads to failure of building.
2015-01-07 21:38:36 -08:00
Yifu Yu
152c8afcd3 Change bitmap test suite.
Strangely, the bitmap version of DejaVu Sans is always vertical
one pixer longer.
2015-01-07 21:38:36 -08:00
Yifu Yu
b2e10d25f6 Testcase added. 2015-01-07 21:38:35 -08:00
wiredfool
059a00eefa Merge pull request #1064 from wiredfool/font-tests
Restrict tests to linux/osx
2014-12-31 20:14:14 -08:00
wiredfool
96c06de695 Restrict tests to linux/osx 2014-12-31 19:59:50 -08:00
wiredfool
ca4ec0cea2 Fixed array parameters to reflect new image resizing behavior 2014-12-31 17:17:42 -08:00
wiredfool
1aed192554 Merge pull request #1054 from charleslaw/master
Look for OSX and Linux fonts in common places (fixes #370)
2014-12-31 14:43:13 -08:00
Hugo
b3e09122e5 Merge pull request #1060 from wiredfool/png-dos
Fix potential PNG decompression DOS
2014-12-31 20:32:41 +02:00
wiredfool
6696b780e3 Test style cleanup 2014-12-30 16:57:24 -08:00
wiredfool
0b75526ffe Limit total text chunk size to 64k 2014-12-29 17:10:27 -08:00
wiredfool
6ffe9e1689 Merge pull request #1058 from hugovk/anntzer-tiff-resolution2
Tests for PR #1044: Use underscores, not spaces, in TIFF tag kwargs
2014-12-29 15:23:20 -08:00
wiredfool
5390aa1692 Merge pull request #1055 from hugovk/test_psdraw
Update and test PSDraw
2014-12-29 15:17:23 -08:00
Charles Law
ee7b15c924 Add tests for finding fonts in linux and osx 2014-12-29 10:09:37 -08:00
wiredfool
b73c4b9e8b Test change -- different representation for invalid compressed object 2014-12-28 22:50:03 -08:00
wiredfool
44286ba3c9 Fix for zlib.decompression bomb in iTXt,zTXt, and iCCP chunks 2014-12-28 22:49:52 -08:00
hugovk
6a1b33f415 Test deprecated tags 2014-12-28 16:30:12 +02:00
hugovk
7f057ed962 Test drawing diagonal lines 2014-12-27 22:50:17 +02:00
hugovk
31859521c9 Update test as textsize() isn't implemented 2014-12-27 22:04:34 +02:00
Christoph Gohlke
99d66ff0cc Do not quit Python if numpy is not installed 2014-12-19 00:40:27 -08:00
hugovk
6da05b4026 Use fp instead of filename 2014-12-11 13:20:11 +02:00
hugovk
385ad47a9b Test PSDraw 2014-12-11 13:06:53 +02:00
homm
43d5d06ce4 rename Image.ANTIALIAS to Image.LANCZOS 2014-11-28 01:41:56 +03:00
hugovk
c859e3bf40 Some landscape.io fixes 2014-11-27 21:43:45 +02:00
wiredfool
42b59046e7 Merge pull request #993 from moriyoshi/fix/moriyoshi/gif-encoder-optimization-bug
The optimization algorithm is only applicable to the image of mode="P" or "L".
2014-11-27 10:36:34 -08:00
wiredfool
9f7ee1cf91 Merge pull request #1024 from holg/master
[ADD] added PySide compability
2014-11-27 10:31:42 -08:00
wiredfool
e16ee15f2c Merge pull request #997 from homm/replace-resize
Replace resize method
2014-11-27 10:26:48 -08:00
wiredfool
8a3302ba5d Merge pull request #961 from homm/fast-box-blur
Merge Fast Gaussian Blur
2014-11-27 10:20:11 -08:00
holger
b6d8b3f950 [ADD] added PySide compability changes to Tests/test_imageqt.py 2014-11-22 09:52:23 +01:00
homm
107b4a8b07 sharp alpha channel
resolve sharp endianness issues
2014-11-22 01:58:31 +03:00
homm
1a097d2e02 Merge commit 'e0b94d65bedb4a2124228aa579686a3ba2974d11' into replace-resize 2014-11-19 13:45:04 +03:00
homm
814dd3123e fix comments 2014-11-19 13:15:50 +03:00
homm
a86e032a18 return fresh image is no mode specified and cached version otherwise 2014-11-19 03:41:44 +03:00
homm
24ed800fae merge imaging and imaging core resize tests 2014-11-19 03:06:26 +03:00
homm
513e2a12dd resize test rework 2014-11-19 03:03:49 +03:00
Hugo
02476b7689 Remove unused variable, and other minor flake8 warnings 2014-11-17 10:33:31 +02:00
wiredfool
9a2cc7df83 hoist import, move test to libtiff 2014-11-15 20:38:52 -08:00
Martin Fergie
8b0ecb6192 Added test for different compression types. 2014-11-14 14:37:03 +00:00
Hugo
b5b0b889d3 Merge pull request #1009 from wiredfool/putdata-1008
Fix for Image.putdata segfault
2014-11-14 08:37:50 +02:00
wiredfool
a105cd7edb Test for issue #1008 2014-11-13 15:33:37 -08:00
Hugo
5ae3c1c881 Merge pull request #1007 from wiredfool/ico_save
Ico save, additional tests
2014-11-13 10:09:14 +02:00
wiredfool
03d20d3b6a More tests for ico save 2014-11-12 22:45:35 -08:00
homm
aabf66a7a4 fix tests: use im.transform directly when result is compared
with other transform operations.
2014-11-10 02:11:12 +03:00
homm
3894dbe754 fix typo 2014-11-09 03:08:26 +03:00
homm
1a7c9b72ab generalize endianess test 2014-11-09 03:08:25 +03:00
Eric Soroos
2657c0dec0 Test for endianness issues in stretch 2014-11-09 03:07:18 +03:00
Herb
79c7c7a01a add tests and docs 2014-11-08 14:49:50 +08:00
wiredfool
cfbe49f124 Merge pull request #994 from homm/add-transpose
Add transpose and cache aware rotation
2014-11-07 13:58:18 -08:00
homm
9e5ee5a5bf use not square image for test, fix tests 2014-11-07 13:15:51 +03:00
homm
4cf2f158b6 add test
update comment
2014-11-07 11:48:47 +03:00
wiredfool
8bb22793b3 Merge pull request #984 from hugovk/landscape-fixes
Fixed duplicate imports, naming variables after builtins
2014-11-06 21:50:00 -08:00
Moriyoshi Koizumi
9d60085957 The optimization algorithm is only applicable to the image of mode="P" or "L". 2014-11-06 21:29:27 +09:00
Hugo
675371b9b1 Make test_imaging_stretch.py runnable as a standalone script 2014-11-06 11:49:30 +02:00
wiredfool
20be641329 Merge pull request #970 from homm/fix-bicubic-stretch
Fix bicubic stretch interpolation
2014-11-05 17:45:47 -08:00
hugovk
6de030a165 Don't use builtin as variable 2014-11-01 09:55:15 +02:00
hugovk
947e34616c Merge remote-tracking branch 'upstream/master' into landscape-fixes 2014-11-01 09:44:10 +02:00
Hugo
4d74b81a15 Merge pull request #980 from wiredfool/pr_938
4 bit TIFF support
2014-10-29 21:41:17 +02:00
hugovk
fb788b85a9 Cache hopper to reduce FS reads and speed up tests 2014-10-29 21:28:29 +02:00
wiredfool
72c6db99df Merge pull request #976 from hugovk/tiff_ints
Fix saving TIFF with PageNumber total = 0
2014-10-29 11:11:10 -07:00
wiredfool
2d2474685a Added 4bit test to libtiff as well 2014-10-29 11:07:20 -07:00
wiredfool
e6cbe05211 Merge pull request #929 from hugovk/MspImagePlugin
More tests for MspImagePlugin
2014-10-29 10:55:58 -07:00
Hugo
4a92c24aa6 Save to a self.tempfile() so it's properly cleaned up afterwards 2014-10-27 09:31:22 +02:00
hugovk
6ec6b16eb6 Test TIFF with PageNumber 0 0 2014-10-26 18:16:08 +02:00
hugovk
86c5fdc7aa Created by printing a page in Chrome to PDF, then: /usr/bin/gs -q -sDEVICE=tiffg3 -sOutputFile=total-pages-zero.tif -dNOPAUSE /tmp/test.pdf -c quit 2014-10-26 18:14:34 +02:00
hugovk
f9bc87ed01 flake8 2014-10-26 11:24:57 +02:00
hugovk
e60683e3b1 Test opening TIFF with JPEGTables and saving it 2014-10-26 11:21:02 +02:00
hugovk
71a8d8db07 Created with ImageMagick: convert hopper.jpg hopper_jpg.tif 2014-10-26 11:15:29 +02:00
homm
c802abe219 change test due to different behavior on small radius 2014-10-25 17:06:27 +04:00
homm
65173f946b replace gaussian blur with extended box blur implementation 2014-10-25 16:36:41 +04:00
homm
d89c9ab750 Merge branch 'gaussian-refactor' into fast-box-blur 2014-10-25 15:50:57 +04:00
homm
36cbb16bf6 Add tests. Rise for "P" and "1". 2014-10-25 14:23:07 +04:00
homm
c80fe312e4 Add extended box blur. 2014-10-20 10:48:16 +04:00
homm
f477cab940 test for multiple passes 2014-10-19 20:56:14 +04:00
homm
5ab12e0ee7 improve test: test grayscale and rgba with same cases 2014-10-19 13:54:18 +04:00
homm
0ff4b53a72 pep8 2014-10-15 12:40:26 +04:00
homm
53c8352f39 highlevel api 2014-10-15 04:08:21 +04:00
homm
5861a46a54 check image mode 2014-10-14 23:29:50 +04:00
homm
a27baf90be fix large radius. tests 2014-10-14 03:26:46 +04:00
homm
a000cceb26 data tests 2014-10-13 04:07:17 +04:00
homm
c42991120a fix tests and set default effective_scale value for gaussian filter 2014-10-12 14:05:22 +04:00
Eric Soroos
991c847c73 Skip webp mux with the right skip message 2014-10-11 09:42:10 -07:00
homm
e56aed1a95 round pixel values 2014-10-08 15:05:48 +04:00
homm
ddae12928a add detailed test for blur and simple test for sharp 2014-10-08 12:51:34 +04:00
Eric Soroos
ba27920838 Fix for regression in scipy 2014-10-04 23:19:30 +00:00
Hugo
8cb5688047 flake8 2014-10-02 10:45:41 +03:00
Hugo
552a9a28a0 Support and test for 4-bit greyscale TIFF 2014-10-02 10:43:22 +03:00
Hugo
29b1c81a9e Created with ImageMagick: convert tests\images\hopper.jpg -colorspace Gray -colors 16 -depth 4 tests\images\hopper_gray_4bpp.tif 2014-10-02 10:31:30 +03:00
Hugo
ae7b765b53 Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
wiredfool
1bb850427d Slightly relax imagedraw tests to pass on x86 2014-09-30 08:33:29 -07:00
Hugo
8fbd18a706 Merge remote-tracking branch 'upstream/master' into MspImagePlugin
Conflicts:
	Tests/helper.py
2014-09-30 13:05:58 +03:00
Eric Soroos
1a91078154 Test failure explanation on PPC 2014-09-29 22:28:11 -07:00
Eric Soroos
383f713075 Relax exact equals to approximate 2014-09-29 16:36:09 -07:00
wiredfool
81ebc21abf Relax pyroma for RC versions 2014-09-29 13:14:49 -07:00
Christoph Gohlke
2538fa9e0f Fix AssertionError in TestFileJpeg.test_save_cjpeg 2014-09-29 11:35:46 -07:00
wiredfool
7fcb371fd3 Merge pull request #926 from wiredfool/fli
Replace lena.fli with hopper.fli
2014-09-29 10:58:52 -07:00
wiredfool
8d84f79f44 Replace lena.fli with hopper.fli 2014-09-29 10:40:33 -07:00
wiredfool
460160a1e3 Updated merge from master 2014-09-26 16:07:52 -07:00
Hugo
5606fa3597 Merge pull request #923 from wiredfool/conditional-profile
Conditional profile tests
2014-09-25 15:02:50 +03:00
wiredfool
af138af779 Use lcms profile where possible, otherwise skip test if sRGB profile is not available 2014-09-24 21:48:56 -07:00
wiredfool
476c255cee Licensed, freely available icc profiles 2014-09-24 21:47:32 -07:00
wiredfool
c325a26dd8 Remove ICC profiles with unclear licence and not our copyright 2014-09-24 21:47:32 -07:00
wiredfool
306ad74324 qtables error handling tests 2014-09-24 15:46:16 -07:00
wiredfool
d6c16aa015 Tests for jpeg memory leaks 2014-09-24 15:45:41 -07:00
hugovk
ab87302560 Merge with master 2014-09-24 08:50:59 +03:00
wiredfool
fedabf3a68 Merge from master 2014-09-23 10:19:00 -07:00
wiredfool
f0591e2ac5 s/lena/hopper/ 2014-09-23 09:52:34 -07:00
wiredfool
1f377c2ace Merge from master 2014-09-23 09:52:03 -07:00
Hugo
111e726fd9 Remove lena import 2014-09-23 17:18:42 +03:00
Hugo
0aa48600a2 Add a layer to hopper.psd, because lena.psd had layers 2014-09-23 17:09:43 +03:00
Hugo
5e676ea0bd Merge remote-tracking branch 'upstream/master' into flake8
Conflicts:
	Tests/bench_cffi_access.py
	Tests/test_file_palm.py
	Tests/test_format_hsv.py
	Tests/test_image_putdata.py
	Tests/test_locale.py
	Tests/test_mode_i16.py
2014-09-23 16:35:20 +03:00
Hugo
91aa29ca2b Replace lena with hopper 2014-09-23 16:16:04 +03:00
Hugo
a5fc5e3e7e Made with ImageMagick: convert hopper_bw_500.png -compress group4 hopper_g4_500.tif 2014-09-23 16:15:26 +03:00
Hugo
d306223ae3 Made with ImageMagick: convert hopper.jpg -resize 500x500 -monochrome hopper_bw_500.png 2014-09-23 16:15:09 +03:00
Hugo
c793323cbc Replace lena.xpm with hopper.xpm 2014-09-23 16:01:58 +03:00
Hugo
a608e15fad Created with ImageMagick: convert hopper.jpg -colors 44 hopper.xpm 2014-09-23 16:00:43 +03:00
Hugo
468cea1be0 Replace lena.psd with hopper.psd 2014-09-23 13:53:51 +03:00
Hugo
b60a06e59a Created with Photoshop: open hopper.jpg, save as PSD 2014-09-23 13:51:35 +03:00
Hugo
781da7d465 Replace lena.Lab.tif with hopper.Lab.tif + flake8 2014-09-23 13:45:32 +03:00
Hugo
ae9da298b9 Created in Photoshop: open hopper.jpg, convert to Lab, save 2014-09-23 13:44:05 +03:00
Hugo
925cea3780 Replace lena_g4.tif with hopper_g4.tif 2014-09-23 10:57:55 +03:00
Hugo
c0ce691704 Remove trailing L, not needed for Py2 and errors in Py3 2014-09-23 10:40:03 +03:00
Hugo
5957f5c812 Replace lena_g4.tif with hopper_g4.tif 2014-09-23 10:30:55 +03:00
Hugo
c417b51115 Created with ImageMagick: convert hopper.png -compress group4 hopper_g4.tif 2014-09-23 10:30:14 +03:00
wiredfool
f924cfc6f5 Merge pull request #781 from hugovk/ImageWin
More tests for ImageWin
2014-09-22 17:35:21 -07:00
Hugo
e8aecc7484 Remove temporary save line 2014-09-22 19:01:50 +03:00
Hugo
04d402adae Replace lena with hopper 2014-09-22 19:00:22 +03:00
Hugo
9ec58dad82 Fix test 2014-09-22 12:37:35 +03:00
Hugo
5342390fd2 Fix test 2014-09-22 10:39:05 +03:00
Hugo
0ccc445ebf Merge remote-tracking branch 'upstream/master' into hopper4 2014-09-22 10:34:14 +03:00
Christoph Gohlke
09ba5560d8 On Windows, do not execute convert.exe without specifying path
Convert.exe is a system tool that converts file systems
2014-09-21 17:50:07 -07:00
Hugo
91588383e7 Merge pull request #904 from hugovk/hopper3
Replace Lena with Hopper (Part II) & Fix for handling P + transparency -> RGBA conversions
2014-09-20 23:31:59 +03:00
wiredfool
af672b1d7e Fix for handling P + transparency -> RGBA conversions 2014-09-20 10:27:52 -07:00
wiredfool
5ea966d869 Test for alpha preservation in ImageEnhance, #899 2014-09-18 09:10:08 -07:00
wiredfool
758c893067 Convert lena->hopper 2014-09-18 09:10:08 -07:00
Hugo
165d2765f6 Add some Windows-only tests 2014-09-18 17:50:31 +03:00
Hugo
3bbfcb23aa More tests for MspImagePlugin.py 2014-09-18 14:48:07 +03:00
Hugo
45a616ef80 Created with Pillow: im = Image.open('hopper.jpg'); im = im.convert('1'); im.save('hopper.msp') 2014-09-18 14:44:41 +03:00
Hugo
c1dadc3fa6 Merge with master 2014-09-18 11:12:50 +03:00
Hugo
e5a068de53 Yet another Python 3 fix 2014-09-16 17:41:03 +03:00
Hugo
311a0c6f68 Another Python 3 fix 2014-09-16 17:19:15 +03:00
Hugo
300a3f0e70 Fix for Python 3 2014-09-16 16:44:51 +03:00
Hugo
99887a5467 Improve the error message when importing ImageGrab on non-Windows (#901) 2014-09-16 16:05:22 +03:00
hugovk
bdf845d6df Fix typo: fihopperme -> filename 2014-09-15 08:59:28 +03:00
hugovk
a2e729f487 Replace some lena with hopper 2014-09-14 22:58:23 +03:00
hugovk
bd3e54938f Made with ImageMagick: convert hopper.jpg -colorspace Gray hopper_gray.jpg 2014-09-14 22:47:43 +03:00
hugovk
337b222438 Add note to lena()/hopper() functions 2014-09-14 21:44:29 +03:00
hugovk
f10bdf7cd1 Fix test 2014-09-14 21:21:16 +03:00
hugovk
94da23ea3b Fix tests. test_trns_p() needed assert_image_similar() in place of assert_image_equal() 2014-09-14 20:00:13 +03:00
hugovk
1de128d6b6 Merge branch 'master' into flake8 2014-09-14 10:23:51 +03:00
Hugo
126bf8f1d7 Merge pull request #898 from wiredfool/joshware-j2k-leak
Jpeg2k Decode/Encode Memory Leak Fix
2014-09-13 09:05:22 +03:00
wiredfool
922a040629 Don't run memory leak test automatically. 2014-09-12 22:45:02 -07:00
Josh Ware
b07baf4549 Removed tearDownModule from Test import 2014-09-12 22:35:00 -07:00
Josh Ware
94194ed248 Cleaning up.
Reduced memory limit to 1GB
2014-09-12 22:09:27 -07:00
Josh Ware
dace8913b8 Increase memory yet again 2014-09-12 22:09:27 -07:00
Josh Ware
11e34d695a Inwcreased max memory limit, and switched save test to use BytesIO instead of StringIO 2014-09-12 22:09:27 -07:00
Josh Ware
e791aa0325 Removed unneeded dependencies 2014-09-12 22:09:27 -07:00
Josh Ware
caa95a26b2 Added memory leak fix and testing for Encoder 2014-09-12 22:09:27 -07:00
Josh Ware
bb738aef38 Removed unnecessary StringIO dependency from JPEG2K leak test 2014-09-12 22:09:27 -07:00
Josh Ware
7db19efe75 Reduced JPEG2000 test iterations, and added cleanup for decoding using PyPy 2014-09-12 22:09:27 -07:00
Josh Ware
72e2a6cade Fix memory leak in JPEG2000 decoding, and JPEG decoding using PyPy 2014-09-12 22:09:27 -07:00
root
5a47b2bc84 Sanity check :) 2014-09-12 22:09:26 -07:00
root
0cd1d9526d Reverted back to 512M, PyPy doesn't seem to work anyway 2014-09-12 22:09:26 -07:00
Josh Ware
a1f66bf402 Added a check for PyPy, as it needs far more memory as CPython 2014-09-12 22:09:26 -07:00
Josh Ware
dea36ae610 Tying 2GB max memory 2014-09-12 22:09:26 -07:00
Josh Ware
a944ec9250 Increaded memory limit to 1.5Gb 2014-09-12 22:09:26 -07:00
Josh Ware
f632baf4dc Increased testing limit from 512MB to 1GB 2014-09-12 22:09:26 -07:00
Josh Ware
bc1e1c148c Casting the iterations variable to integer 2014-09-12 22:09:26 -07:00
Josh Ware
c134e5ab45 Moved resource import to inside the function 2014-09-12 22:09:26 -07:00
Josh Ware
5ca57520b6 Added Test for JPEG2000 memory leak, before the fix is added 2014-09-12 22:08:54 -07:00
Hugo
af8bf3f1d2 Merge pull request #886 from wiredfool/epsfile-rebase
EpsFilePlugin Speed improvements.
2014-09-13 08:08:24 +03:00
wiredfool
ce0fcef580 Don't test internal python functions 2014-09-12 21:41:12 -07:00
hugovk
8dad2b0c63 Replace some lena() with hopper(), and temporarily disable fail-fast so we can see all failures 2014-09-05 13:03:56 +03:00
hugovk
b929873a62 Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
hugovk
eb458c7c8f Replace lena.tif with hopper.tif (created with ImageMagick) 2014-09-05 12:14:45 +03:00
Hugo
5f4c758b99 Convert .ico to 8-bit to match lena.ico: convert hopper.ico -alpha off -colors 256 hopper2.ico 2014-09-04 22:53:35 +03:00
hugovk
3ec65f8614 Replace lena.ico with hopper.ico. Created with ImageMagick: convert hopper.jpg -resize 16x16 hopper.ico 2014-09-04 13:29:35 +03:00
hugovk
76a7965187 Replace lena.dcx with hopper.dcx. Created with ImageMagick: convert hopper.ppm hopper.dcx 2014-09-04 13:24:53 +03:00
hugovk
4a243e90bc Replace lena.ras with hopper.ras, created with ImageMagick: convert hopper.jpg hopper.ras 2014-09-04 12:59:03 +03:00
hugovk
53a04a4118 Replace lena.spider with hopper.spider, created with Pillow. 2014-09-04 12:28:37 +03:00
hugovk
14ac9ce59c Replace lena.tar with hopper.tar 2014-09-04 12:21:19 +03:00
hugovk
06a2378f52 Remove lena.png 2014-09-04 12:13:43 +03:00
hugovk
e1c33d3190 Replace lena with hopper 2014-09-04 12:09:52 +03:00
hugovk
e524bcc327 Created with ImageMagick: convert hopper.jpg hopper.png 2014-09-04 12:09:15 +03:00
hugovk
b451c6f410 Replace lena.rgb and lena.bw with hopper 2014-09-04 10:31:16 +03:00
hugovk
513422323b Created with ImageMagick then renamed: convert hopper.ppm hopper.sgi 2014-09-04 10:29:39 +03:00
hugovk
5b01333f62 Created with ImageMagick then renamed: convert hopper.ppm -monochrome hopper.sgi 2014-09-04 10:24:13 +03:00
hugovk
78e7fe025e Fix constant name 2014-09-04 09:42:31 +03:00
hugovk
8f2d707a7a Update epsilona for hopper 2014-09-04 09:40:14 +03:00
Hugo
d7f7965aa2 Replace lena.gif with hopper.gif 2014-09-04 08:44:46 +03:00
Hugo
b248dcd019 Image created by Pillow via test_effect_spread() 2014-09-04 08:42:46 +03:00
Hugo
c1c77c4a63 Fix path 2014-09-04 08:42:12 +03:00
Hugo
4cafbf5112 Fix path 2014-09-04 08:26:50 +03:00
Hugo
5dd4d6d941 Add hopper() to eventually replace lena() 2014-09-04 08:03:55 +03:00
Hugo
2798589a24 Crop, resize and rename 2014-09-03 22:58:03 +03:00
Hugo
675014b26a Public domain image of Grace Hopper: http://www.history.navy.mil/photos/images/h96000/h96919k.jpg 2014-09-03 22:44:02 +03:00
wiredfool
918c77e98a Py3.2 fix 2014-09-02 23:33:10 -07:00
wiredfool
6dc276599e test for all the different line ending characters 2014-09-02 23:20:50 -07:00
wiredfool
e52152baad Test bytesio object 2014-09-02 23:20:16 -07:00
wiredfool
d8b2829f4b Partial fix for test failures, works on py2.x 2014-09-02 15:20:25 -07:00
wiredfool
3df822d1ef Testing the imagesequence module with the multipage tiffs 2014-09-02 15:20:25 -07:00
wiredfool
b8bdd13aac Tests for multipage tiffs 2014-09-02 15:20:24 -07:00
Kenny Ostrom
f54bccab0e multipage tiff for iterator testing 2014-09-02 15:20:24 -07:00
etienne
416d8e340e Fixed issue #857.
When saving a JPEG and specifying 'keep' for quality or subsampling,
if the source JPEG image is in grayscale mode, don't try to find the
subsampling of the source, because grayscale images don't have any
subsampling (it's only for color components).

For the moment the fix also ignores subsampling of CMYK JPEG because
currently Pillow doesn't support encoding JPEG in YCCK mode (and
subsampling doesn't make sense in CMYK, but Pillow permits saving CMYK
JPEG with subsampling, that's a bug). This fix pass those errors
silently, i.e. it doesn't raise an error when 'keep' is used but it's
not possible to keep the subsampling (because the image is grayscale
or CMYK). I think it's the proper behavior but I'm not sure.
2014-09-02 14:52:25 -07:00
wiredfool
86d5d8abed Merge pull request #882 from hugovk/effects
Tests and access functions for Effects.c
2014-09-02 14:36:24 -07:00
wiredfool
f6caaa1c9f Merge pull request #875 from hugovk/tifftags
Correct duplicate EXIF and TIFF tags
2014-09-02 14:32:47 -07:00
wiredfool
e9542bb1e4 Merge pull request #874 from hugovk/GimpGradientFile
Tests for GimpGradientFile
2014-09-02 14:30:38 -07:00
hugovk
3a9612af50 Test mandelbrot with bad arguments 2014-09-02 16:39:35 +03:00
hugovk
ed85a03db0 An epsilon of 80 should do it, getting ~79.5 on Travis 2014-09-02 16:12:23 +03:00
hugovk
b9303b454f Test image was generated on Windows and matches on Windows, but not on Travis (Linux). Check for similar. 2014-09-02 16:00:43 +03:00
hugovk
bcc5305125 Add access functions for ImagingEffectSpread with a test 2014-09-02 15:53:58 +03:00
hugovk
8c96d38ce9 Add access functions for ImagingEffectMandelbrot with a test 2014-09-02 15:14:00 +03:00
hugovk
d3242a5124 test_effect_noise stalls on Travis, skip unless Windows 2014-09-02 14:45:54 +03:00
hugovk
860e67e1c4 Add access functions for ImagingEffectNoise with a test 2014-09-02 14:11:08 +03:00
hugovk
42610c0ecd flake8 2014-08-28 17:18:54 +03:00
hugovk
1335006cd7 flake8 2014-08-28 14:44:19 +03:00
hugovk
c2f0903627 Correct the correction: RelatedImageWidth=0x1001, RelatedImageLength=0x1002 2014-08-27 11:06:34 +03:00
hugovk
a428321bee flake8 2014-08-27 10:57:40 +03:00
hugovk
d866a29bd8 Correct duplicate EXIF tags: http://www.exiv2.org/tags.html 2014-08-27 10:46:34 +03:00
wiredfool
8b2e7ee48a Additional dependencies [ci skip] 2014-08-26 14:48:17 -07:00
wiredfool
3e361d800d Refactor inheritance tree of test_file_libtiff_small 2014-08-26 09:58:23 -07:00
hugovk
8de95676e0 flake8 2014-08-26 16:47:10 +03:00
hugovk
952d1d5bf5 Remove duplicate tag caused by typo in spec: http://www.asmail.be/msg0055321032.html 2014-08-26 15:51:37 +03:00
hugovk
0a3b25ef9e Test GimpGradientFile.sine() 2014-08-26 12:21:08 +03:00
hugovk
08499d3547 flake8 2014-08-26 12:16:32 +03:00
hugovk
dbf0ee3631 Add (failing) test for GIMP 1.3 gradient files and .ggr by me 2014-08-26 12:04:04 +03:00
hugovk
674fd9744d Tests for GimpGradientFile and a sample .ggr by me 2014-08-26 11:45:28 +03:00
wiredfool
5d9107ee4c Merge pull request #859 from hugovk/test_file_jpeg2k_tempfile
Use tempfile() instead of /tmp/
2014-08-20 09:34:59 -07:00
Hugo
9f7a382b02 Merge pull request #856 from megabuz/tgainfo
Fix TGA files with image ID field
2014-08-20 09:57:04 +03:00
Alexey Buzanov
5dd0d377c9 rename test 2014-08-20 10:39:11 +04:00
Alexey Buzanov
f94b6b4025 flake8 and tests 2014-08-20 10:32:06 +04:00
Hugo
8922104a09 Need 'temp_' or 'temp.' in filename 2014-08-20 00:36:29 +03:00
Hugo
74f45d4e12 Use tempfile() instead of /tmp/ 2014-08-20 00:13:30 +03:00
wiredfool
347a1d8d95 J2k DOS fix -- CVE-2014-3598
Found and reported by Andrew Drake of dropbox.com
2014-08-19 08:25:40 -07:00
Hugo
3aa9326574 Merge pull request #843 from uvNikita/gif_mode_fix
Fixed wrong mode of gif image.
2014-08-19 17:50:49 +03:00
Nikita Uvarov
778768c9bc Fixed test_optimize_full_l test case for python2. 2014-08-19 15:00:15 +03:00
Nikita Uvarov
78081a2498 Fixed test_optimize_full_l gif file test case. 2014-08-19 12:32:52 +03:00
Nikita Uvarov
9604cf814b Added test case for gif image (mode L): optimization turned on, but not needed. 2014-08-19 12:24:44 +03:00
wiredfool
205e056f8f Icns DOS fix -- CVE-2014-3589
Found and reported by Andrew Drake of dropbox.com
2014-08-13 09:25:11 -07:00
Hugo van Kemenade
cc6610e4f3 Detail test-installed.py
[CI skip]
2014-08-12 16:37:49 +03:00
Hugo van Kemenade
ae641c3d0f RST code formatting
[CI skip]
2014-08-08 13:54:14 +03:00
Hugo van Kemenade
884280d0e5 Update test instructions
[CI skip]
2014-08-08 13:51:06 +03:00
Hugo
3fa247fd7c Merge pull request #837 from wiredfool/cms-profile
Return Profile with Transformed Images
2014-08-03 09:22:03 +03:00
wiredfool
ed3016a08a Merge pull request #832 from hugovk/IptcImagePlugin
Tests for IptcImagePlugin.py
2014-08-01 10:12:01 -07:00
hugovk
805184fcbb Fi xffor Python 3 2014-08-01 12:11:03 +03:00
hugovk
35838da803 Test dump() 2014-08-01 11:56:21 +03:00
hugovk
a0aff1a87f Remove disabled _is_raw() 2014-08-01 11:12:47 +03:00
hugovk
f5440cc3e1 Fixes for Python 3 2014-07-30 20:43:34 +03:00
hugovk
4c5a5c1f0e Tests for IptcImagePlugin.py 2014-07-30 19:34:20 +03:00
hugovk
e49e689c70 Add JPEG with IPTC data. My image, permission given to distribute under MIT licence 2014-07-30 19:33:04 +03:00
Eric W. Brown
b46f5c6b1e Better documented limited MPO save feature.
At present it’s only possible to save the current frame of an MPO, not
the MPO in its entirety. Added testing verifying as much.
2014-07-30 09:17:36 -07:00
wiredfool
5966278643 Added im.info['icc_profile'] to results for ImageCms.applyTransform 2014-07-29 21:20:11 -07:00
wiredfool
13eb3d667a Added profile.tobytes() for ImageCms Profiles 2014-07-29 20:44:17 -07:00
wiredfool
ab1bbb07c3 Merge pull request #827 from hugovk/test_file_tiff
More tests for TiffImagePlugin
2014-07-29 15:11:36 -07:00
Hugo
58c56e9aa4 Merge pull request #821 from wiredfool/pypy-performance
PyPy performance improvements
2014-07-29 13:12:54 +03:00
wiredfool
1a245a577b Mode F and I tests for Image.putdata 2014-07-28 22:09:52 -07:00
wiredfool
78d2618064 Image.point tests for Float LUT 2014-07-28 21:49:11 -07:00
Eric W. Brown
310bf90222 Merge branch 'master' of https://github.com/python-pillow/Pillow 2014-07-28 11:00:49 -04:00
hugovk
659b8c2f6f More tests for TiffImagePlugin.py 2014-07-27 22:18:42 +03:00
Hugo
328fd35dad Merge pull request #818 from dolda2000/itxt
Added support for encoding and decoding iTXt chunks.
2014-07-26 10:30:00 +03:00
Eric W. Brown
3b3f58d1bc Changed PIL to Pillow for newly supported formats. 2014-07-25 14:47:07 -04:00
Eric W. Brown
8101c2a313 Merge branch 'master' of https://github.com/python-pillow/Pillow 2014-07-25 10:08:18 -04:00
Eric W. Brown
a5683ab574 Implemented MP attribute breakdown with tests. 2014-07-24 15:00:19 -04:00
Hugo
352f1fd41f Merge pull request #816 from wiredfool/hsv
HSV Support
2014-07-24 09:20:04 +03:00
wiredfool
ea0a31d9fe 2.8 million pyaccesses take a while, nomatter what 2014-07-23 17:02:57 -07:00
wiredfool
2d13dbda6a enable test_16bit_lut on pypy 2014-07-23 16:01:06 -07:00
wiredfool
06d21bc709 pypy performance test 2014-07-23 15:39:24 -07:00
wiredfool
94ca2b1076 using skip known bad 2014-07-23 14:31:49 -07:00
wiredfool
e14e3593d9 And now for something completely different. Py3 compatibility 2014-07-23 09:08:28 -07:00
wiredfool
67c235b7c0 Don't DOS pypy 2014-07-23 08:49:19 -07:00
Eric W. Brown
8d7266afc5 Fixed typo in new MPO unit test. 2014-07-23 11:36:23 -04:00
Eric W. Brown
832e11bed5 Enabled seeking in MPO files.
Note to self: either put the offset in the load_seek() definition or
the tile definition, not both.
2014-07-23 11:27:46 -04:00
Fredrik Tolf
2687b5cb8d Test unicode preservation in text chunks. 2014-07-23 08:17:11 -07:00
Fredrik Tolf
823d377e47 Added tests for iTXt saving. 2014-07-23 07:27:51 -07:00
Eric W. Brown
6605bf22e5 Merge branch 'master' of https://github.com/python-pillow/Pillow 2014-07-23 09:22:15 -04:00
Fredrik Tolf
2b4d91ed53 Added iTXt tests. 2014-07-23 01:09:06 -07:00
wiredfool
0bb1cd398f Conversion between RGB and HSV images 2014-07-22 16:10:02 -07:00
wiredfool
625ff24358 Storage, packing and access for HSV format images 2014-07-22 16:09:22 -07:00
wiredfool
ee4793a806 More detail when assert_image_similar fails 2014-07-22 16:09:22 -07:00
Eric W. Brown
d5909e4946 Basic MPO reading works, seek is partially there. 2014-07-22 13:31:51 -04:00
hugovk
d06735b49e More ImagePalette.py tests and remove unused and uncallable new() 2014-07-21 23:18:46 +03:00
wiredfool
7155919b5b Merge pull request #809 from hugovk/public_gamma_lut
Make _make_gamma_lut() public
2014-07-20 11:37:41 -07:00
hugovk
37691bc1e4 Make _make_linear_lut public and issue deprecation warnings from old private methods 2014-07-20 10:13:26 +03:00
wiredfool
d810e9a018 Merge pull request #810 from hugovk/verbose_failfast
Tests: Be verbose and fail fast
2014-07-19 21:44:59 -07:00
wiredfool
bf2014ece6 Merge pull request #803 from hugovk/SgiImagePlugin
Sanity tests for SgiImagePlugin.py
2014-07-19 21:21:11 -07:00
hugovk
fef3ceb2c0 If we can't read a file due to unsupported compression, raise an error 2014-07-20 01:50:05 +03:00
hugovk
15c92359cc Merge some similar tests to a single file 2014-07-20 01:17:32 +03:00
hugovk
0c12058e37 Use unique class names to match filenames 2014-07-20 01:17:20 +03:00
hugovk
65cbdae449 Run nose in verbose mode so we can see the tests being run/skipped. Override __str__ in PillowTestCase for nicer output, and make sure all tests are derived from PillowTestCase. 2014-07-20 01:16:51 +03:00
hugovk
3c39a44f6e Make _make_gamma_lut() public 2014-07-19 01:45:57 +03:00
Hugo
eb4f669b34 Merge pull request #808 from wiredfool/xpm_load_image
Fix Scrambled XPM
2014-07-19 00:28:02 +03:00
wiredfool
d30eb007ef Fix scrambled XPM image, don't mmap when load_read/load_seek is defined. Fixes #806 2014-07-18 10:40:08 -07:00
hugovk
14d1ac6389 Rename bad variable name 'file' to 'TEST_FILE', remove unused 'data' variable 2014-07-17 23:23:50 +03:00
hugovk
1e24dcd317 Check some pixel colors to ensure image is loaded properly 2014-07-17 10:42:43 +03:00
hugovk
665293e9b9 More tests for XpmImagePlugin.py 2014-07-17 02:38:57 +03:00
hugovk
70786f1b99 Tests for DcxImagePlugin.dcx 2014-07-17 01:20:19 +03:00
hugovk
84b13ff1ae Created with ImageMagick: convert lena.ppm lena.dcx 2014-07-17 01:19:52 +03:00
hugovk
8a73a20af1 Sanity test for CurImagePlugin.py 2014-07-16 23:45:18 +03:00
hugovk
1ff695873f Cursor image by Miss Mycroft, 'Released under the Release to Public Domain license' http://www.rw-designer.com/cursor-detail/61757 2014-07-16 23:44:35 +03:00
hugovk
bc34bda2b8 Remove stray print 2014-07-16 21:35:43 +03:00
hugovk
2b3d655833 Sanity tests for SgiImagePlugin.py 2014-07-16 21:28:17 +03:00
hugovk
535494d862 Created with ImageMagick: convert transparent.png transparent.sgi 2014-07-16 21:27:31 +03:00
hugovk
e29c2d49c0 Created with ImageMagick then renamed: convert lena.ppm -monochrome lena.sgi 2014-07-16 21:27:06 +03:00
hugovk
cc27e8d532 Created with ImageMagick then renamed: convert lena.ppm lena.sgi 2014-07-16 21:26:47 +03:00
Eric W. Brown
53b7f6294b First steps toward MPO support.
Allows Pillow to distinguish between JPEGs and MPOs, and provides some
MPO metadata handling. Does not yet handle multiple frames.
2014-07-16 11:36:56 -04:00
hugovk
d04ffd2377 Sanity test for SunImagePlugin.py 2014-07-16 14:24:23 +03:00
hugovk
5db868e060 Created with ImageMagick: convert lena.ppm lena.ras 2014-07-16 14:20:15 +03:00
Eric W. Brown
2609a24221 Moved images to correct place.
Accidentally uploaded images to their initial test location, not the
proper location used by other tests.
2014-07-15 17:43:31 -04:00
hugovk
6c9940e9d1 More tests for SpiderImagePlugin.py 2014-07-15 12:23:02 +03:00
hugovk
45319bd028 Fix import 2014-07-15 00:48:01 +03:00
hugovk
123fe38ef7 Test Image's __ne__ and alpha_composite 2014-07-15 00:42:31 +03:00
hugovk
466fd9ec28 Merge remote-tracking branch 'upstream/master' into Image 2014-07-13 16:18:13 +03:00
wiredfool
7bea6764e9 Merge pull request #773 from hugovk/ImageMath
More tests for ImageMath.py
2014-07-10 10:14:20 -07:00
hugovk
1141e636d9 More tests for Image.py 2014-07-10 02:00:26 +03:00
hugovk
e3911facbc Test ImageMath's mod, imagemath_equal and imagemath_notequal 2014-07-09 21:53:13 +03:00
wiredfool
b5c3eb5830 ucase(font_path,font_size) 2014-07-08 10:37:27 -07:00
wiredfool
552effb90d Merge #772 and master 2014-07-08 10:29:53 -07:00
wiredfool
65357e1722 Merge pull request #783 from hugovk/_util
Tests for _util.py
2014-07-08 09:16:52 -07:00
Alex Clark ☺
962f1b46af Merge pull request #784 from tk0miya/master
Fix return value of FreeTypeFont.textsize() does not include font offsets
2014-07-08 05:14:01 -04:00
hugovk
3d71e3fdb2 Remove unused tearDownModule 2014-07-08 07:59:17 +03:00
hugovk
c2cf0b4edd Merge remote-tracking branch 'upstream/master' into _util 2014-07-07 23:48:19 +03:00
hugovk
73223fcb23 Test isStringType and isPath in similar way to production code 2014-07-07 23:40:37 +03:00
Hugo
cb5ed5973a Merge pull request #765 from larsjsol/master
Fix dispose calculations for animated GIFs
2014-07-07 23:04:38 +03:00
Lars Jørgen Solberg
9e5f2f9249 use assertEqual for test cases 2014-07-07 21:49:45 +02:00
wiredfool
cf763ea036 Merge pull request #787 from wiredfool/32bit_segfault_test
Make 32bit sefrault test safer
2014-07-07 11:49:01 -07:00
Lars Jørgen Solberg
5fa2794386 Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
wiredfool
0a160e44d8 Guard to prevent 64 bit machines from crashing 2014-07-07 11:22:11 -07:00
wiredfool
8d5a1c2a19 Renamed to avoid test runner 2014-07-07 11:21:46 -07:00
hugovk
cf04a9a0d2 Remove unused tearDownModule 2014-07-07 20:03:50 +03:00
Hugo
3ad62fa7fc Merge pull request #782 from wiredfool/32bit_decompression
32bit mult overflow fix
2014-07-07 19:25:39 +03:00
Hugo
737c7440d7 Merge pull request #775 from radarhere/master
Added class checking to Image __eq__ function
2014-07-07 19:23:06 +03:00
Takeshi KOMIYA
60628c77b3 Fix return value of FreeTypeFont.textsize() does not include font offsets 2014-07-07 14:42:46 +09:00
hugovk
691671624c Test _util.py 2014-07-06 01:47:30 +03:00
wiredfool
e5d07eff05 remove extra import 2014-07-05 15:23:38 -07:00
wiredfool
f5931e8231 Test for #771, hangs in nose 2014-07-05 15:08:11 -07:00
hugovk
315134eff3 Test ImageWin. Not much to test, as it's mostly Windows-only. 2014-07-06 00:40:27 +03:00
wiredfool
a414986ee9 Merge from master 2014-07-05 11:02:13 -07:00
wiredfool
08d491f006 Skip known bad tests 2014-07-05 10:56:40 -07:00
wiredfool
cedd8c2106 Failing test for messed up P image on write only format 2014-07-05 10:25:16 -07:00
hugovk
f6f80e3a77 Test case for #774 2014-07-05 16:29:40 +03:00
hugovk
8a4081c5bc More tests for ImageMath 2014-07-05 12:08:35 +03:00
hugovk
ff6a0b9b8c Add test image using ImageFont's default font 2014-07-05 00:18:52 +03:00
hugovk
65593a3827 More tests for ImageFont.py 2014-07-05 00:04:19 +03:00
wiredfool
a035ecc2ca Merge branch 'master' into HEAD 2014-07-02 08:59:16 -07:00
Alex Clark ☺
351f2ae948 Merge pull request #761 from wiredfool/jpeg2k_fd
Jpeg2k
2014-07-01 16:16:26 -04:00
hugovk
b6f836b5b8 Refactor and add two more tests 2014-07-01 22:53:30 +03:00
wiredfool
19bf3390a9 Removed extra print 2014-07-01 12:53:15 -07:00
hugovk
3807af79e3 Add a test for PalmImagePlugin.py 2014-07-01 22:18:40 +03:00
Alex Clark ☺
b2ed31e8cd Merge pull request #737 from wiredfool/terseus_imagedraw
Merged Imagedraw rewrite
2014-07-01 14:15:11 -04:00
Alex Clark ☺
febfe2f574 Merge pull request #755 from wiredfool/multithread-testing-travis
Multithread testing- travis
2014-07-01 14:14:49 -04:00
wiredfool
cec5fd9d38 f doesn't exist, BytesIO objects have fileno(), but may return OsError 2014-07-01 11:09:20 -07:00
wiredfool
e3f9fa0d78 Skip known failing test 2014-07-01 09:07:18 -07:00
Alex Clark ☺
4408352304 Merge pull request #759 from cgohlke/patch-3
Skip LargeMemory tests on 32 bit systems
2014-07-01 05:43:53 -04:00
cgohlke
5c3736c4a6 Don't import unittest because it's done in helper 2014-06-30 23:20:39 -07:00
cgohlke
f0342393ff Don't import unittest because it's done in helper 2014-06-30 23:20:12 -07:00
Hugo
1b2dd37905 Merge pull request #758 from mbrown1413/750_jpeg_on_windows
Skip shell injection tests for Windows
2014-07-01 09:12:07 +03:00
cgohlke
647f2e1771 Skip LargeMemoryNumpyTest on 32 bit systems 2014-06-30 19:20:15 -07:00
cgohlke
10da645ac6 Skip LargeMemoryTest on 32 bit systems 2014-06-30 19:19:09 -07:00
Michael Brown
fb27befa1a Skip shell injection tests for Windows 2014-06-30 22:07:44 -04:00
hugovk
7b838f31b4 Import helper so unittest2 is imported for Py2.6 (re: #743) 2014-07-01 02:05:55 +03:00
wiredfool
acab4e8fdc Cleaned up prints 2014-06-30 15:23:24 -07:00
wiredfool
c824a15fe8 Thread and race condition safe tempfiles for testing 2014-06-30 15:22:36 -07:00
wiredfool
668141a898 updated imagedraw tests 2014-06-30 15:03:57 -07:00
wiredfool
3bf375c5f7 Merge branch 'master' into terseus_imagedraw 2014-06-30 14:24:59 -07:00
Hugo
d8f55e3f50 Merge pull request #748 from wiredfool/djpeg
Prevent shell injection
2014-06-30 02:16:06 +03:00
Hugo
5833ecb4d6 Merge pull request #749 from wiredfool/helper
Helper Tweak
2014-06-30 01:17:24 +03:00
wiredfool
2d13166667 Don't print the entire image as bytes on failure 2014-06-29 14:39:32 -07:00
wiredfool
118a2d5ff0 Merge pull request #745 from gcq/master
Handle resolution in BMP files
2014-06-29 13:32:02 -07:00
gcq
92b070ceaf Addes tests 2014-06-28 23:22:52 +02:00
hugovk
d5bb962f83 Add test to ensure a Pyroma is a 10/10 Mascarpone 2014-06-28 23:48:14 +03:00
Michael Brown
8b365f542a Skip tests if external commands aren't found 2014-06-27 19:11:01 -04:00
Michael Brown
d283f77884 Tests for _save_netpbm, _save_cjpeg and load_djpeg 2014-06-27 19:07:20 -04:00
wiredfool
3f5b15ff31 Merge pull request #735 from hugovk/test_cleanup
Remove old, unused cms_test.py
2014-06-27 09:57:20 -07:00
Alex Clark
a45c8aaf61 Fix error(s) 2014-06-27 08:45:39 -04:00
Alex Clark
2effb0d429 Fix error(s) 2014-06-27 08:44:53 -04:00
Alex Clark
2670204dbd Clean up 2014-06-27 08:44:28 -04:00
Alex Clark
2004fd0845 Prefer rst 2014-06-27 08:43:44 -04:00
hugovk
44e91e668d Remove old, unused test 2014-06-27 11:29:30 +03:00
wiredfool
d79d28152b Merge pull request #728 from hugovk/test_cleanup
Old tests cleanup
2014-06-26 22:58:35 -07:00
David Joy
b147dea535 Add tests and fix a 16bit vs 32bit integer bug
Yay unit tests!
2014-06-25 14:06:56 -04:00
hugovk
d391390e3f Second test is meant to have two XDIMs (#728). Also use lowercase for parameters. 2014-06-25 19:27:43 +03:00
hugovk
5993b97cb0 Remove last dependencies on tester.py and remove file 2014-06-25 12:46:52 +03:00
hugovk
cf07aa60a1 Convert large_memory_numpy_test.py to use unittest (and change second XDIM on line 36 to YDIM) 2014-06-25 12:43:01 +03:00
hugovk
c6386a294d Convert large_memory_test.py to use unittest (and change second XDIM on line 30 to YDIM) 2014-06-25 12:32:52 +03:00
hugovk
3b3fc441b1 flake8 Tests/make_hash.py 2014-06-25 12:25:51 +03:00
hugovk
1bbe850f5b Convert bench_cffi_access.py to use unittest and helper.py 2014-06-25 12:19:27 +03:00
hugovk
f41e0a30fb More tests cleanup 2014-06-25 12:10:20 +03:00
wiredfool
a990af1b97 Merge from master 2014-06-24 16:48:38 -07:00
Alex Clark ☺
7d232a3c32 Merge pull request #719 from wiredfool/imagepalette
Tests for Imagepalette.save()
2014-06-24 13:41:32 -04:00
wiredfool
5b4d5148af Added roundtrip test for ImagePalette.save 2014-06-24 09:58:53 -07:00
hugovk
ffce319b54 Change Tests/README.txt to .md [CI skip] 2014-06-24 14:04:47 +03:00
hugovk
78154765ce Update README and remove unnecessary, commented code from helper.py 2014-06-24 14:03:10 +03:00
Alex Clark ☺
ca148208f0 Merge pull request #716 from hugovk/morph_flake8
Flake8 on morphology changes
2014-06-24 05:51:04 -04:00
Alex Clark ☺
88bfd5522d Merge pull request #714 from wiredfool/jpeg_qtables
JPEG qtables
2014-06-24 05:48:17 -04:00
Hugo
0cd52412b1 Merge pull request #654 from wiredfool/cleanup
Thanks.
2014-06-24 12:16:13 +03:00
hugovk
494bffd216 Make test runnable on its own 2014-06-24 10:01:43 +03:00
hugovk
fd97d30831 flake8 on morphology changes 2014-06-24 09:34:05 +03:00
wiredfool
cf828f7612 Converted to unittest framework to deal with test framework error 2014-06-23 16:52:10 -07:00
wiredfool
6dce921dad Merge branch 'master' into morphology 2014-06-23 16:21:33 -07:00
hugovk
b7f14415d8 Constants are now ALL CAPS 2014-06-23 22:51:31 +03:00
Alex Clark ☺
6cc9e05f2a Merge pull request #709 from Terseus/fix-latest-imagedraw-tests
Fixed variables misprint in ImageDraw tests
2014-06-23 14:39:18 -04:00
Alex Clark
2ccd76e66f Fix path 2014-06-23 14:38:03 -04:00
Terseus
5522fa472d Fixed variables misprint in ImageDraw tests 2014-06-23 20:07:09 +02:00
Alex Clark ☺
2a657f7873 Merge pull request #674 from hugovk/bomb
Decompression bomb protection
2014-06-23 12:27:01 -04:00
hugovk
1633ffa878 Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup
Conflicts:
	Tests/test_file_jpeg2k.py
	Tests/test_image_transform.py
	Tests/test_imagesequence.py
2014-06-23 13:39:27 +03:00
hugovk
282281f1e5 Reset limit in tearDown() 2014-06-23 11:22:25 +03:00
hugovk
7b3e242f09 Convert test_decompression_bomb.py to use unittest module 2014-06-23 11:12:41 +03:00
hugovk
46abe78b77 Use a custom subclass of RuntimeWarning for DecompressionBombWarning 2014-06-23 10:53:08 +03:00
hugovk
195453679a Merge branch 'master' into bomb
Conflicts:
	PIL/Image.py
2014-06-23 09:51:46 +03:00
hugovk
78003ca473 Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
hugovk
a600f84029 Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
wiredfool
dfe7ff515f Additional jpeg qtables tests 2014-06-20 01:09:59 -07:00
wiredfool
fcd4c662bf Fixed JPEG qtables test 2014-06-20 00:41:58 -07:00
wiredfool
9935c40d6c Merge branch 'master' into jpeg_qtables 2014-06-20 00:35:06 -07:00
wiredfool
7dc4dcc9fd Merge from master 2014-06-20 00:34:32 -07:00
wiredfool
cf56ccc828 Working on python 2.6 2014-06-19 15:17:00 -07:00
wiredfool
b8834fa3a6 Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
wiredfool
0b0ec8b40f Proper skipping of tests when lcms2 is not installed 2014-06-19 06:06:23 -07:00
hugovk
7794831704 Bring back tester.py for now. Not using it for unit tests. 2014-06-10 13:36:38 +03:00
hugovk
1686016f1c Remove old tester.py so it's not picked up by nosetests as a test 2014-06-10 12:20:51 +03:00
hugovk
4dd47fc697 Add test base class and helper functions 2014-06-10 12:12:53 +03:00
hugovk
3ec505958e Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
hugovk
c66f332679 Remove empty tests 2014-06-10 12:09:47 +03:00
hugovk
e8ef927bac Remove test_001_archive.py as it doesn't do anything: ../pil-archive/* doesn't exist 2014-06-10 12:05:46 +03:00
hugovk
995f367755 Skip test_floodfill_border() on PyPy to avoid fatal error 2014-06-06 08:02:18 +03:00
Alex Clark ☺
841582fa26 Merge pull request #685 from hugovk/docstring
ImageCms fixes
2014-06-04 18:31:40 -04:00
Dov Grobgeld
5fe80c6d4a Initial commit of binary morphology addon. 2014-06-04 23:03:00 +03:00
wiredfool
618a79c1c6 Merge from master, pre-unittest conversion 2014-06-03 14:42:22 -07:00
hugovk
c9a4272af6 Replace python-imaging with python-pillow (but yet not Coveralls) 2014-06-03 13:02:44 +03:00
hugovk
6115d348b9 Add more tests for ImageCms 2014-06-02 13:19:01 +03:00
hugovk
9e984a19b1 Add more tests for ImageCms 2014-06-02 13:00:21 +03:00
hugovk
e983057294 pep8/pyflakes 2014-06-02 12:41:48 +03:00
wiredfool
5b73d8f57b Merge pull request #661 from hugovk/test_imagedraw
Add more ImageDraw tests
2014-06-01 09:09:58 -07:00
wiredfool
60e2eaa5e9 Merge pull request #680 from hugovk/spider
Add tests for SPIDER image files
2014-05-30 08:46:33 -07:00
Chris Sinchok
70a50907c2 This patch allows a JPEG image to be saved with a specific qtables
value (in dictionary format).

Previously, this would throw a TypeError when checking if the qtables
value was actually a preset. By adding an isStringType check, we can
avoid this error.
2014-05-28 17:21:58 -05:00
hugovk
ae37743ac7 Both kinds of bounding box for arc, chord and pieslice. 2014-05-27 23:31:31 +03:00
hugovk
fd05e9c756 Test decompression bomb warnings 2014-05-27 12:40:52 +03:00
hugovk
14c8d8afe4 More spider tests 2014-05-26 21:00:20 +03:00
hugovk
268c419d7c Simple spider test. Test image created with Pillow. 2014-05-26 20:09:12 +03:00
hugovk
8f92562ec3 Remove old FIXME comment [CI skip] 2014-05-24 17:36:31 +03:00
hugovk
35336e5afd Test arc, chord, pieslice give TypeError when bounding box is [(x0, y0), (x1, y1)] 2014-05-24 17:31:37 +03:00
wiredfool
26b0f20763 Merge pull request #669 from wiredfool/tiff_compression
Use libtiff for writing any compressed tiff files
2014-05-24 13:16:57 +01:00
wiredfool
a91387e9dd Merge pull request #673 from wiredfool/pickling
Support for pickling Image objects
2014-05-24 13:14:42 +01:00
wiredfool
3f18e0adfe Merge pull request #619 from eliempje/master
Bugfix: EPS thumbnail failed
2014-05-24 13:09:25 +01:00
wiredfool
cd17b66541 Merge pull request #647 from hugovk/house
Fix for junk JPEG data
2014-05-23 00:06:09 +01:00
hugovk
0c1c620e30 Add test for #647. Fails without fix. 2014-05-21 14:33:28 +03:00
hugovk
aed2646dc2 pep8/pyflakes 2014-05-21 14:32:24 +03:00
hugovk
9c048e44d1 Permission to use and distribute (under the MIT license) this image as a testfile granted by cepreu2github: https://github.com/python-imaging/Pillow/issues/630#issuecomment-43674288 2014-05-21 14:30:05 +03:00
wiredfool
3b227d1a05 Merge from current master 2014-05-20 11:47:53 -07:00
wiredfool
413a086c09 Remove READ|WRITE_LIBTIFF guards for LZW/packbits compression tests 2014-05-20 10:13:58 -07:00
wiredfool
8d4a77a939 merge from master 2014-05-20 08:58:09 -07:00
hugovk
a59bc40c38 flake8 2014-05-17 23:33:50 +03:00
hugovk
55b1accb42 Add (failing) test for #664 2014-05-17 19:08:08 +03:00
eliempje
a712cec02b Added test and testfile for issue #302 2014-05-14 23:14:55 +02:00
hugovk
60b2570133 Test ImageDraw's bitmap() 2014-05-13 14:43:48 +03:00
hugovk
5b55cb72d3 Test experimental floodfill with a border 2014-05-12 23:33:05 +03:00
hugovk
961db29ff6 Test experimental floodfill() 2014-05-12 23:27:02 +03:00
hugovk
6b274b4c5e More ImageDraw tests. Some may need redoing after issues #367 and #463 are sorted. 2014-05-12 21:45:16 +03:00
hugovk
84c7d25606 Make sure bounding box in ints (for Py3) 2014-05-12 19:55:18 +03:00
hugovk
92eea7a9cc Tests for ImageDraw 2014-05-12 17:32:04 +03:00
hugovk
8cda5170c8 Fix bytes/str and reinstate test 2014-05-12 14:45:54 +03:00
hugovk
c37aa0a9ca Fix tostring()/tobytes() warning and reinstate test 2014-05-12 14:30:03 +03:00
hugovk
bcb8534dcf Temporarily remove 'failing' 1-mode PDF test 2014-05-11 17:46:13 +03:00
hugovk
741297326a Temporarily remove 'failing' 1-mode PDF test 2014-05-11 17:41:07 +03:00
hugovk
6520004289 Add monochrome PDF test 2014-05-11 17:35:49 +03:00
hugovk
8f1a00ae92 Temporarily remove failing P-mode PDF test 2014-05-11 17:28:41 +03:00
hugovk
3e2ff13aa8 Fix CMYK test 2014-05-11 17:23:10 +03:00
hugovk
c15601e0b0 Add some more pdf tests 2014-05-11 17:16:13 +03:00
hugovk
f165d2034f Simple test for saving to PDF 2014-05-11 09:01:09 +03:00
wiredfool
54173d2c67 Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
wiredfool
471a1420b9 Merge commit '329fd00d3fe2709c043c73e075da03b6d9729a2b' into cleanup 2014-05-09 20:53:06 -07:00
hugovk
5f195ae1a7 On Py3.4, a PendingDeprecationWarning comes from Coverage.py for using the imp module. This warning causes 3.4 builds to fail so ignore the warning from importing coverage. 2014-05-09 11:41:43 +03:00
hugovk
11227e5dc1 Fix test because thumbnail() retains aspect ratio 2014-05-08 23:01:44 +03:00
Hugo
7a9badf18e Fix tests so image2 is resized and thumbnailed 2014-05-08 22:44:46 +03:00
hugovk
23eb9e1de8 Thumbnail tests for https://github.com/python-imaging/Pillow/pull/619 2014-05-08 11:45:02 +03:00
hugovk
134295bfd4 Resize tests for https://github.com/python-imaging/Pillow/pull/619 (plus flake8) 2014-05-08 11:43:04 +03:00
hugovk
a7d21dec15 Remove temp test code 2014-04-26 20:41:01 +03:00
hugovk
7d1cdc54c4 Don't skip all the tests on Python 3 when there's no cPickle, just the irrelevant test 2014-04-26 20:20:42 +03:00
hugovk
8794c46318 For pickling, test with Image's __eq__. Everything else can use the old assert_image_equal. 2014-04-26 20:05:02 +03:00
hugovk
2a6f2c5442 Add __eq__ and __ne__ to Image to be able to test image equality when pickling. Pickle more data. 2014-04-26 19:43:53 +03:00
hugovk
e4185694a2 P3 will skip explicit cPickle tests 2014-04-22 09:30:15 +03:00
hugovk
adfbe8323a Tests and partial implementation of pickling (#629) 2014-04-22 08:54:16 +03:00
wiredfool
5ca5652d0b Merge pull request #551 from wiredfool/with
Image.close, Context manager support
2014-04-17 22:20:30 -07:00
wiredfool
471cecb523 tests for close and context manager 2014-04-17 22:01:55 -07:00
wiredfool
ca36b6cd36 Merge pull request #606 from wiredfool/pgm
16 bit Read/Write PGM support.
2014-04-17 12:22:18 -07:00
wiredfool
1945fd6cb4 Merge pull request #618 from hugovk/master
Add version 0.30 of OleFileIO (2014-02-04)
2014-04-17 12:19:03 -07:00
wiredfool
aba195d35e Tests for #614 2014-04-14 06:13:57 -07:00
hugovk
329fd00d3f Test j2k 2014-04-14 13:49:29 +03:00
wiredfool
189c40dc9e Merge branch 'patch-1' of https://github.com/Hijackal/Pillow into Hijackal-patch-1 2014-04-14 03:15:38 -07:00
hugovk
7ba5962512 Fix typo and update test 2014-04-14 00:27:08 +03:00
hugovk
6ff77414b3 Test some debug functions. No asserts, just check they run ok. 2014-04-14 00:05:31 +03:00
hugovk
949e87e55d Remove 'failing' test_debug() 2014-04-13 23:28:41 +03:00
hugovk
f40cf7870f More testing 2014-04-13 23:16:01 +03:00
hugovk
bfc05b7a8c Handle bytes in test for Py2 and 3 2014-04-11 15:02:42 +03:00
hugovk
2271ee6f65 Add some simple tests for OleFileIO.py 2014-04-11 14:53:33 +03:00
hijackal
7f164d641f Test image: TIFF for OPEN_INFO = {(II, 0, 3, 1, (32,), ()): ("F", "F;32F")} 2014-04-11 11:39:05 +02:00
hugovk
9c6b07d21b Remove temporary forced failure 2014-04-11 10:59:58 +03:00
hugovk
cf6daf03fe Use correct brackets 2014-04-11 10:47:37 +03:00
hugovk
267cdf523e Print out lists of failed tests (and temporarily force a failure for testing) 2014-04-11 10:28:06 +03:00
Terseus
113b8c2a76 Removed non-ASCII character from messages 2014-04-09 20:06:58 +02:00
Terseus
b987d90568 Added tests for lines with 1px slope
This tests are designed to guarantee that the wide lines behave exactly
like normal lines drawn with the Bresenham's algorithm.
This tests are somewhat subjective since this is non-defined behavior,
but I think that mimic the Bresenham's algorithm is reliable enough.

Currently the horizontal version of this test **fail**.
2014-04-09 19:34:50 +02:00
Terseus
4b7236f460 Added tests of hor/ver lines 101px wide
These tests should guarantee that the proportion of the width is
maintained with a margin of error < 1%.
2014-04-09 19:34:50 +02:00
Terseus
8228caf14d Added some oblique 45º lines tests
Only the oblique 3 pixels wide lines are defined:
* The oblique 2 pixels wide lines are somewhat hard to define.
* To define the oblique lines wider than 3 pixels we neet to define
  first how the oblique lines should expand their width (realistic or
  exact).
2014-04-09 19:33:46 +02:00
hugovk
9210f88102 Start coverage measurement earlier so tests are properly covered 2014-04-08 17:20:52 +03:00
hugovk
5afdd6cb54 pep8 Tests/tester.py 2014-04-08 17:17:10 +03:00
hugovk
ed00b2e6d2 Read existing data coverage on measurement start, save on stop. Only measure PIL code. 2014-04-08 12:38:30 +03:00
hugovk
3e9cde4412 Use tester.py's built-in coverage and coverage.py's built-in cleanup 2014-04-08 12:28:00 +03:00
wiredfool
2daac27713 Tests for writing hi bit pgm 2014-04-07 22:22:42 -07:00
wiredfool
864fb95cb1 Read test for 16 bit binary pgm file, #602 2014-04-07 22:10:45 -07:00
Terseus
92dd58c014 Added descriptive errors to imagedraw tests 2014-04-06 14:03:03 +02:00
wiredfool
82d7524add made has_ghostscript a method, using it from test_imagefile 2014-04-04 13:33:54 -07:00
Terseus
1c02d467ef Added test for vertical lines.
The behavior is consistent with horizontal lines, see previous commit
for details.
2014-04-04 12:45:47 +02:00
Terseus
fee2faa8dc Added test for horizontal lines
Notice that the expansion of the line width depends on the order of the
points:
  * If the bigger axis value is provided as the *second* point the line
    expand first to the *positive* side of the axis.
  * If the bigger axis value is provided as the *first* point the line
    expand first to the *negative* side of the axis.
  * If the line's width is odd this doesn't matter, as the line will
    expand the same amount to both sides.

This behavior should be consistent in both horizontal and vertical lines.
2014-04-04 12:35:26 +02:00
Terseus
e2cb2195eb Added test for a simple right triangle
The diagonals of the right angled edges must be perfect and the bottom
vertice should be drawn.
2014-04-04 11:46:58 +02:00
Terseus
ec74779b19 Added test for a simple square 2014-04-04 11:28:41 +02:00
Terseus
7de14a51dd Added base method and constants to test_imagedraw
The method `create_base_image_draw` will be used in all the new draw
tests.
2014-04-04 10:47:22 +02:00
wiredfool
ab3687e10f Tests correctly check for the core object 2014-04-03 16:04:29 -07:00
wiredfool
182e7782fa Trapping warnings 2014-03-30 09:26:03 -07:00
wiredfool
4877d52cf4 warn category defaults to UserWarning 2014-03-30 09:25:52 -07:00
wiredfool
0d7115a5a4 Merge from master 2014-03-30 09:14:04 -07:00
Alex Clark ☺
6e6bc21ba1 Merge pull request #565 from al45tair/icns-support
Improved icns support
2014-03-30 07:30:14 -04:00
Alex Clark ☺
0baa82ac69 Merge pull request #580 from wiredfool/libtiff-fd-leak
Fixes libtiff leaking open files
2014-03-29 18:25:57 -04:00
wiredfool
65c17d4176 Removed warning import, stray im=None, and moved os import to top 2014-03-28 08:35:18 -07:00
Alastair Houghton
5dd67abd71 Merge branch 'master' into icns-support 2014-03-28 09:15:20 +00:00
Alastair Houghton
c2ddcbfde9 Merge JPEG 2000 icon support. 2014-03-28 09:11:45 +00:00
Alastair Houghton
5aac5b7eff Made JPEG2K support for files conditional on its inclusion in pillow build. Added a JPEG2K icon test. 2014-03-28 09:09:55 +00:00
wiredfool
b73b4a7b63 Tests for #526 2014-03-27 22:17:27 -07:00
wiredfool
3e24bc684d Merge pull request #578 from wiredfool/xrange
Python3 issues in JpegImagePlugin
2014-03-27 20:52:07 -07:00
wiredfool
7a8025b947 Merge of travis-tweaks into jpeg2k 2014-03-27 20:36:15 -07:00
wiredfool
a2800ba9a1 Additional commits from pr 2014-03-27 20:00:10 -07:00
wiredfool
5a4808d2d2 test cleanup: don't mask file builtin, data is unused 2014-03-27 16:44:58 -07:00
wiredfool
c7af2bf5b0 Test for #577 2014-03-27 16:39:58 -07:00
Alastair Houghton
0eccdf534d Merge branch 'master' into icns+jp2k 2014-03-27 08:38:02 +00:00
Alastair Houghton
946753a3b5 Ignore spurious messages from OpenJPEG. 2014-03-27 08:36:15 +00:00
wiredfool
2b81156619 merge to master 2014-03-26 18:46:35 -07:00
wiredfool
55ea6c01b1 OSError catching in the test as well 2014-03-26 13:31:20 -07:00
wiredfool
edc3215e34 Disabling poor performing test on pypy 2014-03-26 09:12:51 -07:00
Alastair Houghton
1dfa9faae2 Updated icons. 2014-03-26 14:08:54 +00:00
Alastair Houghton
cbe7e93bdd Merge branch 'icns-support' into icns+jp2k 2014-03-26 11:18:26 +00:00
Alastair Houghton
5904ac1718 Added some tests and a couple of icns files. 2014-03-26 10:49:39 +00:00
wiredfool
8adbaf8098 Better tests, fixes for leaking RGB->P transparency 2014-03-26 00:01:10 -07:00
wiredfool
89c24e971c Tests for #510 2014-03-25 23:33:49 -07:00
wiredfool
9518214980 Tests for #544 2014-03-25 21:42:40 -07:00
cgohlke
1adf30b701 TST: fix failing BMP tests on Windows 2014-03-20 01:16:31 -07:00
Alastair Houghton
f1b79ec5c0 Really added the tests this time. 2014-03-19 12:17:14 +00:00
wiredfool
ed36893ca0 Clarified Test Validity 2014-03-17 13:29:44 -07:00
Alex Clark ☺
da3ab720f4 Merge pull request #534 from homm/fix-getcolor-rgba
Fix ImageColor.getcolor
2014-03-17 10:20:40 -04:00
Alex Clark ☺
054eb71bc6 Merge pull request #525 from wiredfool/ico_parser
Make ICO files work with the ImageFile.Parser interface, fixes #522
2014-03-17 10:14:03 -04:00
Alex Clark
0e9f4c6c60 Merge branch 'dschmidt_palette_513' of https://github.com/wiredfool/Pillow into wiredfool-dschmidt_palette_513 2014-03-17 09:48:24 -04:00
Alex Clark
c1d44980b8 Merge branch 'pcx' of https://github.com/wiredfool/Pillow into wiredfool-pcx 2014-03-17 09:38:38 -04:00
Alex Clark ☺
35241da3f8 Merge pull request #517 from wiredfool/pcf
Fix support for characters >128 using .pcf or .pil fonts in Py3k
2014-03-17 08:30:02 -04:00
Alex Clark ☺
eb9da126ed Merge pull request #516 from wiredfool/cffi-pixelaccess
Skip CFFI test earlier if it's not installed
2014-03-17 08:27:38 -04:00
wiredfool
414e887726 Merge Changes from Master 2014-03-04 22:43:19 -08:00
wiredfool
f8ce951a2d Merge Changes from master 2014-03-04 22:41:36 -08:00
wiredfool
0fc225c358 test for issue #434 2014-03-04 22:29:55 -08:00
wiredfool
1706e59d1c cleanup tempfile 2014-03-04 22:02:22 -08:00
wiredfool
ae5bcb8e84 Test for issue #513 2014-03-04 22:02:03 -08:00
wiredfool
a3371ee9fe Tests for issue #523 2014-03-03 23:05:50 -08:00
homm
68a64e8071 fix ImageColor.getcolor in cases:
- color is rgba, mode is RGB
- mode is LA
2014-03-03 16:10:34 +04:00
wiredfool
0d453d9805 Added test for Palette transparency=0 2014-02-28 16:29:34 -08:00
wiredfool
36323d1140 Make ICO files work with the ImageFile.Parser interface, fixes #522 2014-02-16 20:58:06 -08:00
Alex Clark ☺
cbdd639838 Merge pull request #504 from e98cuenc/highquality
Improve heuristic used when saving progressive and optimized JPEGs with high quality values.
2014-02-10 07:23:44 -05:00
wiredfool
41e124af05 Skip CFFI test earlier if it's not installed 2014-02-04 21:45:34 -08:00
wiredfool
540e1e2c68 Added ability to render a bytes object using an old style bitmap font to make it easier to use in Py3k 2014-02-04 21:41:16 -08:00
wiredfool
4d32136365 Working in py3k, not in 2.x 2014-02-04 21:41:16 -08:00
Joaquín Cuenca Abela
96ca9ff6ff Another attempt to achieve python 3 compatibility. 2014-02-04 17:37:18 +01:00
Joaquín Cuenca Abela
97b23af7e5 Try to fix test_file_jpeg in Python3 2014-02-04 17:23:29 +01:00
wiredfool
c9955628e2 Merge from master 2014-01-31 21:38:34 -08:00
wiredfool
de1b02dc8c Merge pull request #508 from wiredfool/no-icc-profile
Fix crash on saving PNG when icc_profile is None
2014-01-31 14:03:21 -08:00
wiredfool
8a86364885 Merge branch 'no-icc-profile' of github.com:wiredfool/Pillow into no-icc-profile 2014-01-31 13:59:38 -08:00
wiredfool
3ea93e5de5 Merge branch 'bmp_test' of github.com:wiredfool/Pillow into bmp_test 2014-01-31 13:52:17 -08:00
wiredfool
288a563d1a merge from master 2014-01-31 13:45:31 -08:00
Alex Clark ☺
5750d5d6ef Merge pull request #474 from sciunto/bool
Maint: minor patch on booleans + travis
2014-01-31 13:16:38 -08:00
Joaquín Cuenca Abela
a0af87e524 Make test_file_jpeg compatible with Python 3 2014-01-28 08:48:40 +01:00
wiredfool
97c0be9358 enable test by default 2014-01-27 20:31:22 -08:00
wiredfool
0a156ca68a Check for unsupported bitmap compression/encoding 2014-01-27 20:30:52 -08:00
wiredfool
14175b786d Cleaning out prints, reenabling bad/questionable 2014-01-27 20:26:26 -08:00
Joaquín Cuenca Abela
bab068a337 Improve heuristic used when saving progressive and optimized JPEGs with high quality values. 2014-01-27 20:27:03 +01:00
wiredfool
ff417ceaac (supported) good bmps all pass 2014-01-26 20:38:54 -08:00
wiredfool
b3008a5386 good bmp tests, many failing for matching the images 2014-01-26 20:38:54 -08:00
wiredfool
29c9e952b3 return value for assert_image_similar 2014-01-23 21:06:33 -08:00
wiredfool
0d97ad0d8c Test Images 2014-01-23 20:29:58 -08:00
wiredfool
046a226f34 Don't use gigs of memory with invalid palette sizes 2014-01-23 20:11:05 -08:00
wiredfool
7d76ae2d91 Test for #495, writing to bytesio 2014-01-22 20:40:37 -08:00
wiredfool
15d6cc9f57 bmp test reorganization 2014-01-22 20:40:02 -08:00
wiredfool
8ce2faa8c9 enable eps test in test_imagefile, test passes 2014-01-21 23:17:47 -08:00
wiredfool
598bd02650 Tightened up the tests 2014-01-21 20:50:54 -08:00
wiredfool
0492409def don't use bare asserts, don't mask file builtin with local 2014-01-20 13:34:48 -08:00
wiredfool
e1489d7c76 Merge pull request #500 from wiredfool/webp_lossless_abi
Webp lossless abi
2014-01-20 13:18:30 -08:00
wiredfool
78a51237c5 tests for #491/492, webp lossless abi 2014-01-20 13:05:30 -08:00
wiredfool
2cc2a8cd62 Merge pull request #499 from wiredfool/webp_exif
*  Don't send None as exif to JpegImagePlugin._getexif -- homm 
*  Test for fix -- wiredfool
2014-01-20 11:03:02 -08:00
wiredfool
54a3dc417f Test for PR#498 2014-01-20 10:59:30 -08:00
Bruno Renié
e1e64904c7 Cleanup handling of ICC profile, more extensive testing 2014-01-19 19:09:40 +01:00
Bruno Renié
0348fcac51 Fix crash on save when icc_profile is None 2014-01-19 16:40:39 +01:00
cgohlke
5f53d98b8e Add test for issue $479 2014-01-11 12:30:09 -08:00
wiredfool
79a7fdc100 I32 modes, not that I can actually use the I;32L/B ones 2014-01-08 21:18:38 -08:00
wiredfool
bfdc599c28 F mode support 2014-01-08 20:23:20 -08:00
François Boulogne
ead121d951 MAINT replace is False by not 2014-01-08 22:07:35 -05:00
François Boulogne
6b53d0d007 MAINT: replace is True: by : 2014-01-08 08:43:01 -05:00
François Boulogne
980517587d MAINT: use is instead of == for True, False, None 2014-01-07 21:24:21 -05:00
François Boulogne
923018dfeb MAINT: s/while 1:/while True:/ 2014-01-07 21:21:24 -05:00
wiredfool
b6ad79d9f9 detailed tests for I;16 modes, merged from i16-pixelaccess branch 2014-01-06 23:25:41 -08:00
wiredfool
e87e0333fb Merge branch 'i16-pixelaccess' into cffi-pixelaccess 2014-01-06 23:22:35 -08:00
wiredfool
5dfadf623b LA, PA image modes 2014-01-06 22:51:31 -08:00
wiredfool
121b51aebc trying to bust up the JIT a bit 2014-01-06 22:09:00 -08:00
wiredfool
4cacfe6b11 longer benchmark 2014-01-06 08:55:06 -08:00
wiredfool
c98f731f7e Ensuring c-api access 2014-01-05 21:36:13 -08:00
wiredfool
273a5014d2 more extensive testing, matches original c code 2014-01-05 21:18:53 -08:00
wiredfool
de53889711 removed initial testing 2014-01-05 20:50:05 -08:00
wiredfool
bb20f6ca83 basic benchmark shows ~order of magnitude speedup 2014-01-05 16:45:01 -08:00
wiredfool
5efe737f6f Cffi pixel access object, #248 2014-01-05 10:41:25 -08:00
Alex Clark ☺
bcfc06d6d0 Merge pull request #469 from manisandro/test_webp
Use assert_image_similar in test_file_webp.py
2014-01-04 13:34:43 -08:00
Sandro Mani
4de31b2693 Use assert_image_similar instead of assert_image_equal in test_file_webp.py 2014-01-04 21:48:18 +01:00
wiredfool
1dd80b2625 reverted int32 changes 2013-12-30 21:00:32 -08:00
cgohlke
55d4160bcc TST: fix comparison of X/Y Resolution rational numbers 2013-12-29 20:14:51 -08:00
cgohlke
b7aafa2036 Add assert_almost_equal() for testing float numbers 2013-12-29 20:05:55 -08:00
Alex Clark ☺
ae7edfa58d Merge pull request #441 from wiredfool/lut
Image.point fixes for numpy.array and docs
2013-12-28 06:08:08 -08:00
Alex Clark ☺
243160ee78 Merge pull request #448 from wiredfool/2gigapix-redux
2gigapix redux
2013-12-28 06:06:42 -08:00
Alex Clark ☺
ad47ea5a52 Merge pull request #424 from wiredfool/trns-write-bydefault2
Save the transparency header by default for PNGs
2013-12-28 05:57:45 -08:00
Alex Clark ☺
d48f301d57 Merge pull request #423 from wiredfool/trns-png
Support for PNG tRNS header when converting from RGB->RGBA
2013-12-28 05:56:03 -08:00
Alex Clark
35f66adbde Remove my inferior gs binary check 2013-12-28 08:53:46 -05:00
Alex Clark ☺
6a52e272cf Merge pull request #420 from wiredfool/gs-test
Skip ghostscript test when gs is missing
2013-12-28 05:52:42 -08:00
Alex Clark ☺
e4ae62ae59 Merge pull request #418 from wiredfool/AurelienBallier-master
PyQT5 Support
2013-12-28 05:50:49 -08:00
Alex Clark ☺
f5fb2d7e7d Merge pull request #417 from wiredfool/libtiff-save2
Updates for saving color tiffs w/compression using libtiff
2013-12-28 05:47:47 -08:00
Alex Clark
26ec2a09f0 Skip eps file test if no ghostscript 2013-12-28 07:47:09 -05:00
wiredfool
598d97daff Reorg+add test for #452 2013-12-19 21:38:31 -08:00
wiredfool
aa1c0fdfb6 merge from master 2013-12-19 20:48:49 -08:00
Eric Soroos
77008c0b62 test for 2gb numpy image segfault 2013-12-13 21:05:08 -08:00
wiredfool
4791d156f1 Comments/Docs, fixes #440 2013-12-10 16:05:05 -08:00
wiredfool
d05b5d9060 Restore numpy.array as valid lookup tables 2013-12-10 15:47:26 -08:00
wiredfool
28f22fc908 Return positive size for > 2gpx images, fixes #436 2013-12-04 20:59:33 -08:00
wiredfool
543f96de61 Merge from master 2013-11-30 09:57:00 -08:00
wiredfool
d65a2c8018 Save the transparency header by default for PNGs 2013-11-26 15:06:26 -08:00
wiredfool
0356741a29 Now using the rgbT2rgba conversion for L+transparency to RGBA, dropping the palette hack 2013-11-26 13:04:10 -08:00
wiredfool
e12528fb62 dyslexic typo 2013-11-26 12:22:09 -08:00
nikmolnar
d030b4f48a Added a test for issue #421 2013-11-22 16:04:51 -08:00
wiredfool
c82bfd30cf cleanup temp file 2013-11-21 22:15:34 -08:00
wiredfool
6bd51e053b disabling bw compression test due to stderr pollution from libtiff 2013-11-21 22:14:29 -08:00
wiredfool
60c93ce1b1 Testing default pil implemented compressions with libtiff 2013-11-21 22:13:57 -08:00
wiredfool
94e3c75179 Merge from 12-bit-tiff 2013-11-21 21:41:54 -08:00
wiredfool
3d31bf394b removing libtiff compression based decoder names 2013-11-21 21:10:17 -08:00
wiredfool
019074670b Test for 12bit image using libtiff 2013-11-21 20:37:52 -08:00
wiredfool
1e41f2dad9 Skip ghostscript test when it's not executable 2013-11-21 14:32:18 -08:00
wiredfool
886b075526 Merge from master 2013-11-20 22:52:47 -08:00
wiredfool
b0b7c1acb5 removed debugging prints 2013-11-20 22:43:39 -08:00
wiredfool
29fb4523d5 tests for imageqt4/5 2013-11-20 22:19:28 -08:00
wiredfool
b73ae9c27a Tests for 12bit tiff rawmode 2013-11-20 16:54:49 -08:00
Esteban Santana Santana
64e53de5c9 Another typo. 2013-11-20 02:25:50 -06:00
Esteban Santana Santana
155239cbc3 Copy paste issue on that last commit. 2013-11-20 02:22:04 -06:00
Esteban Santana Santana
7797633d7a Loosened testing rigor for EPS files.
Due to differences in rendering between platforms (mainly antialiasing), we had to lower the rigor with which we test our EPS handling. Instead of making the test fail if the rendered image does not exactly match, we now only fail if the images are grossly divergent.
2013-11-20 02:14:29 -06:00
Esteban Santana Santana
582d54d055 Test harness for EPS files.
We now have a test harness for EPS files. Two variants were created one for the default scale=1 and one where scale=2. These two tests are run against two different EPS files, one with zero for the start of the bounding box and one where this is not the case. PNG test renders are used to make sure the output match what we expect. Lastly the sample EPS files were generated using the included create_eps.gnuplot file and the gnuplot program on a Mac.
2013-11-20 00:43:10 -06:00
wiredfool
0ffc1a848a Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format 2013-11-19 14:48:01 -08:00
wiredfool
dd93820b74 Failing test for #403 2013-11-07 16:39:57 -08:00
wiredfool
b4aa0429aa successful roundtrip test 2013-11-07 16:39:36 -08:00
wiredfool
1d6f6ffa10 error test for bw compression on RGB file 2013-11-05 20:59:57 -08:00
wiredfool
a4a9b36ed0 packbits isn't working correctly 2013-11-05 20:53:18 -08:00
wiredfool
d2f1fa0e5f two additional tags for saving color images with libtiff 2013-11-05 20:49:09 -08:00
Alex Clark ☺
e3d85700b4 Merge pull request #390 from wiredfool/webp-lossless
Lossless WEBP Support
2013-10-24 03:08:24 -07:00
wiredfool
388c25b781 PhotometricInterpretation is set from SAVE_INFO, not the original image, so spurious test failure. 2013-10-23 20:50:01 -07:00
wiredfool
63995459bc merge from master 2013-10-22 16:18:06 -07:00
wiredfool
f8abb98ffd Merge from master 2013-10-22 16:05:18 -07:00
wiredfool
2c1e800836 added new VP8 mode for lossless reading of RGBA, fixes failing tests 2013-10-22 12:44:09 -07:00
wiredfool
27b1054b77 Tests for writing lossless RGB and RGBA images 2013-10-22 12:32:31 -07:00
wiredfool
6357b4707c String attr test case 2013-10-22 10:09:25 -07:00
wiredfool
758da6c581 whitespace error 2013-10-22 10:06:33 -07:00
Eric Soroos
8d21ce1df7 py3k 2013-10-21 22:53:35 +00:00
Eric Soroos
3128a76495 MM and II 16 bit integer tiffs pack/write properly using libtiff on bigendian platform 2013-10-21 22:37:20 +00:00
wiredfool
83bd3291db tests for the actual compression method of the compressed file 2013-10-21 09:29:51 -07:00
Eric Soroos
1945fecdb6 Tests for endian issues in decoding 16bit tif images 2013-10-21 05:19:52 +00:00
Eric Soroos
366f9a5f35 uint16 varies from platform to platform, <u2 is spefific 2013-10-19 03:30:02 +00:00
hugovk
c91bd27eec Add tests for rotated and non-rotated transposed font
Check the box size of an ImageFont.TransposedFont matches that of the original ImageFont.
2013-10-17 17:36:38 +03:00
Alex Clark ☺
55a0792815 Merge pull request #380 from wiredfool/lcms2
LCMS1 replaced with LCMS2
2013-10-16 09:09:15 -07:00
wiredfool
deb424c5cd working tests for LAB color conversions using ImagingCMS 2013-10-15 22:06:30 -07:00
wiredfool
1865a5c438 Shifting the midpoint of the ab channels to 128. unshifting back to signed int on pack 2013-10-15 22:06:30 -07:00
Seth VanHeulen
89b2653135 Added tests for new 16 bit raw unpackers 2013-10-15 14:10:11 -04:00
wiredfool
4458787f5e Back to RGBx format, 3 bands in 4 bytes. Tests for internal consistency 2013-10-14 22:47:27 -07:00
wiredfool
215b61aadf added lab->srgb and srgb->lab->srgb tests 2013-10-11 23:39:16 -07:00
wiredfool
ace78d0734 Lab is Uint, Int, Int. Tests failing 2013-10-11 23:31:47 -07:00
wiredfool
1c3932e89f Added LAB mode, core dumped 2013-10-10 23:27:34 -07:00
wiredfool
ac38d91a2d Well, now I know _why_ it's failing. We don't have a concept for LAB color 2013-10-10 23:02:33 -07:00
wiredfool
b506e2ad44 Fixed ability to create LAB profiles with color temperatures 2013-10-10 22:42:27 -07:00
wiredfool
9042f8c61f split tests, disable info difference tests 2013-10-10 22:16:56 -07:00
wiredfool
21697f676b Merge branch 'master' into tifftags 2013-10-08 21:34:02 -07:00
wiredfool
a91283061e Python3 fixes 2013-10-07 23:30:55 -07:00
wiredfool
0bded743f5 Additional test image 2013-10-07 23:14:46 -07:00
wiredfool
350cc702f1 Additional tests for reading and writing Tiff ImageFileDirectories 2013-10-07 23:01:15 -07:00
Alex Clark ☺
056690792e Merge pull request #364 from wiredfool/premultiply
Alpha Premultiplication support for transform and resize
2013-10-07 06:38:11 -07:00
wiredfool
7077cd18af Tests for premultiplication on transform/resize 2013-10-04 12:55:25 -07:00
wiredfool
30e6c6d1ab Merge branch 'master' into tifftags 2013-10-02 22:30:01 -07:00
wiredfool
dbf47837ce Add arbitrary tags to tiff images using an ImageFileDirectory 2013-10-02 22:06:17 -07:00
wiredfool
c00a33f8a1 reduce text volume on failed test 2013-10-02 12:04:16 -07:00
wiredfool
13860addc4 versioning 2013-10-01 23:22:45 -07:00
wiredfool
a0d7e72cbb don't write the test image 2013-09-30 22:47:22 -07:00
wiredfool
7546e1fb17 Py3. sigh 2013-09-30 22:39:17 -07:00
wiredfool
46c58560ba adding memset test 2013-09-30 22:39:17 -07:00
wiredfool
2afdc3776d quad test, with blank space test 2013-09-30 22:39:17 -07:00
wiredfool
2241f744d9 extents test 2013-09-30 22:39:17 -07:00
wiredfool
5e897341c6 Added mesh transform test 2013-09-30 22:39:17 -07:00
Alex Clark ☺
41b1021ffe Merge pull request #354 from wiredfool/test_numpy
Py3 fixes
2013-09-30 17:10:28 -07:00
wiredfool
05d0aa65f1 python2 fixes. sigh. 2013-10-01 00:05:55 +00:00
wiredfool
2855449414 Py3k fixes 2013-10-01 00:01:35 +00:00
wiredfool
f6e1313337 Made linespacing test more forgiving of font rendering differences 2013-09-30 16:41:11 -07:00
wiredfool
ca35a9d65d tests for img -> numpy.array 2013-09-30 14:10:58 -07:00