Commit Graph

89 Commits

Author SHA1 Message Date
Hugo van Kemenade
1e574e6f8b Replace slice and comparison with startswith 2025-02-17 23:39:33 +02:00
Andrew Murray
b59dea60a6 Simplify Python code by receiving tuple from C 2025-02-08 21:07:25 +11:00
Andrew Murray
b19506a499 Simplify Python code by passing tuples to C 2025-02-05 19:12:50 +11:00
Andrew Murray
a433f24f0b tile is already an empty list 2024-10-15 22:14:26 +11:00
Aleksandr Karpinskii
1d5b330758 Move common conversion in _convert_frame 2024-09-16 15:57:35 +02:00
Aleksandr Karpinskii
31d36e6b70 Use current frame for transparency detection 2024-09-16 11:04:00 +02:00
Aleksandr Karpinskii
d1f40a94ff Use Image.getim() instead of ImagingCore.ptr 2024-09-16 10:52:06 +02:00
Aleksandr Karpinskii
4d271c8ec8 import_frame for anim_encoder_add 2024-09-08 18:29:38 +04:00
Aleksandr Karpinskii
8bb3134b1d call _webp.WebPEncode with ptr 2024-09-08 18:29:38 +04:00
Aleksandr Karpinskii
0a8e6dbedb Use im.has_transparency_data for webp._save_all
Also:
remove _VALID_WEBP_MODES and _VALID_WEBP_LEGACY_MODES consts
RGBX is not faster RGB since demands more bandwidth
Do not convert to str paths in tests
2024-09-08 18:29:38 +04:00
Andrew Murray
d00f3656a6 Changed im.tile to never be None 2024-08-30 22:28:03 +10:00
Aleksandr Karpinskii
a3468996c0 Remove webp animations flags and conditions
Removed:
_webp.WebPDecode
_webp.HAVE_WEBPANIM
features.webp_anim
2024-08-13 09:33:20 +04:00
Andrew Murray
38458a204c Corrected type hints 2024-07-20 19:07:42 +10:00
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