Commit Graph

2778 Commits

Author SHA1 Message Date
Andrew Murray
bd9cfb124b Added ImageGrab.grabclipboard test 2018-10-22 18:55:16 +11:00
Andrew Murray
467d2089be Enabled ImageGrab.grab test on AppVeyor 2018-10-22 18:39:07 +11:00
Andrew Murray
94925c5057
Merge pull request #3423 from hugovk/fix-feature-tests
Fix some tests
2018-10-22 08:53:26 +11:00
Hugo
06ad343d35 Simplify skipping 2018-10-21 17:47:35 +03:00
Hugo
e33812c56c Remove redundant parentheses 2018-10-21 17:05:40 +03:00
Hugo
cbba2c24bf Remove unused helper method 2018-10-21 17:05:14 +03:00
Hugo
cfc4c3e101 Switch check_ to test_ to enable them 2018-10-21 16:44:12 +03:00
Hugo
a1b9f94d60 skipUnless takes a condition and _reason_ 2018-10-21 16:42:41 +03:00
Andrew Murray
929f7397db Line too long 2018-10-21 18:26:08 +11:00
Andrew Murray
c7d924fd85 Too many blank lines 2018-10-21 18:11:50 +11:00
Andrew Murray
e84a78d828 Only close existing fp if fp is exclusive 2018-10-19 20:12:08 +11:00
Alexander
e26696cb8a skip old test 2018-10-18 10:33:52 +03:00
Alexander
e7aa44f58c add test for regression 2018-10-18 10:32:17 +03:00
Nazime
63a0b801b4 misspelled variable name 2018-10-15 13:06:08 +02:00
Nazime
86324a842d Add setting negative pixels and unittest 2018-10-15 12:51:24 +02:00
Andrew Murray
a7eb2ea9cc Change tuple background to global color table index when saving 2018-10-02 20:52:07 +10:00
Hugo
2fa54408d4
Merge pull request #3203 from radarhere/size
Changed Image size property to be read-only by default
2018-09-30 14:35:35 +03:00
Andrew Murray
82d942c3d8 Added warnings if image file identification fails due to lack of support 2018-09-30 15:34:27 +10:00
Andrew Murray
e3675f95fb Added tests 2018-09-30 15:08:44 +10:00
Andrew Murray
6f44ae1d27 Only deprecate setting of TIFF image sizes 2018-09-30 15:08:35 +10:00
Andrew Murray
0adeb82e98 Changed Image size property to be read-only by default 2018-09-30 13:45:18 +10:00
Hugo
d36365f4fb
Merge pull request #3227 from kkopachev/master
Adding support to reading tiled and YcbCr jpeg tiffs through libtiff
2018-09-29 19:45:29 +03:00
Hugo
84b4905a94
Merge pull request #3310 from radarhere/compression
Fixed None as TIFF compression argument
2018-09-29 19:44:43 +03:00
Hugo
8458641bb8
Merge pull request #3324 from radarhere/info
Changed GIF seek to remove previous info items
2018-09-29 19:41:03 +03:00
Hugo
e2deb07608
Merge pull request #3274 from radarhere/pdf
Improve PDF document info
2018-09-29 17:43:05 +03:00
Andrew Murray
1e305380ae
Merge pull request #3094 from hugovk/add-width-to-shapes
Add line width parameter to rectangle and ellipse-based shapes
2018-09-29 23:21:03 +10:00
Andrew Murray
a8261a2e89 Line too long 2018-09-27 20:35:00 +10:00
Andrew Murray
f8fbac68de Removed unused imports 2018-09-27 20:31:01 +10:00
Andrew Murray
90a9e85db3 Local variable is assigned to but never used 2018-09-27 20:31:01 +10:00
Andrew Murray
9b0d4baa8c Continuation line under-indented for visual indent 2018-09-27 20:31:01 +10:00
Andrew Murray
6dd0e48d9a Missing whitespace 2018-09-27 19:43:39 +10:00
Andrew Murray
9ee467d843 Too many blank lines 2018-09-27 19:42:23 +10:00
Andrew Murray
e5491f8162 Expected 2 blank lines 2018-09-27 19:42:16 +10:00
Hugo
a3f7ce5b73
Merge pull request #3313 from dinkolubina/fix-img-crop
Fix _crop and tests
2018-09-26 16:50:54 +03:00
Hugo
f29881fd60
Merge pull request #3377 from radarhere/color_diff
Added support to floodfill for non-RGB colors
2018-09-26 16:24:59 +03:00
Hugo
b9b4c03957
Merge pull request #2203 from jdufresne/test-exceptions
Avoid catching unexpected exceptions in tests
2018-09-26 15:43:41 +03:00
Hugo
5a8c48c4f3
Merge pull request #3205 from radarhere/transparency
Added transparency to matrix conversion
2018-09-26 15:29:21 +03:00
Andrew Murray
b5af283732 Added support to floodfill for non-RGB colors 2018-09-26 22:22:17 +10:00
Hugo
2389492f96
flake8 2018-09-26 14:09:31 +03:00
Hugo
36baea18ee
flake8 2018-09-26 13:58:15 +03:00
Hugo
78203606b7
Merge pull request #3364 from radarhere/contain
Added ImageOps pad method
2018-09-26 13:54:26 +03:00
Hugo
83d40f52b3
Merge pull request #3359 from bz2/i16_getextrema
Give correct extrema for I;16 format images
2018-09-26 13:17:31 +03:00
Hugo
1b9a1c7ed7
Merge pull request #3279 from radarhere/pyside2
Added PySide2
2018-09-26 13:16:31 +03:00
Andrew Murray
b09b43d8b2 Added ImageOps pad method 2018-09-26 20:07:46 +10:00
Konstantin Kopachev
300bdaad9e
Bring back YCbCrX in pack and unpack 2018-09-25 11:46:32 -07:00
Konstantin Kopachev
187782470b
Drop YCbCrX(XX) modes, as TIFF does not have to support that 2018-09-18 12:06:27 -07:00
Konstantin Kopachev
b0e5e5fb11
Update test files to be closer match of originals 2018-09-18 12:05:51 -07:00
Konstantin Kopachev
98d88fd1c6
Add tests for uncompressed tiff with interleaved bands 2018-09-18 12:05:50 -07:00
Konstantin Kopachev
52637a4268
move libtiff-related tests into libtiff test file 2018-09-18 12:05:50 -07:00
Konstantin Kopachev
1f63abdba8
Fix tiled raw tiff read and add tests 2018-09-18 12:05:49 -07:00
Martin Packman
0b3036454c Give correct extrema for I;16 format images
Currently gives None for a 16 bit greyscale image rather than the
true min and max values in the 0-65536 range. The internal
ImagingGetProjection function already supports I;16 but the
_getextrema needs to know to unpack the result.
2018-09-18 13:48:12 +01:00
Hugo
521ae77bb9
Merge pull request #3298 from kkopachev/webp-rgb
Read/save RGB webp as RGB (instead of RGBX)
2018-09-17 12:05:07 +03:00
Hugo
73c305d4d5
Merge pull request #3333 from jdufresne/debug-print
Clean up commented out debug print statements
2018-09-17 11:56:19 +03:00
Andrew Murray
f3842460ba Added line joints 2018-09-16 21:29:09 +10:00
Jon Dufresne
4503735df7 Remove additional references to nose tests 2018-09-15 12:29:11 -07:00
Andrew Murray
dd2698f00e
Merge pull request #3335 from uploadcare/more-tiff-modes
Add more raw Tiff modes (RGBaX, RGBaXX, RGBAX, RGBAXX)
2018-09-10 19:42:09 +10:00
Andrew Murray
9d9da79caa Close existing fp before setting new fp 2018-09-08 23:08:17 +10:00
Hugo
79552080ab
Merge pull request #3327 from radarhere/tga
Added orientation, compression and id_section as TGA save keyword arguments
2018-09-08 13:13:13 +03:00
Andrew Murray
325ca3cede Trim id_section if it is greater than 255 characters 2018-09-08 08:26:32 +10:00
Andrew Murray
9e4c54e10f Added orientation, compression and id_section as keyword arguments 2018-09-08 08:12:26 +10:00
wiredfool
4cfcc3b010 Tests for issue #1765 2018-09-07 20:32:54 +10:00
dinko
66207b47bc fix _crop and tests 2018-09-05 21:00:35 +02:00
Hugo
fa14698e66
Merge pull request #3233 from hugovk/PYTHONOPTIMIZE
Fix code for PYTHONOPTIMIZE
2018-09-05 19:57:10 +03:00
Alexander Karpinsky
f7eb11cc3d
Merge branch 'master' into more-tiff-modes 2018-09-05 17:58:31 +03:00
Alexander
5b24987fc3 update code style in tests 2018-09-05 17:57:25 +03:00
Alexander
accc66fb5e add support for RGBaXX and RGBaX raw tiff modes 2018-09-05 17:45:03 +03:00
Alexander
ad5cf0a0e2 Add RGBAX and RGBAXX tiff modes 2018-09-05 17:36:27 +03:00
Jon Dufresne
37f10651bd Clean up commented out debug print statements 2018-09-04 20:02:42 -07:00
Jon Dufresne
875e8c4bda Avoid catching unexpected exceptions in tests
Instead, allow exceptions to bubble up to the unittest exception
handler.

Prevents replacing the exception trace with a less informative
message. As the exceptions are always unexpected, should not need to
catch them explicitly in tests.
2018-09-04 19:43:20 -07:00
Hugo
fbe5bdb6b6 Also apply width to pieslice's inner lines 2018-09-01 14:40:36 +03:00
Andrew Murray
0411caba67 Catch ValueError when processing the edge of an image 2018-09-01 17:18:13 +10:00
Andrew Murray
fda3db6494
Merge pull request #3273 from radarhere/imagefilter
Changed Kernel to subclass BuiltinFilter
2018-09-01 09:45:43 +10:00
Andrew Murray
fbc121d678 Changed GIF seek to remove previous info items 2018-09-01 09:28:22 +10:00
Hugo
ca8d93f36c
Merge pull request #3289 from radarhere/qt_setup
Removed unnecessary setUp calls
2018-08-29 15:13:19 +03:00
Hugo
847581f7dd Remove redundant 'pass' 2018-08-25 19:06:11 +03:00
Hugo
663b06e223 Skip: CFFI imports pycparser which doesn't support PYTHONOPTIMIZE=2 2018-08-25 19:06:11 +03:00
Hugo
4218a769d7 Refactor cffi import and skipping 2018-08-25 19:06:11 +03:00
Hugo
d7e4d3db3f Convert assert into exception 2018-08-25 19:06:11 +03:00
Andrew Murray
3ae5f05410 Changed Kernel to subclass BuiltinFilter, instead of the other way around 2018-08-25 23:30:47 +10:00
Andrew Murray
f9ecda92da
Merge pull request #3295 from radarhere/imagefilter_tests
Added ImageFilter tests
2018-08-25 23:26:31 +10:00
Andrew Murray
9b09a3e9a8
Merge pull request #3230 from hugovk/test-imagechops
Test ImageChops
2018-08-25 14:38:05 +10:00
Andrew Murray
9c5c66cc8f Improved ImageChops tests 2018-08-25 11:59:27 +10:00
Andrew Murray
0a1fae8c2d Added tests 2018-08-25 08:56:41 +10:00
Andrew Murray
36b1afff26 Fixed None as TIFF compression argument 2018-08-25 08:21:43 +10:00
Andrew Murray
fc57658635 Added PDF creation and modification date info 2018-08-25 00:58:49 +10:00
Andrew Murray
de2fbc9dff Wait until mode is normalized to copy im.info into encoderinfo 2018-08-25 00:55:51 +10:00
Andrew Murray
e98469ecf6 Added transparency to matrix conversion 2018-08-25 00:54:51 +10:00
Andrew Murray
c8e00203ec Removed unnecessary setUp calls 2018-08-25 00:52:14 +10:00
Andrew Murray
df328a89a4 Added PySide2 2018-08-25 00:51:50 +10:00
Andrew Murray
6a7c7783eb Corrected wording 2018-08-17 19:40:13 +10:00
Andrew Murray
046df78448 Fixed typos 2018-08-11 16:39:49 +10:00
Konstantin Kopachev
84b32a0388
Read/Save RGB webp as RGB (instead of RGBX) 2018-08-09 11:40:10 -07:00
Andrew Murray
5c2e325353 Changed order of tests 2018-08-05 14:57:52 +10:00
Andrew Murray
88fdf504b3 Removed duplicate test 2018-07-21 14:38:47 +10:00
Hugo
f70f952f85
Merge branch 'master' into add-width-to-shapes 2018-07-14 14:58:48 +03:00
Andrew Murray
44a4219283 Added test for converting GIF with RGBA palette to P 2018-07-14 18:55:13 +10:00
tsennott
50d6611587 moved tuple test to assert method in PillowTestCase; added docs 2018-07-09 07:04:48 -07:00
tsennott
1eed17c70e tightened up colorize(); split tests; moved tuple comparison fcn to helper.py 2018-07-08 20:09:39 -07:00
tsennott
4a6ec5ca72 updated colorize to allow optional black/white positions; enhanced tests 2018-07-07 18:19:26 -07:00
tsennott
837d868333 updated test to assert equality with reference images 2018-07-07 02:40:25 -07:00
tsennott
adf570a77e adding tests, updated docstring and comments 2018-07-06 18:42:16 -07:00
Hugo
3b74a4c8ce Test ImageChops 2018-07-04 11:55:58 +03:00
Hugo
a344e7ee4d
Merge pull request #3222 from danpla/tga-test-sanity-la
Add LA to TGA test modes
2018-07-02 22:23:57 +03:00
Hugo
5d751572cc
Merge pull request #2922 from radarhere/fill_ink
Skip outline if the draw operation fills with the same colour
2018-07-02 22:19:35 +03:00
Hugo
959db43d22
Merge pull request #3173 from radarhere/flake8
Flake8 fixes
2018-07-02 21:42:17 +03:00
Hugo
4d88e2852e
Merge pull request #2187 from jdufresne/open-warning
Avoid deprecated 'U' mode when opening files
2018-07-02 21:34:32 +03:00
Andrew Murray
c2189235af Line too long 2018-07-02 19:26:02 +10:00
Andrew Murray
ce5d0e72b2 Continuation line under-indented for visual indent 2018-07-02 19:21:44 +10:00
Andrew Murray
0832f9c58b Continuation line unaligned for hanging indent 2018-07-02 19:21:44 +10:00
Andrew Murray
145589ef14 Ambiguous variable name 'l' 2018-07-02 19:21:44 +10:00
Andrew Murray
0e61d4be9f Removed unused variables 2018-07-02 19:21:44 +10:00
Andrew Murray
c19d77abed Continuation line under-indented for visual indent 2018-07-02 19:21:44 +10:00
Andrew Murray
dcf6bc047b Do not use bare except 2018-07-02 19:21:44 +10:00
Andrew Murray
aeab86c005 Too many blank lines 2018-07-02 19:21:44 +10:00
Andrew Murray
58cc23695d Continuation line over-indented for visual indent 2018-07-02 19:21:44 +10:00
Andrew Murray
e7815ccd62 Block comment should start with '# ' 2018-07-02 19:21:44 +10:00
Hugo
d6e3ef85c2 Add width parameter to arc, chord, ellipse, pieslice 2018-07-02 11:26:42 +03:00
Hugo
9dedbff713 Add width parameter to rectangle 2018-07-02 11:21:30 +03:00
Daniel Plakhotich
adfcbc9478 Add LA to TGA test modes 2018-07-02 00:50:02 +03:00
Hugo
c222df2b56
Merge pull request #3137 from radarhere/pdf
Fixed saving a multiframe image as a single frame PDF
2018-07-01 22:18:48 +03:00
Hugo
be29d02652
Merge pull request #3147 from fozcode/fix-fillcolor
Fix transform fill color for alpha images
2018-07-01 22:14:24 +03:00
Hugo
af552801c2
Merge pull request #3186 from danpla/tga-write-rle
TGA: Add support for writing RLE data
2018-07-01 22:00:03 +03:00
Hugo
80d399a485
Merge pull request #3178 from danpla/tga-la
TGA: Read and write LA data
2018-07-01 21:57:10 +03:00
Hugo
c93bc51c5b
Merge pull request #3202 from radarhere/icns
Changed ICNS format tests to pass on OS X 10.11
2018-07-01 21:41:58 +03:00
Hugo
abae745da1
Merge pull request #3114 from tianyu139/hotfix
Fixed bug in ImageDraw.multiline_textsize()
2018-07-01 21:34:45 +03:00
Hugo
490464010a
Merge pull request #3113 from tianyu139/develop
Added getsize_multiline support for PIL.ImageFont
2018-07-01 21:33:21 +03:00
Hugo
d97e16c903
Merge pull request #3190 from radarhere/mimetype
Added ImageFile get_format_mimetype method
2018-07-01 21:19:57 +03:00
Hugo
40a0398657
Add spacing 2018-07-01 20:55:53 +03:00
Hugo
488161ebba
flake8 2018-07-01 20:54:12 +03:00
Jon Dufresne
1ba14783d2 Avoid deprecated 'U' mode when opening files
Instead, use PSFile() wrapper to handle all newline in the EPS spec.

Update line ending tests to handle all combinations of '\n' and '\r'.

Fixes warning "DeprecationWarning: 'U' mode is deprecated" in tests.
2018-07-01 08:07:59 -07:00
Hugo
2b09e7fa6a
Merge pull request #3099 from uploadcare/lut-numpy
NumPy support for LUTs
2018-07-01 13:18:03 +03:00
Hugo
597f067796
Merge pull request #2989 from hugovk/test-wal
Test WalImageFile
2018-07-01 09:34:15 +03:00
Hugo
bc192c6cfe
Merge pull request #3142 from radarhere/ellipse
Changed ellipse point calculations to be more evenly distributed
2018-07-01 08:44:17 +03:00
Hugo
5dda23d547
Merge pull request #3135 from hugovk/test-imagedraw2
Test ImageDraw2
2018-07-01 07:48:54 +03:00
Alex Clark
eafbb395a9
Merge pull request #1817 from radarhere/gd
Added GD tests
2018-06-30 18:01:36 -04:00
Andrew Murray
6793b5bbd5 Added ImageFile get_format_mimetype method 2018-06-30 21:08:41 +10:00
Andrew Murray
b0d9b0037b Changed ICNS format tests to pass on OS X 10.11 2018-06-23 15:14:49 +10:00
Andrew Murray
bf96b9f87a Updated redirected URLs [ci skip] 2018-06-23 10:58:41 +10:00
Daniel Plakhotich
1d20056234 TGA: Add support for writing RLE data 2018-06-15 23:01:06 +03:00
Daniel Plakhotich
65c7875ff7 TestFilePng: Fix test_save_l_transparency()
It now really tests the file after saving.
2018-06-14 12:46:35 +03:00
Daniel Plakhotich
39fae6e077 TGA: Read and write LA data 2018-06-14 12:18:08 +03:00
Hugo
48dda53c12
Merge pull request #3163 from radarhere/fillcolor
Fixed transform fillcolor argument when image mode is RGBA or LA
2018-06-14 09:25:00 +03:00
Andrew Murray
ae2ffb8a05 Fixed transform fillcolor argument when image mode is RGBA or LA 2018-06-12 04:41:46 +10:00
Andrew Murray
9a3d554c1d Changed Exception tests to be more specific 2018-06-12 04:41:31 +10:00
Andrew Murray
5ef5a3c9b2 Corrected test 2018-06-06 22:34:09 +10:00
Hugo
e2127a6d60 Test ImageDraw2.ellipse 2018-05-31 15:11:50 +03:00
Hugo
67e5540021 Skip font tests when ImageFont not available 2018-05-31 15:11:50 +03:00
Hugo
031c4d937f Test ImageDraw2 2018-05-31 15:11:50 +03:00
Andrew Murray
3d82672404 Added getrgb hsb color string 2018-05-31 06:14:29 +10:00
Andrew Murray
b50f63430f Added getrgb hsv color string 2018-05-31 06:13:22 +10:00
Matt
d2854f3925 Add unit tests for alpha fill color fix 2018-05-30 15:05:58 +01:00
Andrew Murray
adda3b7473 Allow float values in getrgb hsl color string 2018-05-30 21:00:44 +10:00
Andrew Murray
8d8d00f304 Changed ellipse point calculations to be more evenly distributed 2018-05-27 15:32:22 +10:00
Andrew Murray
3bbd0a5810 Fixed saving a multiframe image as a single frame PDF 2018-05-18 22:15:45 +10:00
Hugo
33592b4f73 No need to import sys 2018-05-17 23:21:47 +03:00
Hugo
d524664215 Re-enable test for PyPy, we're long past 5.3.1 2018-05-17 22:18:33 +03:00
Hugo
90ab677d44 Re-enable test for PyPy 2018-05-17 22:18:18 +03:00
Andrew Murray
1c88afe5c0 Changed OS X references to macOS 2018-05-13 20:55:04 +10:00
Andrew Murray
c38f25a876 Corrected documentation syntax 2018-05-13 20:52:11 +10:00
Hugo
e33dd498f5 Prefer more conventional __version__ rather than PILLOW_VERSION 2018-04-25 11:21:38 +03:00
tianyu
58474d1c8d Added test to ensure ImageDraw.multiline_textsize returns same value as ImageFont.getsize for single lines 2018-04-24 22:55:17 +08:00
tianyu
3fda581963 Added test for getsize_multiline 2018-04-24 22:27:29 +08:00
Alexander
997e554593 Revert ValueErrors to RuntimeErrors in ImageMorph module 2018-04-22 20:52:38 +03:00
Alexander Karpinsky
dddeecc945
Merge pull request #3055 from uploadcare/imagemorph-type-check
Fix incorrect image type checking in _imagingmorph module
2018-04-22 20:10:34 +03:00
Alexander
101c095e99 Add tests for wrong types 2018-04-22 19:51:57 +03:00
Hugo
04a1f71b4c
Merge pull request #3105 from radarhere/py3
Change Python version checks to use util
2018-04-22 18:37:33 +03:00
Andrew Murray
b4e6cdadac Added py3 variable to _util 2018-04-20 09:19:13 +10:00
Andrew Murray
b560f5b417 Changed Python version checks in tests to use helper 2018-04-19 19:40:56 +10:00
Andrew Murray
37f5f1120a Fixed block comments 2018-04-18 16:00:57 +10:00
Andrew Murray
cbc056f43d Fixed whitespace 2018-04-18 16:00:57 +10:00
Andrew Murray
b33b045e9b Changed test_imagetk to run on Python 3 2018-04-17 14:06:05 +10:00
Alexander
33c0b5df21 use assertRaisesRegex 2018-04-15 23:35:41 +03:00
Alexander
c6f5077afc Merge branch 'master' into lut-numpy 2018-04-15 23:30:40 +03:00
Alexander
497e9d8251 full buffer support 2018-04-15 00:33:15 +03:00
Hugo
7e8998a452 ImageOps.box_blur is deprecated, use ImageFilter.BoxBlur instead 2018-04-14 21:54:40 +03:00
Hugo
f733482c0e Remove workaround for since-fixed scipy regression, to remove recent scipy DeprecationWarning 2018-04-14 21:54:40 +03:00
Hugo
ecc4c7fecc Remove unittest regex deprecation warnings 2018-04-14 21:54:40 +03:00
Alexander
63b243e1f6 color lut numpy tests 2018-04-14 19:17:15 +03:00
Alexander
76e57bbbe2 Better numpy tests skipping 2018-04-14 18:59:57 +03:00
Alexander Karpinsky
b01ba0f50c
Merge pull request #3091 from uploadcare/lut-alter
Transforming LUTs
2018-04-14 18:08:52 +03:00
Alexander
a325559f58 One more test for coverage 2018-04-14 17:47:53 +03:00
Alexander
eae14c56e1 Check exception type only, not string 2018-04-14 17:22:21 +03:00
Alexander
aba478abba Raise error if it is occurred during conversion in getlist 2018-04-14 17:13:05 +03:00
Alexander
daa8e7dacd Add earlier catching of wrong channels count 2018-04-12 12:40:40 +03:00
Alexander
75c76d91e1 Add repr for Color3DLUT 2018-04-12 11:54:54 +03:00
Alexander
fb1d25417e test for wrong channels number in generate 2018-04-11 20:55:35 +03:00
Alexander
ecd0e5e15e check exception type only 2018-04-11 17:31:41 +03:00
Alexander
acfd4845c6 tests 2018-04-11 17:05:48 +03:00
Alexander
70c453b857 rename alter() to transform()
add with_normals argument
docstring
2018-04-11 16:17:10 +03:00
Andrew Murray
05c78a13e7 Changed encoderinfo to have priority over info when saving GIF images 2018-04-11 08:57:31 +10:00
Alexander Karpinsky
e24fad40ad
Merge pull request #3056 from uploadcare/color-LUT
3D Color lookup tables
2018-04-09 10:41:44 +03:00
Hugo
0567a54cd7
Merge pull request #3057 from storesource/RotateImagewithColor
Enabling background colour parameter on rotate
2018-04-05 09:45:22 +01:00
Jon Dufresne
e705cd1476 Fix dereferencing type-punned pointer will break strict-aliasing
Compiler warning appeared as:

src/path.c:574:22: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
                      Py_TYPE(&item)->tp_name);
                      ^~~~~~~

As item is already of type PyObject*, and the Py_TYPE macro is
equivalent to (((PyObject*)(o))->ob_type), no need for the dereference.

https://docs.python.org/3/c-api/structures.html#c.Py_TYPE
2018-04-03 20:42:03 -07:00
Alexander
4231038132 Remove unused imports 2018-04-01 19:52:39 +03:00
Kathryn Davies
8f6be2ee7d Move location of fclose and add dump test. 2018-03-31 21:28:37 -07:00
Alexander
912980c52f Remove Color3DLUT.from_cube_file from сore library 2018-03-31 19:56:09 +03:00
Alexander
805dc44707 improve color cube parser 2018-03-30 11:29:59 +03:00
Alexander
c1b956e3c8 More tests fixes for windows 2018-03-30 10:21:01 +03:00
Alexander
83a5f6e5b5 change file mode 2018-03-30 10:09:22 +03:00
Alexander
e304a0d501 add tests, fix error messages 2018-03-30 09:57:54 +03:00
Alexander
aa929dda98 from_cube_file + test 2018-03-30 02:02:37 +03:00
Alexander
d2a5d1e44d Add tests for some cases and fix bugs 2018-03-29 23:56:51 +03:00
Alexander
622749530b Color3DLUT.generate 2018-03-29 17:26:21 +03:00
Alexander
506995d816 Tests for python API 2018-03-29 16:37:35 +03:00
storesource
79689977cf Remove unnecessary files 2018-03-27 21:05:19 +05:30
storesource
e1229db810
Rename File 2018-03-27 20:07:06 +05:30
storesource
eb3efb2587
Added Files for Rotate Fill tests 2018-03-27 19:52:24 +05:30
storesource
975b7fced5
Split test for fill and no fill
Added a simpler image to compare
2018-03-27 19:48:35 +05:30
storesource
8af7c679ab
Added basic green file for rotate
Making changes according to review
2018-03-27 19:43:04 +05:30
storesource
fa85f112cd
Updating Test
changing from equal to similar
2018-03-27 19:31:58 +05:30
storesource
65c78266ad
RotateImage with fill: Added file for assertion
Fail First: add image for assertion
2018-03-27 18:55:34 +05:30
storesource
bea25dba30
Rotate with fill color unit test
check if hopper image equals hopper45withfill after rotate
2018-03-27 18:41:49 +05:30
Alexander
838a5cffe7 more tests and fixed bug for interpolate4 2018-03-26 23:17:17 +03:00
Alexander
5227c30561 typos 2018-03-26 22:33:22 +03:00
Alexander
5f0b7ee73e More tests 2018-03-26 22:30:55 +03:00
Alexander
b30b2a280f Tests. First part 2018-03-26 19:30:00 +03:00
wiredfool
0e9f07def9
Merge pull request #3042 from hugovk/3006-parser-feed
Fix TypeError for JPEG2000 parser feed
2018-03-21 07:56:23 +00:00
wiredfool
d173e81798
Merge pull request #3023 from kkopachev/issue-3022
Certain corrupted jpegs can result in no data read
2018-03-21 07:55:17 +00:00
wiredfool
f504cbe642
Merge pull request #3007 from jleclanche/feat/blp
Add support for BLP file format
2018-03-21 07:54:29 +00:00
wiredfool
c004b6beaa
Merge pull request #2998 from hugovk/simplify-version-checks
Simplify version checks
2018-03-21 07:50:51 +00:00
Andrew Murray
4a781d0013 Replaced MacOS with macOS 2018-03-19 19:38:17 +11:00
Andrew Murray
2123dd70fb Allow append_images to set .icns scaled images 2018-03-19 19:38:07 +11:00
Hugo
3e6db78f75 Failing test for JPEG2000 parser feed 2018-03-18 11:13:33 +02:00
Hugo
ddc9e73b47
Merge pull request #2965 from vashek/master
Support appending to existing PDFs
2018-03-13 11:30:25 +02:00
hugovk
0b2a77e8e4 Use named version attribute 2018-03-12 10:37:18 +02:00
Jerome Leclanche
ef546cd303 blp: Remove images with unclear licenses 2018-03-12 09:48:13 +02:00
Konstantin Kopachev
5269bbc268
Add truncated jpeg tests 2018-03-07 21:31:51 -08:00
Jerome Leclanche
4d685ac0cd blp: Add more test images 2018-03-06 18:16:26 +02:00
Jerome Leclanche
73d7fff16e blp: Separate BLP1 and BLP2 decoding more cleanly 2018-03-06 18:16:26 +02:00
Jerome Leclanche
adaa703576 Add support for BLP file format 2018-03-06 18:16:26 +02:00
Andrew Murray
c13ccf13a1 Added missing whitespace 2018-03-06 19:53:07 +11:00
Andrew Murray
8116ee3738 Inline comment should start with '# ' 2018-03-04 21:36:34 +11:00
Andrew Murray
f22f1628eb At least two spaces before inline comment 2018-03-04 21:36:33 +11:00
Andrew Murray
2202196162 Flake8 blank line fixes 2018-03-04 21:36:33 +11:00
Dvořák Václav
928bea3002 issue #2959: enhance test, mainly to trigger Appveyor re-build 2018-03-04 00:01:14 +01:00
Dvořák Václav
24ecfe315a issue #2959: fix wrong Parent of pre-existing Page objects when appending 2018-03-03 23:32:47 +01:00
Hugo
4936b447f0
Merge pull request #2985 from Metallicow/trim-trailing-space
Trim trailing whitespace
2018-02-27 12:00:15 +02:00
Dvořák Václav
4cea610f16 issue #2959: oops. sorry. reverting accidental change that broke builds 2018-01-31 23:08:49 +01:00
Dvořák Václav
c15a0b2fce issue #2959: rename pdfParser.py to PdfParser.py 2018-01-31 00:35:55 +01:00
Dvořák Václav
9be8d669f9 issue #2959: changes based on @hugovk's review 2018-01-31 00:25:04 +01:00
Hugo
a852c6186f Basic WAL test 2018-01-29 17:18:06 +02:00
Hugo
8674f71907 File exported from hopper.png using Wally 2018-01-29 15:33:26 +02:00
Metallicow
5e94cd0fc2 Trim trailing whitespace tests dir 2018-01-27 00:07:24 -06:00
Andrew Murray
5e0de38519 Removed duplicate line 2018-01-27 10:09:51 +11:00
Dvořák Václav
ede57b91e0 issue #2959: keep file open, add context manager, add methods to support writing, eliminate the passing of file or buffer 2018-01-26 19:07:43 +01:00
Dvořák Václav
78fe32a431 issue #2959: support streams, add some tests 2018-01-26 17:15:38 +01:00
Dvořák Václav
53ce9ec4fb issue #2959: fix PdfDict attribute access, text decoding, tests 2018-01-26 13:42:11 +01:00
Dvořák Václav
4d3b13fb08 issue #2959: improve Info setting and dumping 2018-01-26 12:11:10 +01:00
Hugo
797d67b9a3
Merge pull request #2974 from wiredfool/webp_leak
Fix memory leak when opening webp files
2018-01-25 10:51:23 +02:00
Dvořák Václav
f9566877f3 issue #2959: fix broken test 2018-01-25 01:19:25 +01:00
Dvořák Václav
95f5c8d4ff issue #2959: move pdfParser self tests to Tests directory 2018-01-25 01:12:32 +01:00
Dvořák Václav
84f87471f5 issue #2959: support io.BytesIO objects 2018-01-25 00:44:59 +01:00
Dvořák Václav
13fe1a5ba7 issue #2959: text string decoding, support for Info dict, updated tests 2018-01-25 00:20:18 +01:00
Eric Soroos
1b06cbc3bb run webp leak check by default 2018-01-24 14:02:58 +00:00
Eric Soroos
379d3ccce2 Fixed up the webp leak check 2018-01-24 14:02:33 +00:00
wiredfool
9a19858fb7
Merge pull request #2938 from uploadcare/tiff-with-optional-channels
Tiff with optional channels
2018-01-24 11:10:18 +00:00
wiredfool
d04380afb6
Merge pull request #2961 from radarhere/assert
Changed assert statements to unittest calls
2018-01-24 10:54:18 +00:00
Dvořák Václav
cfacf8bff8 issue #2959: fix test for nonexistent PDF file 2018-01-24 02:39:15 +01:00
Dvořák Václav
a187a361cb issue #2959: add tests and fixes, text encoding, remove remnants of text writing from PdfImagePlugin 2018-01-24 02:28:39 +01:00
Dvořák Václav
ba211ff549 issue #2959: pdfParser selftest 2018-01-22 21:35:55 +01:00
Andrew Murray
cca94054aa Changed assert statements to unittest calls 2018-01-17 22:01:37 +11:00
Andrew Murray
4afed260dc Updated freetype to 2.9 2018-01-13 06:26:42 +11:00
Alexander
dc127273f4 Add RGBXX RGBXXX YCbCrXX YCbCrXXX rawmodes for TIFFs 2018-01-07 17:23:05 +03:00
Andrew Murray
4d3339b703 Added tests 2018-01-05 11:26:24 +11:00
Andrew Murray
30b2ddd070 Removed duplicate imports 2018-01-04 15:40:46 +11:00
Andrew Murray
62b2bdf909 Removed unused imports 2018-01-04 14:56:18 +11:00
Andrew Murray
1c60473488 Updated paths for src directory 2017-12-31 07:11:26 +11:00
Andrew Murray
6c61de97ad Added GD tests 2017-12-30 19:31:33 +11:00
Hugo
cc35bd70bc No need to run coverage on dev machines 2017-12-28 14:49:47 +00:00
Hugo
7df920303c Remove nose-specific code 2017-12-28 14:48:19 +00:00
Hugo
b55ea4014e Calls pytest directly 2017-12-28 14:48:19 +00:00
hugovk
5592163564 pytest no longer supports EOL Python 3.3 2017-12-28 14:48:19 +00:00
hugovk
20d00c5fe9 Update test instructions 2017-12-28 14:48:19 +00:00
hugovk
e30433e4b2 Test testing with pytest 2017-12-28 14:48:19 +00:00
wiredfool
49bd3232e5
Merge pull request #2899 from wiredfool/pr_2882
Run all compressed tiffs through libtiff
2017-12-27 20:39:51 +00:00
wiredfool
ff13d184d8
Merge pull request #2902 from wiredfool/pr_2388
Add disposal option when saving GIFs
2017-12-27 12:15:00 +00:00
wiredfool
bbe8076d67
Merge pull request #2903 from radarhere/eps
Allow for an empty line in EPS header data
2017-12-27 12:13:54 +00:00
wiredfool
bd5f99f19d
Merge pull request #2898 from wiredfool/pr_2790
Add support for sRGB and cHRM chunks, permit sRGB when no iCCP chunk
2017-12-27 12:12:57 +00:00
Andrew Murray
e107ed6fcf Allow for an empty line in EPS header data 2017-12-24 21:12:48 +11:00
wiredfool
48260643d7 force range to a tuple, py3 2017-12-21 22:42:34 +00:00
wiredfool
378f74672c Added per-frame disposal, tests 2017-12-21 22:26:58 +00:00
linnil1
5b5d47863e Add dispose test 2017-12-21 22:06:59 +00:00
wiredfool
97ee3dd12b
Merge pull request #2583 from wiredfool/decompression_bomb_error
Decompression bomb error
2017-12-20 20:31:38 +00:00
Eric Soroos
768668c1d7 Added RGB*;16N Unpackers 2017-12-20 13:53:14 +00:00
Eric Soroos
e617d05b9e These tests/features now require libtiff 2017-12-20 12:22:28 +00:00
Eric Soroos
4b4f7d6a2c Refactor to use features 2017-12-20 12:21:33 +00:00
Eric Soroos
d698d522ef Added end to end tests in test_file_libtiff 2017-12-20 12:09:26 +00:00
Eric Soroos
4877552581 Read all compressed files through libtiff. 2017-12-20 11:55:40 +00:00
Eric Soroos
bec8f415be end to end test helper, more end to end tests for tiffs 2017-12-20 11:55:40 +00:00
Tomasz Jezierski
bc6683cecf tiff-colors-fix test adjust 2017-12-20 11:54:26 +00:00
Eric Soroos
a96ac321d5 merge error 2017-12-20 11:45:52 +00:00
Eric Soroos
25d961238c Added sRGB and cHRM chunks to PngInfo, added tests for #2782 2017-12-20 11:35:11 +00:00
Eric Soroos
1ea128c8a7 refactor out get_chunks 2017-12-20 11:33:22 +00:00
wiredfool
c4a91f05ef
Merge pull request #2894 from hugovk/avoid-random-noise-failure
Test: avoid random noise failure
2017-12-20 09:26:49 +00:00
wiredfool
1f749a88ee
Merge pull request #2896 from wiredfool/eps-test-arch
Bumped epsilon -- arch is showing 5.6 rather than <5
2017-12-19 19:39:12 +00:00
Eric Soroos
e5aa9d5f8b Bumped epsilon -- arch is showing 5.6 rather than <5 2017-12-19 16:20:36 +00:00
wiredfool
09c8b06f4c
Merge pull request #2890 from jdufresne/add-text-bool
Make PngImagePlugin.add_text() zip argument type bool
2017-12-19 15:50:01 +00:00
wiredfool
c94484ecab
Merge pull request #2880 from radarhere/webp
Updated libwebp to 0.6.1
2017-12-19 15:47:13 +00:00
Hugo
070e66fe7b flake8 2017-12-19 17:16:15 +02:00
Hugo
8adab0ec0d Noise effect: take five pixels, assert not all same 2017-12-19 17:12:58 +02:00
Hugo
11a2026f12 flake8 2017-12-19 15:12:02 +02:00
Hugo
c8eebc1dc7 Re-roll in case of identical noise 2017-12-19 15:06:43 +02:00
Jon Dufresne
c5a0d72c10 Remove unnecessary bool() calls throughout project
Can use truthy values in boolean expressions without first coercing to a
bool. Removes unnecessary call to bool().
2017-12-16 09:34:12 -08:00
Jon Dufresne
8844e2dd71 Make PngImagePlugin.add_text() zip argument type bool
Always used as a bool, but was previously defined as 0/1. Use modern
idiomatic Python by using the bool type for bool arguments.
2017-12-16 09:13:45 -08:00
wiredfool
9ed4ea9e47
Merge pull request #2883 from uploadcare/tiff-wrong-bitspersample
Fix count of BITSPERSAMPLE items in broken TIFF files
2017-12-09 14:32:47 +00:00
wiredfool
588944c4a8
Merge pull request #2852 from wiredfool/issue_2837
Fillcolor parameter for Transform
2017-12-09 14:15:41 +00:00
wiredfool
dcb8d6f0b8
Merge pull request #2862 from wiredfool/difference-upload
Display differences for test failures
2017-12-09 14:14:25 +00:00
Alexander
ce151bcd72 add test for this case 2017-12-08 17:32:39 +03:00
Andrew Murray
97dba99805 Increased average pixel value difference to allow for libwebp 0.6.1 2017-12-07 00:46:56 +11:00
wiredfool
9a7fbdf323 disable intentionally failing tests 2017-11-25 11:01:33 +00:00
Eric Soroos
5a8fd796e9 install the difference engine 2017-11-17 19:47:05 +00:00
wiredfool
669fd6a600
Merge pull request #2835 from radarhere/generator
Added support for generators when using append_images for WEBP
2017-11-13 13:20:08 +00:00
Eric Soroos
fa9e9c2795 remove duplicate test 2017-11-13 11:59:26 +00:00
Eric Soroos
52b6894865 parameter name change 2017-11-13 11:59:12 +00:00
wiredfool
dce04b680b Pass in fill color to transform. 2017-11-11 16:47:31 +00:00
Andrew Murray
28119dd68d Changed test to use tempfile 2017-11-08 12:59:05 +11:00
Andrew Murray
bfaa0a1f07 Added support for generators when using append_images for WEBP 2017-11-06 20:06:50 +11:00
Andrew Murray
6c6f95f1d6 Removed unnecessary code 2017-11-06 19:54:15 +11:00
wiredfool
a3a9faf3a2
Merge pull request #2761 from monolithlabs/animated_webp
Add support for animated WebP files
2017-11-05 15:34:50 +00:00
wiredfool
52079cb297
Merge pull request #2805 from ixio/fix-#2804
Fix #2804: sets encoderinfo for images when saving multi-page PDF
2017-11-05 15:18:22 +00:00
wiredfool
533c5dfd05
Merge pull request #2789 from jdufresne/olefile-optional
Allow the olefile dependency to be optional
2017-11-05 15:09:06 +00:00
wiredfool
f5e4338b86
Merge pull request #2813 from wiredfool/issue_2811
Permit LZW code lengths up to 12 bits in GIF decode
2017-11-05 15:02:41 +00:00
wiredfool
13d8499371
Merge pull request #2825 from wiredfool/fix_pcf_tests
Fix PCF/PILFont
2017-11-05 15:01:50 +00:00
Andrew Murray
bc255c97ff Added support for generators when using append_images 2017-11-04 10:46:15 +11:00
Eric Soroos
3f4abf6caa Fix/test for #2826, unchecked exception leading to null pointer dereference, segfault 2017-11-02 20:46:17 +00:00
Eric Soroos
b0b2009c58 Where is this failing on hello, world 2017-11-02 13:07:49 +00:00
Eric Soroos
ab61cedbdc added text size test 2017-11-02 13:07:49 +00:00
Eric Soroos
ebb0a491b6 test the accuracy of the font file conversion 2017-11-02 13:07:49 +00:00
Eric Soroos
7a5d215022 Remove Adobe Helvetica screen font, update Pcf font tests using freely available font 2017-11-02 13:07:49 +00:00
Eric Soroos
636e5ff1e9 Relaxing similarity on showpage test, Arch has rendering differences 2017-11-01 14:05:40 +00:00
Eric Soroos
fcabe1c08c Tests for issue #2811 2017-10-25 13:52:33 +00:00
Ixio
5dfe5f0fa6 Fix #2804 : sets encoderinfo for images when saving multi-page PDF 2017-10-19 13:30:34 +02:00
Andrew Murray
97662294f0 Added context manager support 2017-10-07 23:18:23 +11:00
Jon Dufresne
9175706300 Allow the olefile dependency to be optional
Support for plugins requiring olefile will not be loaded if it is not
installed. Allows library consumers to avoid installing this dependency
if they choose. Some library consumers have little interest in the
format support and would like to keep dependencies to a minimum.
2017-10-04 06:54:34 -07:00
hugovk
5524d806b4 Failing test for #2783 2017-10-04 11:09:52 +00:00
Jason Douglas
cf31e70735 Fixing a typo in comments 2017-10-03 08:05:20 -07:00
Jason Douglas
28bec69e98 - flake8 formatting fixes
- webp => WebP doc and comment changes
2017-10-01 15:23:18 -07:00
wiredfool
0d1e44dc2f Merge pull request #2769 from wiredfool/pr_2638
Update to #2638, add 16bit/rle support to SgiImageFile
2017-10-01 20:56:18 +01:00
wiredfool
c82f9fe1bb Merge pull request #2738 from uploadcare/block-storage
Block & array hybrid storage
2017-10-01 20:41:08 +01:00
wiredfool
3051178749 Merge pull request #1849 from radarhere/frames
Common seek frame position check
2017-10-01 20:20:30 +01:00
Christoph Gohlke
3ad73ff447 Fix ValueError: invalid version number '1.0.0rc1' 2017-09-30 22:15:28 -07:00
Andrew Murray
c8b65f4efd Added _min_frame property 2017-09-30 13:33:13 +10:00
Andrew Murray
f61b70aa8f Changed EOFError tests 2017-09-30 13:33:06 +10:00
Andrew Murray
78c62727d3 Moved seek frame position check into ImageFile 2017-09-30 13:32:43 +10:00
wiredfool
efe98726cf Merge pull request #2756 from hugovk/ResourceWarning-cherrypicked
ResourceWarning tests
2017-09-29 15:36:16 +01:00
wiredfool
fd8ee8437b Merge pull request #2315 from radarhere/is_animated
If n_frames is known, then use when determining is_animated
2017-09-29 15:26:22 +01:00
Eric Soroos
7c629d7814 Added L;16/B pack functions 2017-09-29 13:41:39 +00:00
Eric Soroos
6816a9d4ce Removed test for YCbCr != 3 channels 2017-09-29 13:34:49 +00:00
Eric Soroos
2014cf69b8 16bpc write test 2017-09-29 10:41:42 +00:00
Mickael Bonfill
a422a28bb7 add unit tests 2017-09-29 09:15:21 +00:00
Mickael B
a90dc49100 add RLE decompression for SGI images 2017-09-29 09:12:03 +00:00
Jason Douglas
c5e6211936 Don't use unittest skip decorator, doesn't seem to work 2017-09-27 23:10:44 -07:00
Jason Douglas
acc4334291 - Fix _webp reference when _webp is not available
- HandleMuxError function needs to be tied to WEBP_HAVEMUX, not WEBP_HAVEANIM
2017-09-27 22:13:13 -07:00
Jason Douglas
405d1a64d8 - Fix incorrect pixel width in WebP RGBX import call
- Add a test to cover RGBX import
2017-09-27 21:22:05 -07:00
Jason Douglas
5b2dd29f44 Fix invalid_args test for older versions of libwebp 2017-09-27 20:21:18 -07:00
Jason Douglas
80b96246c4 Fix tests to support different output modes (RGB vs RGBX) 2017-09-27 19:28:43 -07:00
Jason Douglas
c18d26b04b - Conditonally compile animation support, only if the mux.h and demux.h headers meet the ABI version requirements
- Add WEBPMUX support back to WebPDecode_wrapper (to support older versions of libwebp that have mux support, but not animation)
- Add HAVE_WEBPANIM flag, and use it appropriately
- Update documentation / tests
2017-09-27 19:04:24 -07:00
Jason Douglas
e534991409 - Styling changes to be C89-conformant
- Change WebPAnimEncoder/Decoder to use RGBX mode instead of RGB (since internally it is using RGBA always)
2017-09-27 17:10:25 -07:00
Jason Douglas
356da80686 Fix metadata test for python3 2017-09-26 20:46:35 -07:00
Jason Douglas
cd12a48fe0 - Support non-alpha modes with WebPAnimDecoder
- Support writing metadata chunks with WebPAnimEncoder
- Add XMP metadata support to legacy WebPEncode wrapper
- Cleanup unused mux code in legacy WebPDecode wrapper
- Fix some bugs present when compiled without WebP Mux support
- Fix conversion from L/P/PA modes when saving WebP files
- Update existing tests, and add new ones for WebP animation and metadata support
2017-09-26 20:27:40 -07:00
hugovk
9344bd20dd Move test_no_resource_warning_for_numpy_array to test_numpy so it can be skipped easily 2017-09-23 22:39:10 +03:00
hugovk
0b6691ecc9 A numpy failing test for ResourceWarning on Python 3 2017-09-23 22:36:53 +03:00
hugovk
cde8c1b560 Improve assert_warning() error message for warn_class=None 2017-09-23 22:36:42 +03:00
hugovk
77f0608c4e Failing test for ResourceWarning on Python 3 2017-09-23 22:36:03 +03:00
Alexander
4b85230726 clear_cache: number or blocks to keep 2017-09-23 04:20:53 +03:00
wiredfool
b8d6fd57fa Merge pull request #1860 from radarhere/register_extensions
Added register_extensions method
2017-09-22 15:59:04 +01:00
wiredfool
6198422383 Merge pull request #2748 from wiredfool/i16s
Fix TIFF support for I;16S, I;16BS, and I;32BS rawmodes
2017-09-22 15:57:56 +01:00
Eric Soroos
a89c4e455d Target mode is I, check pixels 2017-09-20 09:26:40 +00:00
Andrew Murray
4087479464 Added test image 2017-09-20 09:04:48 +00:00
Alexander
a78e92356f Merge branch 'master' into block-storage 2017-09-19 21:08:21 +03:00
wiredfool
a0ce5740d5 Merge pull request #2719 from wiredfool/issue_2278
Fixes for Issues #2278 and #2006, value error in exif/tiff ifd
2017-09-19 14:26:29 +01:00
Eric Soroos
c12b9fb4dc added test for metadata count warning 2017-09-19 10:35:14 +00:00
wiredfool
c786213b09 Merge pull request #2291 from asergi/pathlib2
Use pathlib2 for Path objects on Python < 3.4
2017-09-19 11:11:35 +01:00
wiredfool
7541755aa5 Merge pull request #2730 from uploadcare/fast-geometry
Faster Transposition
2017-09-19 10:58:47 +01:00
Alexander
654b5f7958 tests for env vars 2017-09-19 01:00:18 +03:00
Alexander
44c2698f69 ImagingMemoryBlock structure 2017-09-18 22:48:32 +03:00
Alexander
2ab19bbe44 actually fix tests on pypy 2017-09-18 03:17:45 +03:00
Alexander
23527774d3 test for images wider than block_size 2017-09-18 02:57:14 +03:00
Alexander
ae104b0d0e collect garbage before check memory 2017-09-18 02:51:27 +03:00
Alexander
6d2be876c8 tests 2017-09-18 02:37:47 +03:00
Alexander
af3dcf84af python api for resources 2017-09-18 01:41:39 +03:00
Alexander
0054743100 fix zero size images 2017-09-17 02:58:01 +03:00
Eric Soroos
56e490fe7c Test for issue #2278 2017-09-14 20:05:13 +01:00
Eric Soroos
843f8b2a6b Test for ImageJMetaDataByteCounts, #2006 2017-09-14 20:05:13 +01:00
Eric Soroos
83c57a8063 Specific change for issue #2006, ImageJ Metadata counts are incorrect in TiffTags 2017-09-14 20:05:13 +01:00
Eric Soroos
488691bda4 General fix for issue #2278, #2006, ValueError with out of spec metadata 2017-09-14 20:05:13 +01:00
Alexander
8b1a3cc80c DeprecationWarning tests 2017-09-14 02:49:05 +03:00
Alexander
6900a7707f ImageFilter.BoxBlur 2017-09-14 01:59:25 +03:00
Alexander
b6b3b004d8 tests for transverse, add to docs 2017-09-11 23:00:35 +03:00
wiredfool
3b5c2c30be Merge pull request #2679 from uploadcare/fast-filters
Fast filters
2017-09-10 17:22:00 +01:00
Eric Soroos
c42867fa2c Added expected result, renamed images 2017-09-09 12:01:38 +00:00
Samuele Kaplun
c07ce878d7 Fix EPS import
Fixes EPS import by adding the missing "showpage" Postscript command
to the end of the gs call.

See: https://bugs.ghostscript.com/show_bug.cgi?id=698272

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
2017-09-09 12:01:38 +00:00
wiredfool
04052e85c9 Merge pull request #2647 from radarhere/spider
Added file pointer save to SpiderImagePlugin
2017-09-09 10:23:45 +01:00
Andrew Murray
55d0a816c7 Added test 2017-09-04 20:32:15 +10:00
wiredfool
39df75bd07 Merge pull request #2706 from wiredfool/issue_2666
Fix for crash drawing empty strings
2017-09-04 11:26:28 +01:00
wiredfool
e71757aa6f Merge pull request #2634 from wiredfool/issue_2629
Fix for memory leaks in font handling
2017-09-04 11:23:57 +01:00
wiredfool
2611b2caa5 Merge pull request #2689 from radarhere/tests
Added tests
2017-09-04 11:15:28 +01:00
wiredfool
b2cd6aaff7 test for font memory leaks 2017-09-04 09:58:52 +00:00
Eric Soroos
41b5121d6e refactor png leak test to use PillowLeakTestCase 2017-09-04 09:58:52 +00:00
wiredfool
ed68328c09 refactored memory leak test case 2017-09-04 09:58:05 +00:00
Andrew Murray
5c2df30ac3 Removed ImageDraw.Draw del calls 2017-09-01 21:06:22 +10:00
Andrew Murray
2ac18689d5 Removed unnecessary return statements 2017-09-01 21:06:22 +10:00
Andrew Murray
9e843a2d9b Changed format of lambda calls 2017-09-01 21:05:40 +10:00
Andrew Murray
371933a597 Added tests 2017-09-01 20:36:51 +10:00
Andrew Murray
c10ad19a2b Changed file opening in tests to use with 2017-09-01 20:03:54 +10:00
Alexander
a7cf91499a Regular comments instead of strings [ci skip] 2017-09-01 08:42:57 +03:00
Alexander
edcbd3f67d Tests for skipping passes (are passed if disable the passes skipping) 2017-08-31 23:01:21 +03:00
wiredfool
c3fbd9de01 test for issue #2666 2017-08-31 08:56:06 -07:00
wiredfool
2ad43c4eeb Merge pull request #2704 from wiredfool/issue_2702
Remove palettes from non-palette modes in _new #2702
2017-08-31 15:09:37 +01:00
wiredfool
f4c56a7179 Merge pull request #2633 from olt/delete-rgb-transparency
Delete transparency info when img.convert'ing RGB/L to RGBA
2017-08-31 15:08:52 +01:00
wiredfool
e422f92e52 Remove palettes from non-palette modes in _new #2702 2017-08-31 06:18:59 -07:00
wiredfool
32d14e382a Merge pull request #2698 from uploadcare/jpeg-subsampling
Fix sampling factor for subsampling=2 while JPEG saving
2017-08-31 13:23:48 +01:00
Alexander
ad4b42f5f4 Merge branch 'master' into fast-filters 2017-08-28 21:47:43 +03:00
Alexander
eee3e2dd32 Missed not covered BGRa mode 2017-08-28 21:45:24 +03:00
Alexander
b9f3fa4a28 increase coverage 2017-08-28 21:18:25 +03:00
Alexander
82c986dfab Merge branch 'master' into 16-bit-rgb-tiff 2017-08-28 19:42:46 +03:00
Alexander Karpinsky
6b4b1dc3c5 Merge pull request #2694 from uploadcare/packing-tests
Packing tests
2017-08-28 19:42:06 +03:00
Alexander
40fe1f721e unpacking tests for "I" and "F" modes 2017-08-28 19:22:59 +03:00
Alexander
aac0869ca7 Revert little-endian byte order for "I" and "F" rawmodes 2017-08-28 19:02:15 +03:00
Alexander
4d56db3a34 Fix wrong formula for subsampling=2 while JPEG saving 2017-08-27 20:03:36 +03:00
Alexander
7f7b53447a Add tests for all new modes 2017-08-26 17:36:06 +03:00
Alexander
a78e45c3dc Merge branch 'packing-tests' into 16-bit-rgb-tiff 2017-08-26 17:17:49 +03:00
Alexander
922407e7f3 fix py3, change test 2017-08-26 11:02:51 +03:00
Alexander
f43b9f396f Second part of pack tests 2017-08-26 10:49:28 +03:00
Alexander
8cb9cba1e0 Packing tests, first part. Fix RGBX packers 2017-08-24 00:58:39 +03:00
Alexander
a812f6c480 fix tests test_I16 2017-08-23 23:09:09 +03:00
Alexander
d33eab504d byte strings 2017-08-23 10:52:30 +03:00
Alexander
29aca0815a Third part of unpack tests 2017-08-23 10:27:13 +03:00
Alexander
5c2199c97b Second part of unpack tests 2017-08-23 01:55:55 +03:00
Alexander
f012fa15dd First part of unpack tests 2017-08-23 01:32:10 +03:00
wiredfool
f5a8ece187 Merge pull request #2254 from uploadcare/resample-roi
Region of interest (box) for resampling
2017-08-22 22:35:12 +01:00
Alexander
21d1c4cef5 Merge branch 'master' into 16-bit-rgb-tiff 2017-08-21 22:43:30 +03:00
Alexander
846f986bc8 Tests for 16bit tiff 2017-08-21 17:10:05 +03:00
Andrew Murray
ce999ff302 If n_frames is known, then use when determining is_animated 2017-08-18 20:20:27 +10:00
Alexander
b975f9db92 Merge branch 'master' into resample-roi
# Conflicts:
#	libImaging/Resample.c
2017-08-17 15:43:30 +03:00
Alexander
e7cdb3718c Merge branch 'master' into fast-filters 2017-08-17 02:50:18 +03:00
wiredfool
300dfcf4a4 Test/fix for issue #2044 2017-08-16 11:46:27 -07:00
wiredfool
a42f993bec Merge pull request #2675 from radarhere/im
Added test for ImImagePlugin tell()
2017-08-16 15:41:37 +01:00
wiredfool
c0f0268651 Merge pull request #2667 from vytisb/exif_zerodivision
Fix ZeroDivisionError when EXIF contains invalid DPI (0/0).
2017-08-16 15:39:20 +01:00
wiredfool
b4a373eae7 Merge pull request #2659 from radarhere/sgi_tests
Added tests for SgiImagePlugin
2017-08-16 15:37:35 +01:00
wiredfool
e2602452f4 Merge pull request #2661 from uploadcare/get-channel
New Image.getchannel method
2017-08-16 15:33:54 +01:00
wiredfool
1d416c58e5 Merge pull request #2674 from radarhere/fli
Use frame count from FLI header
2017-08-16 15:13:27 +01:00
wiredfool
e7aa155b72 Merge pull request #2654 from python-pillow/storage-cleanup
Storage cleanup
2017-08-16 12:00:32 +01:00
Andrew Murray
72f0c7b873 Updated tests 2017-08-16 20:57:10 +10:00
wiredfool
680a7ac43b Merge branch 'master' into fli 2017-08-16 11:46:55 +01:00
wiredfool
b56d533aea Merge pull request #2650 from hugovk/fix-fli-seek-load
Test animated FLI file
2017-08-16 11:44:35 +01:00
wiredfool
851d4ec538 Merge pull request #2645 from hugovk/mv-createfontdatachunk
Move createfontdatachunk.py so isn't installed globally
2017-08-16 11:38:11 +01:00
wiredfool
3967e00bcd Merge pull request #2641 from hugovk/fix-unexpected-align
Fix unexpected keyword argument 'align'
2017-08-16 11:37:12 +01:00
Alexander
e842919f37 oops 2 2017-08-15 07:53:31 +03:00
Alexander
b8e104e743 oops 2017-08-15 07:52:02 +03:00
Alexander
b31c74a9cc Tests for all bands and combinations 2017-08-15 07:45:03 +03:00
Alexander
847dd67a41 serious test for kernel filters 2017-08-12 23:22:59 +03:00
Alexander
e16ab0ad2e add tests, fix implementation 2017-08-12 14:10:39 +03:00
Andrew Murray
7088e1a201 Added tests 2017-08-12 19:30:09 +10:00
Andrew Murray
4744fc0584 Added test for ImImagePlugin tell() 2017-08-12 15:54:54 +10:00
Alexander
79eae6e3bf actually box can be empty, this is noop 2017-08-11 19:36:46 +03:00
Alexander Karpinsky
09a2e1641b Merge branch 'master' into resample-roi 2017-08-11 19:10:11 +03:00
Vytis Banaitis
7c8e0e4457 Fix ZeroDivisionError when EXIF contains invalid DPI (0/0). 2017-08-09 16:16:14 +03:00
Alexander
349e300d7b use getchannel where is possible 2017-08-09 02:36:07 +03:00
Andrew Murray
5d5a2a3762 Added test for 1 dimensional L mode SGI save 2017-08-07 21:57:59 +10:00
Andrew Murray
667fff7862 Added SGI test for an incorrect number of bands 2017-08-07 20:10:39 +10:00
Andrew Murray
e4927b8f2f Added SGI test for saving an image in an unsupported mode 2017-08-07 19:21:54 +10:00
Alexander
0649da02c6 fix tests on python 3 2017-08-06 14:12:55 +03:00
Alexander
6b50ba07fd add tests for Image.new modes 2017-08-06 14:12:55 +03:00
Hugo
382db4442c Test animated FLI 2017-08-04 14:41:28 +03:00
Hugo
47aa59a046 Add from https://samples.libav.org/fli-flc/
https://samples.libav.org/ says:

This is the Libav samples collection.
You can find samples of various common and uncommon
multimedia formats here. The size of the collection
currently is 54GB and growing.

You are free to download any samples you want, but
if you want to download more than just a few or want
to mirror the whole collection please send a mail to
webmaster(AT)libav(DOT)org *before* you start
and ask for permission.

We can also ship the samples collection to you for a
reasonable fee, inquire for details.

The best way to download samples is with rsync. If you decide
to fetch a large amount (more than 1GB), please limit the rate
to no more than 50 kBps (use the --bwlimit option of rsync).

Please be aware that this samples collection contains a lot
of files that are very obscure, broken in various ways or
are just simply out of use. Hence, it doesn't make sense
to download all of them, unless you are developing a player
applic
2017-08-04 12:39:19 +03:00
Andrew Murray
eaffb1414a Added test 2017-07-29 10:20:19 +10:00
Hugo
8400660083 Move so isn't installed globally 2017-07-27 14:12:28 +03:00
Hugo
90886a4e59 Merge pull request #2632 from wiredfool/issue_2628
Fix JPEG DPI when EXIF is invalid
2017-07-25 11:01:29 +03:00
Hugo
10c7e20045 Test for #2639 2017-07-23 23:56:02 +03:00
Oliver Tonnhofer
9e7de70bac Delete transparency info when convert'ing RGB/L to RGBA
info['transparency] was not removed when an RGB or L image
was converted to RGBA. This could result in unexpected behavior
when saving the resulting image.

Other image conversions already delete or update the transparency
info. There is a shortcut for RGB/L to RGBA which missed this.
2017-07-18 15:00:09 +02:00
wiredfool
908fffdd2c Test for https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612 2017-07-18 01:06:54 -07:00
wiredfool
d2b3e60bbb test for issue #2614 2017-07-16 17:23:08 +10:00
Andrew Murray
844b812ebd Removed debugging code 2017-07-15 17:12:33 +10:00
Eric Soroos
20da797fce updates for centos/amazonlinux 2017-07-01 03:46:49 -07:00
wiredfool
b9b5d39f2b Merge pull request #2595 from wiredfool/issue_1911
Image.Image.alpha_composite Added
2017-07-01 11:43:58 +01:00
wiredfool
8feac899dd Merge pull request #2576 from wiredfool/pr_2284
Complex Text Support
2017-07-01 10:45:18 +01:00
nediamond
d1b66e9dfd Added threshold parameter to ImageDraw.floodfill (#2599)
* added thresh option and test

* fixed up, test works and passes

* Update test_imagedraw.py

* Update test_imagedraw.py

* Update ImageDraw.py

* removed pypy skip decorator from thresh test

* Update ImageDraw.py
2017-07-01 10:37:02 +01:00
wiredfool
2c6cf03de1 test features in get size 2017-06-30 22:57:57 +01:00
Fran Barba
29c622dd3d Fixed typo biger > bigger 2017-06-29 11:21:19 +02:00
wiredfool
14293ea4b1 Tests pass on osx 2017-06-29 01:50:29 -07:00
Fran Barba
a7d75c4b21 Applied Hugovk recommendations 2017-06-28 12:12:44 +02:00
Fran Barba
ebaa509d66 Adjust buffer size when icc_profile > MAXBLOCK (issue #148)
We were encountering some errors when saving specific JPEG images.
The error was shown in stderr as:
  IOError: encoder error -2 when writing image file

And on stdout it printed:
    Suspension not allowed here

The problem was the bufsize not contemplating the icc_profile block.
2017-06-28 12:11:33 +02:00
wiredfool
c7efd0bf6d re-organized the parameters, moved size specification to overlay tuple 2017-06-27 22:03:44 +01:00
wiredfool
1d33dfbced Added source point parameter for Image.Image.alpha_composite 2017-06-27 22:03:44 +01:00
wiredfool
69768c514b Added inplace alpha composite 2017-06-27 22:03:44 +01:00
wiredfool
e3f1e9293d fixing the png leak test memory calculations 2017-06-27 21:20:46 +01:00
wiredfool
db2359a30f y offset on trusty/x86 is 1.63 2017-06-21 14:00:15 -07:00
wiredfool
8d9f6029e1 remove non-tempfile usage from tests 2017-06-21 14:00:15 -07:00
wiredfool
183e0ec21d Added Noto font license [ci skip] 2017-06-21 14:00:15 -07:00
Eric Soroos
53e247cfc4 test tweak for ubuntu 16.04 2017-06-21 14:00:15 -07:00
wiredfool
39327332df test both layout engines, if available 2017-06-21 14:00:15 -07:00
wiredfool
b8c04de043 added layout engine switch 2017-06-21 14:00:15 -07:00
wiredfool
f371ca07f4 hoist tests out of try/except, use feature detection 2017-06-21 14:00:15 -07:00
Fahad Al-Saidi
e07a254ed9 update 2017-06-21 14:00:14 -07:00
Fahad Al-Saidi
fd7a675de6 adding KeyError exception
so the test not fail when there is no raqm lib.
2017-06-21 14:00:14 -07:00
Fahad Al-Saidi
4ed6962364 only catch ImportError same as test_imagefont.py 2017-06-21 14:00:14 -07:00
shamsa
312c87e279 fix testing 2017-06-21 14:00:14 -07:00
shamsa
a77850564a Fix gitsize function. 2017-06-21 14:00:14 -07:00
shamsa
fcd20da3cb Testing complex text layout. 2017-06-21 14:00:14 -07:00
wiredfool
5a671830d8 Merge pull request #2541 from uploadcare/fix-truncated-png-loading
Fix truncated png loading
2017-06-21 12:23:15 +01:00
wiredfool
544f76b102 Adjust test so that we get warning, not error 2017-06-21 04:04:27 -07:00
wiredfool
1a1a2ed001 Added DecompressionBombError on 2 x pixels of warning, ref #2410 2017-06-21 03:54:48 -07:00
wiredfool
8eb1dcb7c5 test for truncated png memory leak #2541 2017-06-21 03:31:32 -07:00
wiredfool
c70977aad7 added decompression bomb check to crop 2017-06-21 02:36:11 -07:00
wiredfool
1f19c023e1 Merge pull request #2406 from blochl/multiframe_tiff
Allow to save tiff stacks from separate images
2017-06-13 22:30:35 +01:00
wiredfool
8323ab1149 Merge pull request #2447 from hugovk/test-mic
Test MicImagePlugin for correctness
2017-06-13 22:20:44 +01:00
hugovk
2d02f4ea9b Adjust test for the gamma of 2.2 encoded into the file 2017-06-13 23:07:46 +03:00
wiredfool
d8f15a0706 Merge pull request #2558 from uploadcare/resize-truncate-coeffs-2
Use round instead of floor to exclude of zero coefficients
2017-06-13 21:03:27 +01:00
wiredfool
c3e041e9e6 Merge branch 'master' into rm-deprecated-fn 2017-06-13 13:32:38 +01:00
wiredfool
ae431bc9fb Merge pull request #2526 from radarhere/pdf
Added append_images to PDF saving
2017-06-13 13:25:50 +01:00
wiredfool
c16ba722f2 Merge pull request #2551 from jdufresne/keys
Remove unnecessary calls to dict.keys()
2017-06-13 13:12:48 +01:00
wiredfool
1cfb20a2a9 Merge pull request #2533 from hugovk/imagedraw
Add more ImageDraw.py tests and remove unused Draw.c code
2017-06-13 13:10:32 +01:00
wiredfool
38be701a9a Merge pull request #2554 from hugovk/test-imagemorph2
More unit tests for ImageMorph
2017-06-13 13:06:52 +01:00
wiredfool
4a8d260d76 Merge pull request #2552 from hugovk/test-mcidas
Test a McIDAS area file
2017-06-13 13:04:30 +01:00
Eric Soroos
3293d6a1c5 tests for features 2017-06-13 04:38:26 -07:00
Andrew Murray
b8e0daaf70 Replaced true assert with comment 2017-06-03 14:05:24 +10:00
Andrew Murray
e8cba27bb1 Changed assert checks to more specific versions 2017-06-03 14:04:54 +10:00
Andrew Murray
cf575ff93e Replaced false assert with fail 2017-06-03 14:04:18 +10:00
Andrew Murray
803cdf068f Removed unnecessary parameter 2017-06-03 13:56:23 +10:00
Hugo
ffcd945ae7 Test MRL save/load roundtrip 2017-05-30 18:02:20 +03:00
hugovk
4c86ef0b52 More morph tests 2017-05-30 18:02:20 +03:00
hugovk
04f28b691e Test negate and fix a TypeError: list indices must be integers, not str 2017-05-30 18:02:20 +03:00
hugovk
761081b1e3 Test mirroring 2017-05-30 18:02:20 +03:00
Andrew Murray
2a5447691a Replaced deprecated assert_ 2017-05-30 19:55:35 +10:00
Andrew Murray
4b1784c9ad Changed file opening to use with 2017-05-30 19:54:40 +10:00
Alexander
ad883961ac fix hamming filter 2017-05-29 14:29:12 +03:00
Jon Dufresne
d244fbb299 Remove unnecessary calls to dict.keys()
iter(dict) is equivalent to iter(dict.keys()), so simply act on the dict
instead of adding the extra call.

Inspired by Lennart Regebro's PyCon 2017 presentation "Prehistoric
Patterns in Python". Available at:

https://www.youtube.com/watch?v=V5-JH23Vk0I
2017-05-28 09:55:38 -07:00
hugovk
9626e49c0b Test a McIDAS area file 2017-05-28 16:11:16 +03:00
hugovk
c70eb8a128 flake8 2017-05-27 23:55:14 +03:00
hugovk
e4d6223c94 Remove deprecated code due for removal in Pillow 4.2 (per PR #2010) 2017-05-27 23:20:03 +03:00
hugovk
e002207c5b Remove function deprecated and warning since 3.0 (1 Oct 2015) 2017-05-27 21:55:42 +03:00
hugovk
d85dffd150 Remove functions deprecated and warning since 2.0 (15 Mar 2013) and raising exceptions since 3.0 (1 Oct 2015) 2017-05-27 21:52:43 +03:00
Hugo
08c72a1720 flake8 2017-05-16 10:33:38 +03:00
hugovk
206e316c0e Test limits of arc/ellipse's start and end 2017-05-15 22:58:51 +03:00
hugovk
f1631e0d05 Test drawing a rectangle bigger than the image 2017-05-15 21:44:28 +03:00
hugovk
5871b7a5ba Test drawing a wide "line" from one point to another just draws a single point 2017-05-15 21:32:54 +03:00
Hugo
ae9181f0a4 Test polygons in RGB and L modes 2017-05-15 18:24:12 +03:00
Hugo
e77c3b3eb2 Test ellipse in RGB and L modes 2017-05-15 18:23:00 +03:00
Hugo
de1f156fcd Add test file 2017-05-15 18:13:36 +03:00
Hugo
d4a350cd79 Test chord in RGB and L modes 2017-05-15 18:04:33 +03:00
Hugo
3db1944762 Test drawing polygons with sloped and flat lines 2017-05-15 17:09:29 +03:00
Joshua Blum
a6874f01ac Add test 2017-05-13 12:07:16 -04:00
wiredfool
f6f30b1c13 Merge pull request #2521 from adw1n/master
Fix for issue #2514 - error handling mistake in _webp.c
2017-05-13 14:24:51 +01:00
Hugo
2e492f8314 Merge pull request #2295 from radarhere/executable
Set executable flag on scripts with shebang line
2017-05-13 13:20:44 +03:00
Andrew Murray
80806d349f Added append_images to PDF saving 2017-05-13 14:26:52 +10:00
adw1n
6ce11c9e8c Added tests that call _webp.WebPEncode and _webp.WebPDecode with invalid number of arguments. 2017-05-12 17:11:58 +02:00
Andrew Murray
37b293f593 Flake8 fixes 2017-04-20 21:14:23 +10:00
Hugo
a4bfe1a1d5 Test file with DPI in EXIF but not metadata, and XResolution is an int rather than tuple 2017-04-11 13:53:01 +03:00
Hugo
b2933dc1c4 Image from Simon Conseil with permission: https://github.com/python-pillow/Pillow/issues/2481#issuecomment-293215833 2017-04-11 13:45:48 +03:00
wiredfool
9207d71f30 Merge pull request #2475 from wiredfool/pr_2032
Added non-exclusive fd for test for #2330
2017-04-04 09:14:19 +01:00
wiredfool
f95c158933 added non-exclusive fd for test 2017-04-04 00:27:20 -07:00
wiredfool
0834e9491e Merge pull request #2330 from wiredfool/pr_2032
Close files after loading when possible.
2017-04-03 23:32:06 +01:00
wiredfool
bfa80cd3b3 Merge pull request #2296 from wiredfool/issue_2268
Fix Access to be reloadable -- Issue #2268
2017-04-03 23:30:25 +01:00
Hugo
53df62647a DPI is a tuple (#2472)
* DPI is a tuple

* Some EXIF only contains an X resolution for DPI

* Refactor

* Test with no DPI in EXIF

* Handle EXIF with no DPI

* Created with: exiftool "-*resolution*"= photoshop-200dpi.jpg

* Test when not in EXIF, DPI==72,72

* Use X resolution for Y, default to 72,72 dpi

* Created with: exiftool -exif:ResolutionUnit=cm photoshop-200dpi.jpg

* Test for EXIF with dpcm instead of dpi

* Convert dpcm to dpi, and default to inches if unit unknown
2017-04-03 23:28:33 +01:00
wiredfool
fe0a33173b Give up on appveyor for now, disable test 2017-04-03 11:47:20 -07:00
wiredfool
1c7e8a18d5 fix for appveyor environment? 2017-04-03 11:23:21 -07:00
wiredfool
06b61f4e5b close the mmap when closing the image #2194 2017-04-03 08:06:59 -07:00
wiredfool
db338ca19a open file check for windows, on jpeg where we don't mmap the file 2017-04-03 08:06:59 -07:00
wiredfool
86c1704646 add _close_exclusive_fp_after_load flag 2017-04-03 08:06:58 -07:00
Andrew Murray
8cd70e74cc Set executable flag on scripts with shebang line 2017-03-31 19:43:19 +11:00
Eric Soroos
6c1f923368 fixed test on python27 OMM 2017-03-22 21:20:37 +00:00
wiredfool
878881b1b9 Fix Access to be reloaded if the python interpreter is restarted when embedded. Fixes #2268. 2017-03-22 21:20:37 +00:00
wiredfool
900c5e5bf2 added unix test for fd leak 2017-03-14 23:17:22 +00:00
wiredfool
e4e0e0d2bf Adjusted test to match expected behavior 2017-03-14 23:17:22 +00:00
Marcus Brinkmann
e8122600f6 Test for: Close file handle in TiffImagePlugin when image is closed. 2017-03-14 23:17:22 +00:00
Marcus Brinkmann
5bdf1e4998 Test for libtiff, n_frames and seek. 2017-03-14 23:17:22 +00:00
Hugo
92acfca46f Test getting DPI from EXIF 2017-03-14 11:26:11 +02:00
Hugo
b7d14b04b6 Test MicImagePlugin for correctness 2017-03-13 08:18:13 +02:00
Hugo
92c32ccf37 Created in Microsoft Image Composer 1.5 from hopper.png 2017-03-13 07:58:47 +02:00
Hugo
1242b77872 Fix typos 2017-03-13 07:58:24 +02:00
wiredfool
c9f54c98a5 Merge pull request #1938 from wiredfool/python-decoder
Pure Python Decoders - fix for MSP decoding
2017-03-12 17:20:19 +00:00
wiredfool
184d4f8dc0 Test encode registry 2017-03-11 21:27:07 +00:00
wiredfool
d718d351b1 Testing empty extents 2017-03-11 16:43:44 +00:00
wiredfool
382833061e Trigger set_as_raw error 2017-03-11 16:30:28 +00:00
wiredfool
d70de6eb2d UnitTest PyDecoder 2017-03-11 15:35:03 +00:00
wiredfool
38f43c1e5f review lint 2017-03-11 13:50:19 +00:00
wiredfool
7fe29ec1c3 Added more additional files 2017-03-11 13:50:19 +00:00
Hugo
069ad8cbb0 Assert some pixel values 2017-03-11 13:50:19 +00:00
Hugo
8840f2b0fb Remove redundant assert and message 2017-03-11 13:50:19 +00:00
hugovk
38c6771be0 Load MSP files to test MSP decoder 2017-03-11 13:50:19 +00:00
hugovk
98b19a9f68 Test Windows v2 MSP files 2017-03-11 13:50:19 +00:00
hugovk
e44773c76c Test with bad checksum 2017-03-11 13:50:19 +00:00
hugovk
cac235bbd6 Created by forcing Pillow to save with checksum=0 2017-03-11 13:50:19 +00:00
wiredfool
f72ceda7c6 version 1 pickle for x-verson compatibility 2017-03-08 01:35:15 -08:00
wiredfool
4483dfbcb9 py3, pep8 2017-03-08 01:35:15 -08:00
wiredfool
1428e4140a Test for identical handling of getheader/getdata 2017-03-08 01:35:15 -08:00
wiredfool
51b46e00c2 Refactor out passed in palette handling, add ImagePalette as an option, document palette format 2017-03-08 01:35:15 -08:00
wiredfool
6559674032 Test passing in an I mode image 2017-03-08 01:35:15 -08:00
wiredfool
b7689627e8 Add tests for passing in a separate palette while saving a gif 2017-03-08 01:35:15 -08:00
Andrew Murray
9a36a51916 Test from #2375, 0ebb4cd1c0 2017-03-08 01:35:15 -08:00
Andrew Murray
af57ff8d45 Simplified code 2017-03-08 19:41:18 +11:00
Andrew Murray
bc8cd5fabf Added test 2017-03-08 19:41:18 +11:00
wiredfool
c0ca5c184d Merge pull request #2443 from hugovk/test-containerio
Test ContainerIO for correctness
2017-03-06 18:54:38 +00:00
wiredfool
9f88a55fa3 Merge pull request #2442 from hugovk/test-xvthumb
Test XVThumbImagePlugin for correctness
2017-03-06 18:53:58 +00:00
wiredfool
1a8f88986d Merge pull request #2441 from hugovk/test-bufrstub
Test BufrStubImagePlugin for correctness
2017-03-06 18:53:13 +00:00
Hugo
3e6d867ae8 Compare to a Hopper image with a similar XV palette 2017-03-06 17:33:47 +02:00
hugovk
d69e252eb8 Remove unnecessary lambda 2017-03-05 09:14:44 +02:00
hugovk
83252ca4b1 Test ContainerIO for correctness 2017-03-05 00:46:30 +02:00
hugovk
a03a6e2049 Test unexpected EOF 2017-03-04 23:33:43 +02:00
hugovk
dc3233d52c Created by editing hopper.p7 in a text editor 2017-03-04 23:31:49 +02:00
hugovk
052905bf5c Remove unnecessary lambda 2017-03-04 23:19:41 +02:00
hugovk
c79204bf08 Test XVThumbImagePlugin for correctness 2017-03-04 19:54:06 +02:00
hugovk
7371e813f6 pngtopam hopper.png | pamtoxvmini > hopper.p7 2017-03-04 19:52:49 +02:00
hugovk
35e6cb1d09 Test BufrStubImagePlugin for correctness 2017-03-04 16:35:54 +02:00
hugovk
f09427c8bd From http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/gfs.2017030406/ 2017-03-04 16:25:28 +02:00
hugovk
5d2e4f48dd Reorder tests to match others 2017-03-04 16:10:52 +02:00
hugovk
0abfa08ff7 Test GribStubImagePlugin for correctness 2017-03-04 13:07:48 +02:00
hugovk
adda419ad6 From http://www.globalmarinenet.com/free-grib-file-downloads/ 2017-03-04 13:04:50 +02:00
wiredfool
5071ea2a0e Merge pull request #2425 from radarhere/tests
Added tests
2017-03-03 15:44:33 +00:00
Andrew Murray
798fde57ca Removed unused imports 2017-03-03 21:38:19 +11:00
Andrew Murray
0b93853fd8 Removed duplicate imports 2017-03-03 21:38:19 +11:00
Andrew Murray
24eb48e9e0 Removed unnecessary lambdas 2017-03-03 21:38:19 +11:00
Andrew Murray
4a6e8d7e92 Removed unnecessary pass 2017-03-03 21:38:19 +11:00
Andrew Murray
18fea70b51 Removed unused variable 2017-03-03 21:38:19 +11:00
Andrew Murray
1fcdf6a2db Removed duplicate test 2017-03-03 21:38:19 +11:00
Andrew Murray
257bc8bd4f Added tests 2017-03-03 19:45:55 +11:00
wiredfool
2fb9c1a337 Merge pull request #2431 from hugovk/test-hdf5stub
Test Hdf5StubImagePlugin for correctness
2017-03-01 09:15:53 +00:00
hugovk
0489e38a0e Test Hdf5StubImagePlugin for correctness 2017-02-28 22:23:05 +02:00
hugovk
48f6be40cc Created via http://stackoverflow.com/a/29736206/724176 2017-02-28 22:21:47 +02:00
hugovk
a7a3bcda84 Test FitsStubImagePlugin for correctness 2017-02-28 21:44:26 +02:00
hugovk
76cde2fafb convert hopper.png hopper.fits 2017-02-28 21:40:58 +02:00
Hugo
49815f8d4a Test pixar for similarity 2017-02-28 08:27:53 +02:00
Hugo
c9e139e260 Image created with Photoshop 2017-02-28 08:22:03 +02:00
Hugo
df2a031941 Test PSD with and without ICC profile 2017-02-27 17:21:27 +02:00
Hugo
1a607bfd56 Resave hopper.psd with ICC profile, using Photoshop 2017-02-27 16:45:31 +02:00
Hugo
921a25d144 Test PSD seek 2017-02-27 16:20:18 +02:00
Hugo
5c3b10ee87 Test PSD for similarity 2017-02-27 16:20:18 +02:00
Hugo
cb34b686a5 Merge pull request #1822 from radarhere/unused
Remove unused imports
2017-02-26 10:05:19 +02:00
hugovk
c4b686f82d flake8 2017-02-23 02:41:28 -08:00
hugovk
e6864d16a8 Remove unrunnable code 2017-02-23 02:41:21 -08:00
wiredfool
64cd722038 Arch qpixmap is fixed on on the docker side with the environment variable QT_QPA_PLATFORM=offscreen 2017-02-22 08:10:08 -08:00
wiredfool
0ee223aa7a Merge pull request #1390 from radarhere/deprecated_27
Removed use of spaces in TIFF kwargs, deprecated in 2.7
2017-02-22 10:13:45 +00:00
wiredfool
a4ef743b0f Merge pull request #2220 from jdufresne/image-draw-dep
Remove long deprecated ImageDraw methods
2017-02-22 10:12:05 +00:00
wiredfool
8421a076ac Merge pull request #2253 from jdufresne/devnull
Send unwanted subprocess output to /dev/null
2017-02-22 10:10:03 +00:00
hugovk
310105625c Failing test case for #2259 2017-02-22 08:16:17 +02:00
wiredfool
c05ac25d6a Merge pull request #2381 from hugovk/convert-matrix
Test matrix convert
2017-02-20 22:37:25 +00:00
wiredfool
5969a7445b Merge pull request #2394 from wiredfool/travis-docker
Additional docker builds, Arch and Debian Stretch, fix for QT tests.
2017-02-20 21:59:20 +00:00
wiredfool
d707cb3692 Tight similarity tests for XYZ conversion 2017-02-20 13:41:28 -08:00
Eric Soroos
89443ae950 B/W images don't save properly in QT4 either 2017-02-20 12:28:13 -08:00
Eric Soroos
1b94ff81fe Skip failing QPixmap/QT5 tests on Arch 2017-02-20 08:51:17 -08:00
Eric Soroos
9b82bdbb10 fix ToQimage tests for QT5 2017-02-20 08:51:17 -08:00
ces42
8fb44a2bee More explicit error message when saving to a file with invalid extension (#2399)
* more explicit error message when saving to a file with invalid extension + test
2017-02-17 13:39:16 +00:00
wiredfool
b5f6732501 Merge pull request #2397 from radarhere/psdraw
Added anchor to readthedocs URL
2017-02-17 13:37:33 +00:00
Leonid Bloch
28b818974e Allow to save tiff stacks from separate images
This is a quick solution that will allow to save tiff stacks from
separate images, e.g. from Numpy arrays.
Previously, tiff stacks could be saved only from multiframe images.
This behavior is similar to what is possible now with GIFs.

Note however, that for correct results, all the appended images should
have the same encoder{info,config} properties.

Example:

import numpy as np
from PIL import Image
a = np.ones((100,100,100), dtype=np.uint8)
imlist = []
for m in a:
    imlist.append(Image.fromarray(m))

imlist[0].save("test.tif", compression="tiff_deflate", save_all=True,
               append_images=imlist[1:])

(Should result in a 100-frame, 100x100 tiff stack.)

Signed-off-by: Leonid Bloch <leonid.bloch@esrf.fr>
2017-02-17 00:57:00 +02:00
Hugo
53e5702557 Update http to https 2017-02-14 11:27:02 +02:00
Andrew Murray
63d0a5a326 Added anchor to readthedocs URL 2017-02-11 12:47:10 +11:00
wiredfool
3ea2599984 Merge pull request #2355 from gunjambi/imagecms-preserve-aux-channels
Imagecms preserve aux channels
2017-02-07 19:38:05 +00:00
wiredfool
9c4eafc188 Merge pull request #2382 from hugovk/test-effects
Test linear and radial gradient effects
2017-02-06 21:58:41 +00:00
hugovk
d7fe8d1eb7 Linear and radial gradient: only need one target image 2017-02-06 22:03:17 +02:00
wiredfool
cdaa448782 Merge pull request #2389 from hugovk/outline
Test ImageDraw.Outline and and ImageDraw.Shape
2017-02-06 16:57:18 +00:00
wiredfool
b93025fa5b Merge pull request #2380 from evalapply/master
BUG fix: '' in image mode no longer causes a crash
2017-01-31 19:03:29 +00:00
hugovk
96dfd722c3 Test ImageDraw.Outline curve 2017-01-31 08:22:33 +02:00
hugovk
008431fe0e Test ImageDraw.Outline curve 2017-01-30 21:50:48 +02:00
Hugo
04e3f585b0 Test no change with identity matrix 2017-01-30 14:28:00 +02:00
Hugo
7fba16b074 Test for similarity 2017-01-30 14:27:29 +02:00
hugovk
07af06bf8c Expose and test radial_gradient 2017-01-29 18:44:24 +02:00
hugovk
3ead178d18 flake8 2017-01-29 18:38:06 +02:00
hugovk
47b1c66961 Expose and test linear_gradient 2017-01-29 18:17:31 +02:00
hugovk
fdf0737fcd Test matrix convert for ValueError: image has wrong mode 2017-01-29 15:55:17 +02:00
hugovk
90dac5f4dc Refactor and test matrix convert with RGB and L modes 2017-01-29 14:24:49 +02:00
hugovk
cea36587ab Test matrix convert 2017-01-29 14:03:38 +02:00
Lukasz Kozuchowski
3e317f3ca0 Empty image mode test 2017-01-29 07:50:28 +01:00
Jarkko Pöyry
fa56b3d255 Add tests for CMS transform auxiliary channel preservation. See bug #1662. 2017-01-28 22:04:49 +02:00
Andrew Murray
e67ee44ea8 Added test for missing method data in Image transform 2017-01-28 14:21:41 +11:00
Andrew Murray
cd114cef3f Added test for Image fromstring NotImplementedError 2017-01-28 14:16:39 +11:00
Andrew Murray
2039d43d85 Added test for unknown filter in Image resize 2017-01-28 14:09:28 +11:00
Andrew Murray
01cb6590a4 Added test for point operation on F mode image 2017-01-28 14:02:22 +11:00
Andrew Murray
e8495e5917 Added test for abbreviated Image paste mask syntax 2017-01-28 13:50:44 +11:00
Andrew Murray
581fef2ebd Added test for Image offset NotImplementedError 2017-01-28 13:06:28 +11:00
Jon Dufresne
cecdb2af61 Send unwanted subprocess output to /dev/null
Avoids unnecessary creation of temporary files as well as unnecessarily
storing process output in memory. The temporary files would sometimes
remain and not be cleaned up.
2017-01-26 17:31:29 -08:00
wiredfool
2df28a6601 Merge pull request #2347 from radarhere/icc_profile
Moved iCCP chunk before PLTE chunk when saving as PNG
2017-01-26 14:26:25 +00:00
wiredfool
a62f2c5b44 Merge pull request #2365 from SemanticsOS/lambdafu/dpiresolution
Default to inch-interpretation for missing ResolutionUnit in TiffImagePlugin
2017-01-26 14:22:32 +00:00
wiredfool
2d06d8550f Merge pull request #2359 from wiredfool/issue_1902
Fix for issue ImageTk Integer Overflow error
2017-01-26 14:12:32 +00:00
Eric Soroos
e66271d464 added tests for functionality in ImageTk 2017-01-26 05:31:45 -08:00
Andrew Murray
f0480de118 Restricted PNG encoderinfo chunks to valid values when saving 2017-01-21 16:57:03 +11:00
Andrew Murray
ded14572a1 Added more tests for PNG chunk ordering 2017-01-21 14:47:59 +11:00
Andrew Murray
361f579579 Moved iCCP chunk before PLTE chunk when saving as PNG 2017-01-21 13:32:22 +11:00
Eric Soroos
94cc72a2ba disable tests broken on old system versions of numpy/scipy 2017-01-20 11:35:49 -08:00
Hugo
bceee54895 Prevent nose -v printing docstrings (#2369) 2017-01-20 19:10:02 +00:00
Marcus Brinkmann
8a9bd2cdcd Default to inch-interpretation for missing ResolutionUnit in TiffImagePlugin. 2017-01-19 17:24:28 +01:00
Andrew Murray
b82151f281 Removed unused division import 2017-01-18 20:06:47 +11:00
Andrew Murray
c168f01111 Removed imports used only by comments 2017-01-18 20:06:47 +11:00
Andrew Murray
97a2d42dac Removed unused print_function imports 2017-01-18 20:06:21 +11:00
wiredfool
c1b510c72c Merge pull request #2307 from radarhere/contextmanagers
Added context managers
2017-01-17 13:20:41 +00:00
Andrew Murray
89742225bf Fixed test coverage 2017-01-07 13:20:16 +11:00
Andrew Murray
2a93cdb698 Simplified assertEqual checks to assertTrue 2017-01-07 11:35:09 +11:00
Luis G
dad5971561 Add unit tests
Add unit tests for registered_extensions
2017-01-07 11:32:16 +11:00
Andrew Murray
c5265e2100 Added test for crop operation with no argument 2017-01-03 13:30:09 +11:00
wiredfool
45138fec9b Added output checked tests for rotate with center and translate 2017-01-01 11:09:06 +00:00
wiredfool
7228de1491 test image 2016-12-31 19:31:02 +00:00
wiredfool
5fda1a803a Added resample target test 2016-12-31 19:30:26 +00:00
wiredfool
cc1ba56c28 Refactor tests 2016-12-31 19:12:39 +00:00
Marcus Brinkmann
90077b3975 Add center and translate option to Image.rotate. 2016-12-31 19:01:09 +00:00
wiredfool
5269828d3a Test: Relax WMF test condition, fixes #2323 2016-12-31 17:38:35 +00:00
wiredfool
c7df6287fa Merge pull request #2262 from wiredfool/zero_size
Allow 0 size images, Fixes #2259
2016-12-31 16:35:14 +00:00
wiredfool
20abc9cdfe Fix size check on expan for image_rotate 2016-12-31 13:31:51 +00:00
wiredfool
7d59183c1d Zero image size test 2016-12-31 13:19:29 +00:00
wiredfool
0a922b962f tests for basic operations on 0x0 images 2016-12-31 13:19:29 +00:00
wiredfool
69bea50810 Allow 0 size images, Fixes #2259 2016-12-31 13:19:29 +00:00