Andrew Murray
|
fa8ecffff2
|
Corrected seek documentation
|
2019-03-17 00:00:10 +11:00 |
|
Hugo
|
125a001b66
|
Merge pull request #3698 from radarhere/context
Only close exclusive fp on Image __exit__
|
2019-03-11 21:41:44 +02:00 |
|
Hugo
|
63f31ee380
|
Merge pull request #3699 from glasnt/topic/quantize-dither
Add option to set dither param on quantize
|
2019-03-11 12:18:32 +02:00 |
|
Andrew Murray
|
878244bf38
|
Fixed typo
|
2019-03-11 11:13:39 +11:00 |
|
Katie McLaughlin
|
0b63579f39
|
Add option to set dither param on quantize
Default the option to `1`, as per original setting
|
2019-03-09 10:36:13 +11:00 |
|
Andrew Murray
|
b29365e8a0
|
Updated list of Unix utilities used to show an image [ci skip]
|
2019-03-07 15:24:27 +11:00 |
|
Hugo
|
2edab165a1
|
Since #2527, macOS saves to a temp PNG before showing
|
2019-03-06 15:57:58 +02:00 |
|
Andrew Murray
|
b1cc7df7ba
|
Only close exclusive fp on Image __exit__
|
2019-03-06 21:55:32 +11:00 |
|
Frédéric Chapoton
|
e514fbbbb1
|
use the already import io
instead of importing again from io (lgtm suggestion)
|
2019-03-02 21:19:57 +01:00 |
|
Andrew Murray
|
57807e9ce2
|
Merge pull request #3624 from hugovk/rm-VERSION
Remove deprecated VERSION
|
2019-03-02 11:47:59 +11:00 |
|
Hugo
|
d9f5f44799
|
Merge pull request #3632 from radarhere/thumbnail
Do not resize in Image.thumbnail if already the destination size
|
2019-02-27 23:37:20 +02:00 |
|
Andrew Murray
|
1162b4cf83
|
Do not resize if already the destination size
|
2019-02-13 19:26:37 +11:00 |
|
Jon Dufresne
|
dd1e7ccc4a
|
Slightly simplify Image.__eq__
Two identical types can be compared using the `is` operator. Object
identity is slightly faster than a string comparison as well.
|
2019-02-03 07:13:28 -08:00 |
|
Hugo
|
4d1a459fa7
|
Merge pull request #3574 from jdufresne/base-exc
Catch BaseException for resource cleanup handlers
|
2019-02-03 11:35:44 +02:00 |
|
Hugo
|
158d99b8b0
|
Remove deprecated VERSION
|
2019-01-30 15:46:14 +02:00 |
|
Jon Dufresne
|
51e95f6252
|
Catch BaseException for resource cleanup handlers
In the event of a SystemExit or KeyboardInterrupt, file resources should
still be cleaned up before re-raising the exception.
https://docs.python.org/3/library/exceptions.html#exception-hierarchy
|
2019-01-12 18:32:14 -08:00 |
|
Jon Dufresne
|
3e28ba3b7d
|
Python del is a statement not a function
https://docs.python.org/3/reference/simple_stmts.html#the-del-statement
|
2019-01-12 18:28:35 -08:00 |
|
Andrew Murray
|
71b64dcf73
|
Only close __fp if not fp
|
2019-01-04 12:29:23 +11:00 |
|
Andrew Murray
|
671f7a392d
|
Allow RGBA value for P image putpixel
|
2018-12-31 13:37:04 +11:00 |
|
Andrew Murray
|
3f6282e259
|
Allow RGB value for P image putpixel
|
2018-12-31 11:35:15 +11:00 |
|
Andrew Murray
|
5edeca28b6
|
Corrected docstring
|
2018-12-28 07:14:44 +11:00 |
|
Hugo
|
69837baba2
|
Merge pull request #3490 from radarhere/open_files
Updated open files documentation
|
2018-12-13 21:14:22 +02:00 |
|
Hugo
|
3ed5dcc928
|
Merge pull request #3467 from hugovk/lint-can-fail
CI: Allow lint job to fail
|
2018-12-13 21:09:58 +02:00 |
|
Hugo
|
961fecb35c
|
Merge pull request #3261 from radarhere/fp
Resolve __fp when closing and deleting
|
2018-12-13 21:09:23 +02:00 |
|
Andrew Murray
|
91f727051b
|
Updated open files documentation
|
2018-12-11 14:39:10 +11:00 |
|
Andrew Murray
|
ad26f53bf6
|
Updated comments
|
2018-12-05 18:19:00 +11:00 |
|
Hugo
|
c353225851
|
Prefer 'except Exception:' to bare 'except:'
|
2018-12-04 23:25:28 +02:00 |
|
Andrew Murray
|
47775f3d50
|
Resolve __fp when closing and deleting
|
2018-11-17 21:56:06 +11:00 |
|
Hugo
|
0b7910c7cd
|
flake8: E402 module level import not at top of file
|
2018-11-11 19:01:10 +02:00 |
|
Hugo
|
91da8ff31d
|
flake8: F401 imported but unused
|
2018-11-11 19:01:10 +02:00 |
|
Andrew Murray
|
e3220c0f4d
|
Changed capitalisation
|
2018-11-11 16:00:48 +11:00 |
|
Andrew Murray
|
747eccbfc2
|
Close exclusive fp on open exception
|
2018-11-09 11:35:08 +11:00 |
|
Andrew Murray
|
929f7397db
|
Line too long
|
2018-10-21 18:26:08 +11:00 |
|
Andrew Murray
|
6099ddeef9
|
Expected 1 blank line before a nested definition
|
2018-10-21 17:59:18 +11:00 |
|
Erich Seifert
|
9807f1ad56
|
Fixed documentation on bilevel conversion
The cutoff when converting an image to bilevel (mode "1") is 128. This should resolve issue #3394.
|
2018-10-05 01:11:24 +02: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 |
|
Hugo
|
a0fda60662
|
Use snake_case
|
2018-09-30 15:34:33 +10: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
|
0adeb82e98
|
Changed Image size property to be read-only by default
|
2018-09-30 13:45:18 +10:00 |
|
Andrew Murray
|
29bc4b2df4
|
Improved convert documentation [ci skip]
|
2018-09-29 20:14:56 +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
|
5a8c48c4f3
|
Merge pull request #3205 from radarhere/transparency
Added transparency to matrix conversion
|
2018-09-26 15:29:21 +03:00 |
|
Hugo
|
ed4de6cb62
|
Fix docstring typo
If we `import numpy as np`, use `np` not `numpy`
|
2018-09-20 15:27:30 +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 |
|
Giovanni Cavallin
|
e5160bd373
|
From KeyError to ValueError when saving image
When saving an image, if the extension is not determined it raises a ValueError (while internally it manages a KeyError) so I propose this change
|
2018-09-11 19:32:47 +10:00 |
|
dinko
|
66207b47bc
|
fix _crop and tests
|
2018-09-05 21:00:35 +02:00 |
|
Jon Dufresne
|
37f10651bd
|
Clean up commented out debug print statements
|
2018-09-04 20:02:42 -07:00 |
|
Andrew Murray
|
e98469ecf6
|
Added transparency to matrix conversion
|
2018-08-25 00:54:51 +10:00 |
|
Andrew Murray
|
e3aaa80c06
|
Added NumPy to documentation
|
2018-08-12 13:58:26 +10:00 |
|
Andrew Murray
|
4d59941608
|
Simplified dictionary pop
|
2018-07-01 14:47:48 +10:00 |
|