Commit Graph

3623 Commits

Author SHA1 Message Date
Hugo van Kemenade
fac81d6228
Merge pull request #7905 from radarhere/current 2024-03-27 11:10:24 +02:00
Andrew Murray
6ca8bfb253
Merge pull request #7897 from hugovk/flake8-pyi
Type hints: Add PYI (flake8-pyi) to Ruff and fix errors
2024-03-27 19:58:53 +11:00
Hugo van Kemenade
73bf04474f
enum can't be None
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 10:35:28 +02:00
Hugo van Kemenade
98c7d90af6
Variables can be None; update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-27 09:16:31 +02:00
Andrew Murray
2c6258bee5 Updated indents 2024-03-26 06:08:10 +11:00
Andrew Murray
9d101bffeb
Removed reference to "current version"
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-26 06:07:39 +11:00
Andrew Murray
fb84c546b7 Removed references to the "current version" 2024-03-26 06:00:03 +11:00
Andrew Murray
0f49eaf230 Simplified code 2024-03-25 18:23:52 +11:00
scaramallion
1f182ce8da Fix parsing the J2K header 2024-03-25 17:39:21 +11:00
scaramallion
ce060a8e8b Fix 9-bit JPEG 2000 images not using I;16 2024-03-24 15:40:11 +11:00
Hugo van Kemenade
6ed952b510 Fix: PYI024 Use typing.NamedTuple instead of collections.namedtuple 2024-03-23 20:52:50 +02:00
Hugo van Kemenade
5d37d028d3 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:44:43 +02:00
Hugo van Kemenade
41ffc1de81 Fix: PYI044 'from __future__ import annotations' has no effect in stub files, since type checkers automatically treat stubs as having those semantics 2024-03-23 20:41:29 +02:00
Jeffrey A. Clark (Alex)
4197263dff Clean up authors and contributors
- `s/Jeffrey A. Clark (Alex)/Jeffrey A. Clark/g`. People can figure out that I am Alex.
- We've added "contributors" to Fredrik's copyright statements because it seems appropriate that it be there based on: https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#02b5-117.
- Fredrik is the PIL author and I am the Pillow author.
- Consistently apply all of the above everywhere.
2024-03-23 09:40:39 -04:00
mergify[bot]
759630fbaf
Merge pull request #7891 from radarhere/kmeans
Raise ValueError if kmeans is negative
2024-03-22 22:02:42 +00:00
Andrew Murray
3004c46683 Block saving TIFF tag OSUBFILETYPE using libtiff 2024-03-22 23:43:55 +11:00
Andrew Murray
171e497e05 Raise ValueError if kmeans is negative 2024-03-22 17:36:04 +11:00
Hugo van Kemenade
ca973709a0
Merge pull request #7882 from radarhere/ppm 2024-03-21 18:24:54 +02:00
Hugo van Kemenade
9d3c8d54b4
Merge pull request #7870 from radarhere/j2k_pclr 2024-03-21 18:24:45 +02:00
Hugo van Kemenade
3bbc865afc
Merge pull request #7872 from radarhere/webp_alpha_quality 2024-03-21 18:20:40 +02:00
Andrew Murray
3ba8eb3b7e Raise a ValueError for negative values when loading P1-P3 PPM images 2024-03-16 12:29:21 +11:00
Hugo van Kemenade
794a7d691f
Merge pull request #7881 from radarhere/rounded_rectangle 2024-03-15 17:43:47 +02:00
Andrew Murray
d2453250f1 Fixed joined corners for rounded_rectangle() non-integer dimensions 2024-03-15 23:58:07 +11:00
Andrew Murray
e2986e1989 Do not upgrade NumPy 2024-03-15 20:41:15 +11:00
Andrew Murray
64c8c27271 Added alpha_quality argument when saving 2024-03-13 18:55:29 +11:00
Andrew Murray
f128d47e15 Added reading of JPEG2000 palettes 2024-03-12 19:30:23 +11:00
Andrew Murray
b22e4711cb Import __version__ from . 2024-03-12 12:02:26 +11:00
Hugo van Kemenade
9ad22fc96a
Merge pull request #7753 from radarhere/eps 2024-03-11 17:51:29 +02:00
Hugo van Kemenade
94f319cd35
Merge pull request #7706 from radarhere/psd 2024-03-11 17:51:06 +02:00
Hugo van Kemenade
fc30eba882
Merge pull request #7791 from radarhere/imageshow 2024-03-11 17:48:31 +02:00
Hugo van Kemenade
93bf9912e2
Merge pull request #7788 from radarhere/gif_disposal 2024-03-11 17:48:13 +02:00
Hugo van Kemenade
1b6e68eaae
Merge pull request #7823 from radarhere/png_iccp 2024-03-11 17:42:22 +02:00
Hugo van Kemenade
4e92ee0818
Merge pull request #7840 from radarhere/write_undefined 2024-03-11 17:41:13 +02:00
Hugo van Kemenade
9fec5d581d
Merge pull request #7842 from radarhere/exif 2024-03-11 17:40:36 +02:00
Hugo van Kemenade
89d8be5b94
Merge pull request #7821 from radarhere/apng 2024-03-11 17:38:48 +02:00
Hugo van Kemenade
3cdd49f31f
Merge pull request #7801 from radarhere/codecs 2024-03-11 17:38:12 +02:00
Hugo van Kemenade
d8c8075061
Merge pull request #7797 from radarhere/tga_palette 2024-03-11 17:37:20 +02:00
Hugo van Kemenade
f543b034bd
Merge pull request #7798 from radarhere/ico 2024-03-11 17:36:31 +02:00
Hugo van Kemenade
80fd507335
Merge pull request #7713 from radarhere/load 2024-03-11 17:34:38 +02:00
Richard Barnes
38cec87c93
Fix shift-sign issue in Convert.c (#7838)
* Fix shift-sign issue in Convert.c

Fixes
```
libImaging/Convert.c:513:25: error: signed shift result (0xFF000000) sets the sign bit of the shift expression's type ('int') and becomes negative [-Werror,-Wshift-sign-overflow]
    UINT32 trns = (0xff << 24) | ((b & 0xff) << 16) | ((g & 0xff) << 8) | (r & 0xff);
                   ~~~~ ^  ~~
```

---------

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-09 17:52:00 +11:00
Andrew Murray
b7f39076a1
Merge pull request #7846 from radarhere/type_hints
Added type hints to additional tests
2024-03-03 21:33:08 +11:00
Andrew Murray
d6a3f89e27 Open 16-bit grayscale PNGs as I;16 2024-03-02 15:39:43 +11:00
Andrew Murray
6d78d42769 Added type hints 2024-03-02 13:12:17 +11:00
Andrew Murray
a20abff5e4
Merge pull request #7709 from lajiyuan/main
Handle truncated chunks at the end of PNG images
2024-03-01 22:25:28 +11:00
Hugo van Kemenade
1b25019a27
Merge pull request #7779 from radarhere/gif
Match mask size to pasted image size in GifImagePlugin
2024-03-01 12:14:05 +02:00
Andrew Murray
10b48a60c1
Merge branch 'main' into exif 2024-02-29 23:04:16 +11:00
Andrew Murray
9637ea7c45
Merge branch 'main' into write_undefined 2024-02-29 23:02:49 +11:00
Andrew Murray
b80b30d2fd
Merge branch 'main' into png_iccp 2024-02-29 22:58:15 +11:00
Andrew Murray
492943a0ff Fix logged tag name when loading with getexif() 2024-02-29 20:53:22 +11:00
Andrew Murray
dcbe402f77 Changed SupportsGetMesh protocol to be public 2024-02-29 20:16:41 +11:00