Commit Graph

744 Commits

Author SHA1 Message Date
Hugo
165d2765f6 Add some Windows-only tests 2014-09-18 17:50:31 +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