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
dcbe402f77
Changed SupportsGetMesh protocol to be public
2024-02-29 20:16:41 +11:00
Andrew Murray
f8a54b78a3
Merge pull request #7782 from evanmiller/webp-get-next-without-gil
...
Release GIL while calling `WebPAnimDecoderGetNext`
2024-02-22 21:50:41 +11:00
Hugo van Kemenade
e08e1f8340
Merge pull request #7804 from twolife/fix_flc
2024-02-22 11:05:15 +02:00
Sébastien Noel
e45477e507
fix FLI/FLC decoder for files with a prefix chunk
2024-02-22 09:13:48 +01:00
Andrew Murray
097cf182fc
Added py.typed to support type checking
2024-02-21 21:26:37 +11:00
Andrew Murray
5c858d75e4
Added type hints
2024-02-17 10:45:52 +11:00
Andrew Murray
47eaf0937f
Use IO[bytes] in type hints
2024-02-13 22:26:23 +11:00
Andrew Murray
8acacffb70
Merge branch 'main' into webp-get-next-without-gil
2024-02-13 21:33:15 +11:00
Andrew Murray
29dd02509d
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-11 22:02:55 +11:00
Andrew Murray
8ef0ffc2b8
Removed no cover pragma
2024-02-10 22:37:42 +11:00
Andrew Murray
d02a778efd
Removed no cover pragmas
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:57:59 +11:00
Andrew Murray
68db96981c
Removed else
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-10 21:50:48 +11:00
Andrew Murray
517b797132
Removed FileDescriptor
2024-02-10 20:47:32 +11:00
Andrew Murray
19a6edeecc
Added type hints
2024-02-10 19:50:45 +11:00
Andrew Murray
152a24e13a
Simplified code
2024-02-10 16:48:02 +11:00
Andrew Murray
a118a82c30
Use os.path.realpath consistently when os.fspath is used
2024-02-08 18:48:45 +11:00
Andrew Murray
a276cf2c9f
Use _typing alias
2024-02-08 18:48:38 +11:00
Andrew Murray
cb39b1c89e
Corrected syntax
2024-02-08 12:29:06 +11:00
Evan Miller
c93b23239d
Update src/_webp.c
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-07 20:20:27 -05:00
Andrew Murray
159fc068ca
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-07 20:50:36 +11:00
Hugo van Kemenade
811dd15ca5
Merge pull request #7769 from radarhere/type_hints
2024-02-06 23:12:26 +02:00
Evan Miller
469db5114c
Release GIL while calling WebPAnimDecoderGetNext
2024-02-06 15:41:08 -05:00
Andrew Murray
65cb0b0487
Added _typing.Coords
2024-02-06 07:49:43 +11:00
pre-commit-ci[bot]
27b0cf67e7
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
Andrew Murray
5a8e7dda79
Added type hints
2024-02-05 20:36:34 +11:00
Andrew Murray
dfb48ff297
Match mask size to pasted image size
2024-02-05 19:16:15 +11:00
Andrew Murray
d8f52f58be
Merge branch 'main' into main
2024-02-05 08:56:25 +11:00
Andrew Murray
8d96e3bc59
Changed name of first _Tile parameter
2024-02-02 23:54:31 +11:00
pre-commit-ci[bot]
256f3f1966
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-01-31 19:38:55 +00:00
Hugo van Kemenade
f2228e0a7c
Replace bytes | str | Path with StrOrBytesPath
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-31 12:37:53 -07:00
Andrew Murray
58554de0c8
Merge branch 'main' into main
2024-02-01 00:06:05 +11:00
Andrew Murray
d57b5e827c
Corrected check
2024-01-31 19:10:33 +11:00
Andrew Murray
5efa2ade22
Added test
2024-01-31 19:10:33 +11:00
Andrew Murray
39cbd4f0f1
Expanded error message strings
2024-01-31 19:10:33 +11:00
Hugo van Kemenade
61d47c3dfa
More support for arbitrary os.PathLike
2024-01-27 14:06:06 +02:00
Andrew Murray
d3205fae19
Simplified code
2024-01-27 22:54:01 +11:00
Nicola Guerrera
6998f34768
Rearrange error handling
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-27 12:08:16 +01:00
Andrew Murray
d2d9240de4
Do not declare variable until necessary
2024-01-27 20:15:31 +11:00
Andrew Murray
b81341ae7e
Only decode stderr when necessary
2024-01-27 20:15:10 +11:00
Nicola Guerrera
cd640e5df2
Refactor grabclipboard() for x11 and wayland
...
Simpified logic and made it more robust against edge cases ( see the `allowed_errors` list ). Doing error checking this way, makes the behaviour of this function for x11 and wayland platforms more silimar to darwin and windows systems.
fix typo src/PIL/ImageGrab.py
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
fix typo src/PIL/ImageGrab.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
ImageGrab: \added debian edge case to comment
2024-01-27 10:03:44 +01:00
Hugo van Kemenade
d631afc266
Use os.fspath instead of isinstance and str
2024-01-26 20:46:58 +02:00
Hugo van Kemenade
945253672a
Handle os.PathLike in is_path
2024-01-26 19:17:44 +02:00
Hugo van Kemenade
231d54b9df
Replace io.BytesIO in type hints
2024-01-22 23:21:56 +02:00
Andrew Murray
6a85653cc3
Added type hints
2024-01-18 12:05:54 +11:00
Andrew Murray
d8c7af0157
Added type hints to GdImageFile
2024-01-17 23:10:37 +11:00
Andrew Murray
7972332bc5
Added type hints
2024-01-17 19:22:45 +11:00
Hugo van Kemenade
dd753f4ab5
Merge pull request #7725 from radarhere/type_hints_tga
2024-01-17 08:47:45 +02:00
Andrew Murray
6fd85cf523
Merge pull request #7721 from radarhere/imagemath_ops
...
Changed ImageMath.ops to be static
2024-01-17 09:15:05 +11:00