Commit Graph

1136 Commits

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