Andrew Murray
413bbb31c9
Fixed catching warnings
2024-10-26 16:15:46 +11: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
42381aa1e6
Added type hints
2024-06-24 06:59:00 +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
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
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
Andrew Murray
4080f160b6
Include code in WebP error
2021-05-07 00:12:03 +10:00
Andrew Murray
1d8c5a820c
Use duration from info dictionary when saving
2021-03-17 20:37:31 +11:00
Hugo van Kemenade
1857bf5570
Merge pull request #5259 from radarhere/warns
2021-02-17 21:31:15 +02:00
Andrew Murray
83542c42bf
Added context managers
2021-02-11 21:43:54 +11:00
Andrew Murray
4a0569e97f
Changed zero length assertions to falsy
2021-02-11 13:48:31 +11:00
Andrew Murray
01be700081
Fixed asserting that no warnings were raised
2021-02-10 23:37:55 +11:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
nulano
d5a6b2584e
add tests for version numbers
2020-06-21 18:59:01 +10:00
Andrew Murray
f17f1bc607
Added method argument to single frame WebP saving
2020-04-11 20:43:49 +10:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Andrew Murray
7ff2db143d
Removed use of PillowTestCase
2020-03-23 07:05:51 +11:00
Andrew Murray
8482919a37
Converted most assert statements to pytest
2020-02-23 00:06:21 +11:00
Jon Dufresne
4f185329f4
Streamline test skipping based on supported features
...
This adds a new test decorator: skip_unless_feature(). The argument is
the same as passed to features.check(). If the feature is not supported,
the test will be skipped.
This removes several kinds of boilerplate copied and pasted around tests
so test feature checking is handled and displayed more consistently.
Refs #4193
2020-02-18 13:07:01 -08:00
Hugo
38bf862185
Replace PillowTestCase.assert_warning with pytest.warns
2020-02-03 11:11:32 +02:00
Hugo
a4bf9fa036
Convert most PillowTestCase methods to pytest
2020-02-02 12:26:01 +02:00
Andrew Murray
666b726626
Simplified conditions
2019-12-25 15:32:38 +11:00