Commit Graph

118 Commits

Author SHA1 Message Date
Andrew Murray
af7954bc6f
Merge branch 'main' into progress 2025-03-06 07:57:45 +11:00
Hugo van Kemenade
5f36c9af43
Merge pull request #8801 from radarhere/match
Use match argument
2025-03-05 17:16:21 +02:00
Andrew Murray
3607d1ade3 Use match argument 2025-03-05 00:03:37 +11:00
Hugo van Kemenade
e4cac21044 Don't use start=0 in range() 2025-03-03 23:57:40 +02:00
Andrew Murray
e19a1496c2
Use monkeypatch (#8707)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-01-27 12:17:51 +02:00
Andrew Murray
62786fd2c1 Merge branch 'main' into progress 2024-12-28 11:42:08 +11:00
Andrew Murray
413bbb31c9 Fixed catching warnings 2024-10-26 16:15:46 +11:00
Andrew Murray
ebbdc6ee6f
Merge branch 'main' into progress 2024-09-26 20:24:54 +10:00
Andrew Murray
75cb1c1b87 Test unsupported image mode 2024-09-21 16:02:23 +10:00
Aleksandr Karpinskii
31d36e6b70 Use current frame for transparency detection 2024-09-16 11:04:00 +02: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
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
pre-commit-ci[bot]
a3e3639a59 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-24 11:27:43 +00:00
Andrew Murray
658b60e3a3
Include units
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-08-24 21:26:56 +10:00
Andrew Murray
d49ea37811 Include limit in error message 2024-08-22 17:50:42 +10:00
Andrew Murray
132663a881 Updated error message for invalid width or height 2024-08-22 07:36:52 +10:00
Andrew Murray
ba82dff7bc Updated test name 2024-08-14 18:35:53 +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
Aleksandr Karpinskii
9bed5b4264 Remove _webp.WebPDecoderBuggyAlpha and _webp.HAVE_TRANSPARENCY 2024-08-13 09:26:04 +04:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
2f27173d8f
Merge branch 'main' into progress 2024-06-26 18:45:50 +10:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Andrew Murray
682a9aed55 Merge branch 'main' into progress 2024-06-12 23:21:50 +10:00
Andrew Murray
923d4e5e1a Added type hints 2024-06-05 22:27:23 +10:00
Andrew Murray
e68cec640a Added type hints 2024-05-30 12:00:50 +10:00
Andrew Murray
b7a5b5984b Updated tests for os.path.realpath 2024-02-12 19:24:01 +11:00
Andrew Murray
344c300597
Merge branch 'main' into progress 2024-01-31 22:00:55 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests (#7756)
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Andrew Murray
69680db24d Merge branch 'main' into progress 2024-01-21 14:44:29 +11:00
Hugo van Kemenade
53c3cd9f8e isort Tests 2024-01-20 13:23:03 +02:00
Andrew Murray
19c2721931
Merge branch 'main' into progress 2023-12-22 23:56:40 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Andrew Murray
b5f322831a Restored filename in progress callback 2023-10-05 18:40:01 +11:00
Andrew Murray
3465a598e2 Pass back index of image in sequence, instead of filename 2023-10-02 18:33:48 +11:00
Andrew Murray
6850465d54 Added progress callback when save_all is used 2023-10-02 15:44:43 +11:00
Hugo van Kemenade
8cb1e29491
Merge pull request #7420 from radarhere/transparency 2023-09-30 02:53:22 -06: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
60433d5f37 Added test 2023-08-01 19:17:54 +10:00
Andrew Murray
45c9dcf123 Restored 32-bit support 2023-06-27 14:43:58 +10:00
Andrew Murray
d6f19625e8 Removed support for 32-bit 2023-06-23 21:52:00 +10:00
Aarni Koskela
912ab3e088
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-03 16:00:56 +02:00
Aarni Koskela
43128ce716 Fix up pytest.warns lambda: uses 2023-02-23 16:06:40 +02:00
Andrew Murray
f64dd53897 Test invalid WebP background colors 2022-04-26 18:55:54 +10: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
72b7ab54bd pre-commit autoupdate --freeze 2022-03-04 16:42:24 +11:00
Andrew Murray
dae1f691c2 Updated checks that no warnings were raised 2022-02-21 13:49:01 +11:00
Hugo van Kemenade
31a96b9c9b Upgrade Python syntax with pyupgrade --py36-plus and format with Black 2021-10-19 15:34:52 +03:00
Andrew Murray
b45fdd0817 Allow saving WebP with icc_profile None 2021-07-10 15:15:10 +10:00