Commit Graph

354 Commits

Author SHA1 Message Date
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
neiljp (Neil Pilgrim)
9ec023503d Image.__eq__: Add isinstance check. 2017-08-24 16:46:12 -07:00
neiljp (Neil Pilgrim)
58df924da6 Image.py: _conv_type_shape: refactor for clarity and type-safety. 2017-08-24 16:46:12 -07:00
neiljp (Neil Pilgrim)
470da1c6de Image.rotate: Adjust variable use to avoid None & add comment re int/float. 2017-08-24 16:41:07 -07:00
neiljp (Neil Pilgrim)
6f69379fdc Image.remap_palette: Tweak to improve typing. 2017-08-24 15:41:44 -07:00
neiljp (Neil Pilgrim)
72b3e6819d Image._dump: Rewrite for clarity and type-safety. 2017-08-24 15:41:44 -07:00
neiljp (Neil Pilgrim)
ab6c60da1c Image.merge: Rename loop variable for clarity and type-safety. 2017-08-24 15:41:44 -07: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
b975f9db92 Merge branch 'master' into resample-roi
# Conflicts:
#	libImaging/Resample.c
2017-08-17 15:43:30 +03:00
wiredfool
e1aba29f9b Merge pull request #2683 from wiredfool/issue_2044
Test/fix for issue #2044
2017-08-17 11:52:07 +01:00
Alexander
9cf8f93c64 Merge branch 'master' into fast-merge
# Conflicts:
#	_imaging.c
#	libImaging/Bands.c
#	libImaging/Imaging.h
2017-08-16 22:56:16 +03:00
wiredfool
300dfcf4a4 Test/fix for issue #2044 2017-08-16 11:46:27 -07:00
wiredfool
d3580451e2 Merge pull request #2676 from uploadcare/fast-split
Fast split()
2017-08-16 16:10:33 +01:00
wiredfool
e2602452f4 Merge pull request #2661 from uploadcare/get-channel
New Image.getchannel method
2017-08-16 15:33:54 +01:00
Alexander
91b08b7daa noop core.merge 2017-08-12 19:08:07 +03:00
Alexander
559836d97d im.split method
ImagingSplit function without implementation
2017-08-12 15:26:00 +03:00
Alexander
e16ab0ad2e add tests, fix implementation 2017-08-12 14:10:39 +03:00
Alexander
a1e2d42ea0 text fixes 2017-08-12 10:32:42 +03:00
Alexander
b46b5c4e84 release notes
autodocs
fix docstring
note for `Image.split`
2017-08-12 01:24:53 +03:00
Alexander Karpinsky
09a2e1641b Merge branch 'master' into resample-roi 2017-08-11 19:10:11 +03:00
Alexander
1a7cb317be load image before getting channels 2017-08-09 02:39:53 +03:00
Alexander
0002e18c74 New Image.getchannel method 2017-08-09 01:58:22 +03:00
Hugo
96abb60059 Add newlines to error message for clarity 2017-07-23 23:39:40 +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
Andrew Murray
9406e8ea81 Corrected alpha_composite args documentation 2017-07-16 17:37:51 +10: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
dc04930699 Merge pull request #2517 from wiredfool/single_version
RFC: Specify Version in one place
2017-06-29 13:17:02 +01:00
wiredfool
92b8db1935 Docs, wording 2017-06-29 05:14:43 -07: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
edc8d8627c Fix to ensure that define is interpreted as a string on windows 2017-06-21 05:44:24 -07:00
wiredfool
fdc6e149fb Fix bad merge -- undoes minor speedup of copy instead of crop 2017-06-21 02:36:12 -07:00
wiredfool
c70977aad7 added decompression bomb check to crop 2017-06-21 02:36:11 -07:00
wiredfool
26050f25bd Merge pull request #2409 from wiredfool/draft
Clarify that draft is only implemented for JPEG and PCD
2017-06-13 22:24:02 +01:00
wiredfool
7622885f3c s/warning/note/ 2017-06-13 14:23:18 -07: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
wiredfool
dd5bfec11c save_ppm doesn't take kwargs 2017-05-13 14:22:18 +01:00
Hin-Tak Leung
9f8aeb5d8e put compress_level=1 inside Image._dump()
Better alternative to setting compress_level=1 than the secret handshake
in the last attempt.

The last in a series of changes to fix
https://github.com/python-pillow/Pillow/issues/2508
2017-05-13 14:22:18 +01:00
Andrew Murray
37b293f593 Flake8 fixes 2017-04-20 21:14:23 +10:00
wiredfool
df616d2b16 Merge pull request #2471 from radarhere/crop
Return copy on Image crop if crop dimensions match the image
2017-04-19 11:46:07 +01: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
06b61f4e5b close the mmap when closing the image #2194 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
4dd7b94338 Return copy on Image crop if crop dimensions match Image dimensions 2017-03-31 13:02:56 +11:00
Christoph Gohlke
140c4b54c0 Remove superfluous import of FixTk
The `_imaging` module does not link against libtcl/libtk.
`FixTk` is imported by `import Tkinter` if necessary.
The `FixTk` module is for Python 2.x on Windows only.
2017-03-22 10:15:29 -07:00
homm
58484db509 close files after loading for some file types 2017-03-12 20:05:20 +00:00
homm
88ec0bb52f close file in case of failures 2017-03-12 20:05:20 +00:00