Andrew Murray
6bd55684e0
Only accept missing tkinter when building wheels on Windows ( #8981 )
2025-06-10 09:00:08 +03:00
Andrew Murray
7b163cc35d
Use mask in C when drawing wide polygon lines ( #8984 )
2025-06-10 11:46:12 +10:00
Hugo van Kemenade
05636dca17
Simplify code ( #8863 )
2025-06-09 19:33:55 +03:00
Andrew Murray
7341e70f6b
Reduced number of bytes read for header
2025-06-09 12:21:53 +10:00
Andrew Murray
313969cf0b
Removed unnecessary seek
2025-06-09 12:21:49 +10:00
Andrew Murray
ef1f90fe1c
Check for equality rather than inequality
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-06-09 09:06:08 +10:00
Hugo van Kemenade
8e5a15bab7
Call startswith once with a tuple ( #8998 )
2025-06-08 19:19:53 +02:00
Andrew Murray
0bb99e5561
Use save parameters as encoderinfo defaults
2025-06-07 15:08:16 +10:00
Andrew Murray
04c984f2f2
Removed duplicate code
2025-06-07 11:29:11 +10:00
Andrew Murray
89c38258dc
Assert getcolors() does not return None
2025-06-07 11:13:30 +10:00
Andrew Murray
a3da70e76e
Assert load() does not return None
2025-06-07 11:13:30 +10:00
Andrew Murray
cba096b4a9
Assert pixel data is tuple
2025-06-07 11:13:12 +10:00
Andrew Murray
33460d2f82
Assert _getmp() does not return None
2025-06-07 11:09:38 +10:00
Andrew Murray
0d1edba311
Assert tile args is tuple
2025-06-07 11:09:38 +10:00
renovate[bot]
f3b05d6fab
Update dependency mypy to v1.16.0 ( #8991 )
...
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-06-07 11:07:21 +10:00
Andrew Murray
9d5ea827e4
Call startswith once with a tuple
2025-06-05 18:16:05 +10:00
Andrew Murray
f03c23683e
Trim whitespace from end when parsing XMP data
2025-06-04 20:08:58 +10:00
Andrew Murray
cb077a16c8
Handle UNDEFINED XMP data
2025-06-04 20:07:13 +10:00
Hugo van Kemenade
1bf32ae892
Fix test ( #8996 )
2025-06-04 09:06:09 +02:00
Luke Granger-Brown
54421b5f56
Check that ImageCmsProfile.__getattr__ raises AttributeError
2025-06-03 20:20:49 +01:00
Andrew Murray
f66be01bf6
Added tests
2025-06-03 20:20:49 +01:00
Luke Granger-Brown
ab75ef6629
Add typing information to ImageCmsProfile, and deprecate product_name/product_info
...
The _set method is no longer necessary, since we no longer compute any
attributes from the profile. In most cases, we only set the profile, and
in only one branch do we set the filename to anything non-None.
product_name/product_info were set to None at some point during what
appears to be a batch of changes for Python 3 compatibility
(ce041fd199
), and never set back. Given
this, let's deprecate these and schedule them for removal in Pillow 13.
2025-06-03 20:20:49 +01:00
Andrew Murray
eb0256acc0
Fixed test
2025-06-03 22:44:26 +10:00
Andrew Murray
fa7413904b
Updated ruff ID
2025-06-03 14:13:22 +10:00
pre-commit-ci[bot]
070e1eba62
[pre-commit.ci] pre-commit autoupdate ( #8993 )
2025-06-03 14:08:24 +10:00
Andrew Murray
95603e9717
Use ImageFile.MAXBLOCK in tobytes() ( #8906 )
2025-06-02 20:14:11 +10:00
Andrew Murray
892fd2c2af
Removed unreachable code ( #8918 )
2025-06-01 15:41:48 +10:00
Hugo van Kemenade
d730e60078
Update Ubuntu CI targets ( #8988 )
2025-05-31 10:52:59 +02:00
Hugo van Kemenade
598066d9e1
Stop testing deprecated Windows Server 2019 runner image ( #8989 )
2025-05-31 07:12:50 +02:00
Andrew Murray
9327e425ba
Stop testing deprecated Windows Server 2019
2025-05-31 12:02:16 +10:00
Andrew Murray
bc4138f169
ubuntu-latest now uses Ubuntu 24.04
2025-05-31 11:48:49 +10:00
仓鼠
3944db288a
Update MinGW package names ( #8987 )
2025-05-31 11:10:45 +10:00
wiredfool
256f6ea1c1
Valgrind Memory Leak Checking ( #8954 )
2025-05-30 14:28:40 +01:00
wiredfool
f34b4a1806
Add parallel test target, using pytest-xdist ( #8972 )
2025-05-30 13:28:09 +01:00
wiredfool
0ba69613c9
Add support for flat uint8 arrow arrays for multi channel images ( #8908 )
2025-05-30 13:11:09 +01:00
wiredfool
22d6265063
Updated docstring ( #8943 )
2025-05-30 13:06:47 +01:00
wiredfool
e16f387bdf
Mention that tobytes() with the raw encoder uses Pack.c ( #8878 )
2025-05-30 13:01:19 +01:00
wiredfool
506691729a
Apply suggestions from code review
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:40:35 +01:00
wiredfool
399b6c1045
Update Makefile
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:40:07 +01:00
wiredfool
98cf15e9e4
Update depends/docker-test-valgrind-memory.sh
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-05-30 10:35:13 +01:00
wiredfool
6a60b2e6dd
Remove Tests/ path arg, this is already configured
2025-05-30 10:27:11 +01:00
Andrew Murray
62da23bf83
Removed polygon from DRAW struct
2025-05-29 18:27:22 +10:00
Andrew Murray
fcac6e7896
Removed hasAlpha argument
2025-05-29 18:27:17 +10:00
Andrew Murray
2ee2a1496d
Simplified code
2025-05-29 18:26:09 +10:00
Andrew Murray
5000c83bcc
Use multi-phase initialization
2025-05-28 23:50:18 +10:00
Andrew Murray
5b854b2332
Merge branch 'main' into valgrind-leakcheck
2025-05-28 08:27:57 +10:00
Andrew Murray
5a04b9581b
Run slow tests on valgrind, but without timeout ( #8975 )
2025-05-28 08:20:35 +10:00
Hugo van Kemenade
06e618c470
Removed CMAKE_POLICY_VERSION_MINIMUM=3.5 for libavif ( #8973 )
2025-05-27 17:18:20 +03:00
Hugo van Kemenade
90f115cd33
Reduced number of bytes read in WMF header ( #8964 )
2025-05-27 17:17:15 +03:00
Andrew Murray
bcc6e42bf8
Fixed saving MPO with more than one appended image
2025-05-27 21:08:58 +10:00