Hugo van Kemenade
53c3cd9f8e
isort Tests
2024-01-20 13:23:03 +02:00
Erik Soma
6f144d45b9
Rename repeated seeks apng to reflect what it is rather than how it is used.
2024-01-10 16:03:42 -05:00
Erik Soma
dc6d7611e9
Test apng repeated seeks 3 times instead of 5.
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-09 08:55:49 -05:00
Erik Soma
a6051a4045
Add type hints and fix some formatting for the apng repeated seeks test.
2024-01-08 15:20:24 -05:00
Erik Soma
a844871c5e
Give apng repeated seeks test and image a more descriptive name.
2024-01-08 15:18:49 -05:00
Erik Soma
3515f997ce
Add test against info of apng images getting clobbered when seeking to the first frame multiple times.
2024-01-07 20:52:22 -05:00
Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Hugo van Kemenade
27d7bd10c8
Use list comprehensions to create transformed lists
2023-12-03 21:59:44 +02:00
Andrew Murray
c29648ff53
If save_all PNG only has one frame, do not create animated image
2023-11-03 22:08:48 +11:00
Andrew Murray
d682c18ded
Use "gray" more consistently
2023-10-19 19:12:01 +11:00
Andrew Murray
b98dc8abe1
Consider default image when selecting mode for PNG save_all
2023-10-02 19:07:56 +11:00
Andrew Murray
17b19b5668
Merge branch 'main' into apng
2023-06-14 11:26:42 +10:00
Andrew Murray
97df237dc8
Moved test into separate function
2023-06-06 18:04:39 +10:00
Andrew Murray
a0b691a219
Fixed combining single duration across duplicate PNG frames
2023-05-09 12:12:16 +10:00
Andrew Murray
ebd3c47425
When saving, allow alpha differences to indicate different frames
2023-04-29 15:02:11 +10:00
Hugo van Kemenade
c8ec15980b
Remove constants deprecated in 9.1.0
2023-04-06 16:11:36 +03:00
Andrew Murray
0966293a0d
Consider transparency when applying blend mask
2023-03-16 20:05:56 +11:00
Aarni Koskela
32bfee030b
Update Tests/test_file_apng.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-03-03 10:29:51 +02:00
Aarni Koskela
43128ce716
Fix up pytest.warns lambda: uses
2023-02-23 16:06:40 +02:00
Andrew Murray
46b0644c4f
Do not modify previous frame when calculating delta
2022-10-24 22:19:22 +11:00
Hugo van Kemenade
3d491663ba
Merge pull request #6610 from radarhere/png_save_all
2022-10-18 16:14:53 +02:00
Andrew Murray
c259ac492f
Parametrized tests
2022-10-03 16:57:42 +11:00
Andrew Murray
b2b3b62be7
Consider all frames when selecting mode for PNG save_all
2022-09-23 20:06:08 +10:00
Andrew Murray
1c391fe31f
Renamed argument
2022-08-24 08:11:02 +10:00
Andrew Murray
0ed03d4a58
Parametrize tests
2022-08-23 21:41:32 +10:00
Andrew Murray
e62449f94c
Added DeferredError to _fp
2022-04-17 12:14:53 +10:00
Andrew Murray
ed8073e846
Deprecated constants in favour of enums
2022-01-15 10:07:07 +11:00
Andrew Murray
f8e4e9c2dd
Added enums
2022-01-15 09:02:31 +11:00
Andrew Murray
63c3b26f6a
Fixed using info dictionary when writing multiple frames
2021-07-13 23:02:23 +10:00
Andrew Murray
ca16cf2aac
Added test
2021-07-13 18:47:55 +10:00
Andrew Murray
804183c248
Only use an RGBA palette for images with an alpha channel
2021-06-27 18:29:02 +10:00
Eric Soroos
22e9bee4ef
Fix DOS in PSDImagePlugin -- CVE-2021-28675
...
* PSDImagePlugin did not sanity check the number of input layers and
vs the size of the data block, this could lead to a DOS on
Image.open prior to Image.load.
* This issue dates to the PIL fork
2021-04-01 17:17:31 +03:00
Andrew Murray
5e4e0fa6ee
Use disposal settings from previous frame
2020-12-24 09:55:22 +11:00
Hugo van Kemenade
e0eec1eb56
Merge branch 'master' into rm-3.5
2020-09-01 20:16:46 +03:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Hugo van Kemenade
645f7f2346
Merge pull request #4742 from radarhere/apng_dispose
...
Fixed loading non-RGBA mode APNGs with dispose background
2020-06-29 17:15:34 +03:00
Andrew Murray
cd01a5ab9f
Added disposal test
2020-06-29 22:02:01 +10:00
Andrew Murray
cdf4936c07
Fixed loading non-RGBA mode images with dispose background
2020-06-29 21:20:57 +10:00
Hugo van Kemenade
92c9961cea
Convert from unittest to pytest
2020-03-31 22:43:31 +03:00
Andrew Murray
41a29339ff
Lint fixes
2020-02-23 15:14:42 +11:00
Peter Rowlands
9b72f0513c
Adjust is_animated behavior
...
- Make is_animated APNG behavior consistent with other Pillow formats
- is_animated will be true when n_frames is greater than 1 (for APNG
this depends on animation frame count + presence or absence of a
default image)
2020-02-23 15:14:06 +11:00
Peter Rowlands
d05b73cd08
Use context manager for APNG tests
2020-02-23 15:14:06 +11:00
Peter Rowlands
0f84fa7707
Move apng tests into test_file_apng.py
2020-02-23 15:14:06 +11:00