Commit Graph

76 Commits

Author SHA1 Message Date
Andrew Murray
8a05e32336 Added type hints 2024-07-08 20:09:45 +10:00
Andrew Murray
f3c3e52797
Added type hints (#8204)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:55:23 -06:00
Andrew Murray
7ab3aee7bc
Merge branch 'main' into xmp 2024-06-19 09:06:10 +10:00
Andrew Murray
2d1fe7572f Added type hints 2024-06-10 14:15:28 +10:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp 2024-06-05 15:53:46 +10:00
Andrew Murray
6e40601f69 Added type hints 2024-06-04 20:37:09 +10:00
Andrew Murray
0f1a0fc501 Improved consistency of XMP handling 2024-05-20 23:11:50 +10:00
Andrew Murray
8a3a72e51d Added type hints 2024-05-18 16:06:50 +10:00
Andrew Murray
e419fd7ab4 Added type hints 2024-05-15 20:19:09 +10:00
Andrew Murray
a8d154877d Added type hints 2024-05-13 18:47:51 +10:00
Andrew Murray
18b87c8515 Added type hints 2024-05-11 10:48:09 +10:00
Andrew Murray
6036d81d97 Added type hints 2024-05-04 20:51:54 +10:00
Andrew Murray
48b270590c accept returns bool or str 2024-04-06 18:31:08 +02:00
Andrew Murray
64c8c27271 Added alpha_quality argument when saving 2024-03-13 18:55:29 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Andrew Murray
a07bac3a56 Attempt memory mapping when tile args is a string 2023-11-21 21:45:14 +11:00
Hugo van Kemenade
8cb1e29491
Merge pull request #7420 from radarhere/transparency 2023-09-30 02:53:22 -06:00
Andrew Murray
e27d7a6f84 Changed has_transparency_data() to property 2023-09-26 20:14:22 +10:00
Andrew Murray
ad12caecda Convert RGBA palette to RGBA image when saving WebP 2023-09-25 20:28:25 +10:00
Andrew Murray
26c4798707 Revert "Merge pull request #7311 from k128/main"
This reverts commit 39d866b17d, reversing
changes made to f39f74fb82.
2023-09-18 20:34:05 +10:00
Andrew Murray
6115d5957f _decoder.get_next() may return None 2023-08-01 19:16:28 +10:00
Andrew Murray
230a2e3a33 If "reset" is always true, then the argument can be removed 2023-08-01 19:15:15 +10:00
k128
15e5229030
Update WebPImagePlugin.py 2023-07-31 15:32:05 -04:00
pre-commit-ci[bot]
2f5493a5f0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-07-31 19:19:57 +00:00
k128
27a0339d64
Update WebPImagePlugin.py
Automatically load duration
2023-07-31 15:14:22 -04:00
Andrew Murray
9979a822c7 Changed Image mode property to be read-only by default 2023-07-29 09:28:18 +10:00
Andrew Murray
459f0d8352 Round duration when saving animated WebP 2023-03-07 18:07:46 +11:00
pre-commit-ci[bot]
24183d652e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Hugo van Kemenade
2ae55ccbda Improve exception traceback readability 2022-12-30 00:07:52 +02:00
Andrew Murray
710927a311 Added docstring 2022-11-26 19:08:49 +11:00
Andrew Murray
58cbcbf108 Added getxmp() to WebPImagePlugin 2022-11-26 12:14:44 +11:00
Andrew Murray
96a4d98abc Simplified code 2022-11-19 17:07:43 +11:00
Alireza Shafaei
1f6df76c42 updated webp with exact parameter. 2022-11-17 13:58:07 -08:00
Andrew Murray
16d04f4a49 Removed EXIF prefix when saving 2022-09-15 21:25:40 +10:00
Hugo van Kemenade
13994d4b36 More f-strings 2022-04-10 17:56:42 +03:00
Hugo van Kemenade
74ccda3aff Simplify chained comparison 2022-04-10 17:50:17 +03:00
Andrew Murray
b0d0d2b9cc Fixed saving L mode GIF with background as WebP 2022-03-22 20:17:28 +11:00
Andrew Murray
2981569b29 Added default duration of zero 2022-03-17 23:49:23 +11:00
Andrew Murray
b45fdd0817 Allow saving WebP with icc_profile None 2021-07-10 15:15:10 +10:00
Andrew Murray
804183c248 Only use an RGBA palette for images with an alpha channel 2021-06-27 18:29:02 +10:00
Andrew Murray
2c03800824 Changed default "method" value to 4 2021-04-28 18:20:44 +10:00
Hugo van Kemenade
688e6f163f
Merge pull request #5338 from radarhere/webp_save_duration
Use duration from info dictionary when saving WebP
2021-03-21 11:35:28 +02:00
Andrew Murray
1d8c5a820c Use duration from info dictionary when saving 2021-03-17 20:37:31 +11:00
Andrew Murray
faf8fad76d Stopped flattening EXIF IFD into getexif() 2021-02-22 07:47:05 +11:00
Hugo van Kemenade
713dd17c8f
Merge pull request #4547 from radarhere/webp
Added method argument to single frame WebP saving
2020-06-20 14:04:01 +03:00
Andrew Murray
574b0ee315 Removed initial seek 2020-04-17 22:05:38 +10:00
Andrew Murray
03b5ffbd23 Use common _seek_check method 2020-04-17 22:05:25 +10:00
Andrew Murray
0b33a87b0d Replaced property methods for n_frames and is_animated with normal properties 2020-04-17 22:00:21 +10:00
Andrew Murray
986c55ff64 Initialise __loaded = 0, removed initialisation of __physical_frame 2020-04-17 19:15:05 +10:00
Hugo
94751da23e Initialise __physical_frame = 0 and add pickle roundtrip tell test 2020-04-17 11:21:57 +03:00