Commit Graph

1290 Commits

Author SHA1 Message Date
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