Commit Graph

237 Commits

Author SHA1 Message Date
Andrew Murray
31638ee29a Added type hints 2024-09-05 23:14:17 +10:00
Andrew Murray
bdc53f6c4d Expand C image to match GIF frame image size 2024-08-28 18:33:43 +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
486dac7efc Added type hints 2024-07-06 19:17:23 +10:00
Hugo van Kemenade
51bd7d2ea8
Drop support for Python 3.8 (#8183)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-07-03 00:44:45 -06:00
Andrew Murray
9afe9d2769 Added type hints 2024-06-11 06:52:14 +10:00
Andrew Murray
66ab7e0de2 Added type hints 2024-06-01 21:31:53 +10:00
Hugo van Kemenade
93bf9912e2
Merge pull request #7788 from radarhere/gif_disposal 2024-03-11 17:48:13 +02: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
430f50606e Current delta is determined by previous disposal 2024-02-10 21:33:32 +11:00
Andrew Murray
e6a521130e If previous disposal was 2, do not fill identical pixels 2024-02-09 19:47:09 +11:00
Andrew Murray
dfb48ff297 Match mask size to pasted image size 2024-02-05 19:16:15 +11:00
Andrew Murray
bb1fece57a Added type hints 2024-01-31 21:55:32 +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
Hugo van Kemenade
53c3cd9f8e isort Tests 2024-01-20 13:23:03 +02:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency 2023-12-21 12:58:07 +02:00
Hugo van Kemenade
9eb93915c3
Merge pull request #7521 from radarhere/gif_save_all 2023-12-21 12:52:26 +02:00
Andrew Murray
55c5587437 Fill identical pixels with transparency in subsequent frames 2023-11-25 19:16:32 +11:00
Andrew Murray
dc0379fea5 Corrected combining durations from multiple frames into single frame 2023-11-03 21:09:16 +11:00
Andrew Murray
7c2b681183 Handle disposing background from outside palette 2023-11-02 16:05:13 +11:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Hugo van Kemenade
5f04b3d278
Merge pull request #7289 from radarhere/undefined_palette 2023-10-05 09:31:02 -06:00
Andrew Murray
bfafa460e3 Allow "loop=None" when saving 2023-08-09 10:31:34 +10:00
Andrew Murray
fd310512b9 Set C palette to be empty by default 2023-07-17 23:04:43 +10:00
Andrew Murray
a682ceaf47 Do not use transparency if it has been removed when normalizing mode 2023-07-13 15:20:44 +10:00
Andrew Murray
541d2605b9 Allow alpha differences to indicate different frames when saving GIF 2023-06-14 14:21:07 +10:00
Andrew Murray
922e239cca Fixed saving multiple 1 mode images to GIF 2023-05-24 08:55:14 +10:00
Andrew Murray
9ed8ca1494 Removed "del im" 2023-03-03 10:28:36 +02:00
Aarni Koskela
43128ce716 Fix up pytest.warns lambda: uses 2023-02-23 16:06:40 +02: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
e24dd745f7 Convert test_optimize_correctness to use parametrize 2023-01-08 14:48:56 +02:00
Andrew Murray
921c46679d Merge branch 'main' into gif_disposal 2022-12-22 08:32:27 +11:00
Hugo van Kemenade
aab4adc441
Merge pull request #6792 from radarhere/webp_gif
Resolves https://github.com/python-pillow/Pillow/issues/6791
2022-12-21 21:09:23 +02:00
Andrew Murray
66f5ad0eae Ignore non-opaque WebP background when saving as GIF 2022-12-09 10:45:09 +11:00
Andrew Murray
4ab837ae23 Only compare to previous when checking for duplicate frames while saving 2022-12-08 11:35:48 +11:00
Andrew Murray
72ac7d1ce9 Corrected default combined frame duration 2022-12-05 18:53:28 +11:00
Andrew Murray
5f8938cb8e
Merge branch 'main' into gif 2022-10-12 22:01:35 +11:00
Hugo van Kemenade
cf3132b7de
Merge pull request #6592 from radarhere/gif_rgba 2022-10-12 12:47:38 +02:00
Andrew Murray
e6ffbfd8df If palette is present but not needed, do not use global palette 2022-10-06 08:46:31 +11:00
Andrew Murray
c259ac492f Parametrized tests 2022-10-03 16:57:42 +11:00
Andrew Murray
6663ed929b If first frame has transparency for RGB_ALWAYS, use RGBA 2022-09-17 17:58:24 +10:00
Andrew Murray
ae6520ccd6 Fixed pasting an L frame onto an RGB(A) GIF 2022-09-14 00:05:23 +10:00
Andrew Murray
e7fab6abf4 Fixed remapping to palette with duplicate entries 2022-08-29 23:20:31 +10:00
Andrew Murray
0844fb0ed3 Do not clear tile if not updating the image when seeking 2022-07-21 09:05:14 +10:00
Andrew Murray
709744432a Optimise palettes with more than 128 colors 2022-06-19 16:47:50 +10:00
Ray Gardner
128ed189e5 Improve test in _get_optimize()
Palette can be optimized if number of colors can be reduced by half or more.
2022-06-18 18:07:58 -06:00
Hugo van Kemenade
27f5c4d8fb
Merge pull request #6176 from radarhere/gif_transparency
Improve transparency handling when saving GIF
2022-05-27 08:31:37 +02:00
Hugo van Kemenade
0476914ee4
Merge pull request #6219 from radarhere/gif_eof
Do not update GIF frame position until local image is found
2022-05-27 08:29:38 +02:00
Andrew Murray
2457eafabd Only read the number of loops from the first frame 2022-05-24 12:53:19 +10:00