Commit Graph

432 Commits

Author SHA1 Message Date
Andrew Murray
a0326245a2 Removed typo 2022-11-28 08:40:04 +11:00
Andrew Murray
24a5405a9f Added IFD enum 2022-11-28 08:39:56 +11:00
Hugo van Kemenade
bb2016794f
Merge pull request #6647 from radarhere/rgb2lab 2022-10-19 10:32:03 +02:00
Hugo van Kemenade
87a9d7197e
Merge pull request #6644 from radarhere/convert 2022-10-19 10:22:00 +02:00
Andrew Murray
a4b257269e Image channel is used when converting PA with an RGBA palette 2022-10-13 20:21:39 +11:00
Hugo van Kemenade
c2efd60e22
Merge pull request #6594 from radarhere/numpy 2022-10-12 12:57:51 +02:00
Andrew Murray
fcd3eef594 Added conversion between RGB/RGBA/RGBX and LAB 2022-10-07 22:33:45 +11:00
Andrew Murray
b8cd3e72a6 Do not attempt normalization if image is already normal 2022-10-07 09:48:56 +11:00
Hugo van Kemenade
f73499e475
Merge pull request #6543 from radarhere/remap_palette 2022-09-21 12:45:26 +03:00
Andrew Murray
d02f91c6da Raise a warning if NumPy will not raise an error during conversion 2022-09-17 20:11:55 +10:00
Hugo van Kemenade
9b53e3b581
Merge pull request #6539 from radarhere/thumbnail
Do not call load() before draft() in Image.thumbnail
2022-09-11 19:15:01 +03:00
Andrew Murray
a36b766d36 Simplified enum references 2022-09-03 20:53:22 +10:00
Andrew Murray
9fa421923c Removed requirement for 256 palette entries 2022-08-28 15:58:30 +10:00
Andrew Murray
38b53a9fd7 Do not call load() before draft() 2022-08-26 20:33:51 +10:00
Andrew Murray
a37593f004 Allow RGB and RGBA values for PA image putpixel 2022-08-14 14:34:42 +10:00
Andrew Murray
f42e255206 Simplified code 2022-07-26 11:58:44 +10:00
Alexander Piskun
6e97da0260
fixing xmp tag orientation generated by exiftool 2022-07-26 00:30:32 +03:00
Tim Gates
dfa6655bdd
docs: fix simple typo, unpredicatable -> unpredictable
There is a small typo in src/PIL/Image.py.

Should read `unpredictable` rather than `unpredicatable`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-16 19:04:42 +10:00
Andrew Murray
300f6c8a59 Document where to find other codecs 2022-07-04 19:33:21 +10:00
Andrew Murray
e5046b1057 Reverted to __array_interface__ with the release of NumPy 1.23 2022-06-24 23:08:36 +10:00
Hugo van Kemenade
8bd7e81b5d
Merge pull request #6352 from radarhere/apply_transparency
Added apply_transparency()
2022-06-11 17:58:10 +03:00
Andrew Murray
11be163143 Added apply_transparency() 2022-06-06 22:47:58 +10:00
Andrew Murray
4c8aff9798 Allow remapping P images with RGBA palettes 2022-06-06 00:12:48 +10:00
Hugo van Kemenade
b261e17907
Merge pull request #6335 from radarhere/exif 2022-06-01 16:36:03 +03:00
Hugo van Kemenade
27f5c4d8fb
Merge pull request #6176 from radarhere/gif_transparency
Improve transparency handling when saving GIF
2022-05-27 08:31:37 +02:00
Andrew Murray
b1885779a9 Once exif data is parsed, do not reload unless it changes 2022-05-27 07:54:54 +10:00
Andrew Murray
99f4623a8d Remove transparency if it cannot be remapped 2022-05-21 17:39:37 +10:00
Andrew Murray
46a80d144a Update transparency when remapping the palette 2022-05-21 16:37:47 +10:00
Hugo van Kemenade
2c58c3ee11
Merge pull request #6213 from radarhere/fp 2022-05-19 18:52:55 +03:00
Andrew Murray
80782bba9b
Merge pull request #6254 from benrg/affine-transform
Support more affine expression forms in im.point()
2022-05-19 21:06:04 +10:00
Yulv-git
a0fa540b0b Fix some typos. 2022-05-14 12:46:46 +08:00
Andrew Murray
ef8fd7f8b9 Populate Python palette in fromarray() 2022-05-09 18:50:54 +10:00
Ben Rudiak-Gould
88f46f3c99 Add a comment 2022-05-03 13:42:04 -07:00
Andrew Murray
46802d5def Removed unused import and restored existing checks (#1)
* Removed unused import

* Restored existing checks

* Restored coerce_e, _E and data property

* Deprecated coerce_e

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2022-05-03 13:05:39 -07:00
Ben Rudiak-Gould
4e12ccc63e Support more affine expression forms in Image.point
In modes I and F, Image.point only supported affine expressions of the
forms (lambda x:) x * a, x + a, and x * a + b. Expressions like 1 - x
had to be written x * -1 + 1.

This rewrite, though still limited to affine transformations, supports
far more expression forms, including 1 - x, (2 * x + 1) / 3, etc.
2022-05-03 13:05:39 -07:00
Andrew Murray
bcded33cee
Merge pull request #6195 from hugovk/cleanup
Cleanup: various
2022-04-26 18:51:44 +10:00
Andrew Murray
5d4258e72b Simplified index slicing 2022-04-25 22:52:29 +10:00
Sumanth
f77aabf281
Update Image.py docstrings.
Update Image.py file with  a typo in effect_mandelbrot method.
The Typo was in docstrings of the effect_mandelbrot method in Image module of PIL.
2022-04-24 18:42:37 +05:30
Andrew Murray
e62449f94c Added DeferredError to _fp 2022-04-17 12:14:53 +10:00
Andrew Murray
4e075adcc5 Merged _close_fp into close and __exit__ 2022-04-17 12:13:58 +10:00
Andrew Murray
2ae52552f7 Renamed __fp to _fp 2022-04-17 12:13:58 +10:00
Andrew Murray
35fbf22250
Merge branch 'main' into cleanup-names 2022-04-16 19:49:40 +10:00
Andrew Murray
535c45717f
Merge pull request #6184 from hugovk/deprecations-helper
Add deprecations helper
2022-04-16 18:58:46 +10:00
Hugo van Kemenade
136d1a89df
Fix deprecation warning
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-04-15 12:08:15 +03:00
Hugo van Kemenade
7fa92c67b1 [Private] class names should be CamelCase 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
d241e38120 [Private] function names should be snake_case 2022-04-10 23:55:16 +03:00
Hugo van Kemenade
830da5c41e Rewrite dict creation as dict literal for better performance 2022-04-10 23:39:54 +03:00
Hugo van Kemenade
63f64de8b5
Merge pull request #6188 from radarhere/point 2022-04-08 20:05:30 +03:00
Andrew Murray
0b5cdba431 Load before getting size in resize() 2022-04-08 19:11:27 +10:00
Andrew Murray
42f67d184a Round lut values where necessary 2022-04-07 08:58:57 +10:00