Commit Graph

19699 Commits

Author SHA1 Message Date
Hugo van Kemenade
f9083264ff 11.3.0.dev0 version bump 2025-04-12 20:56:35 +03:00
Hugo van Kemenade
339bc5db93 11.2.1 version bump 2025-04-12 19:55:46 +03:00
Hugo van Kemenade
857b8846ea
Merge pull request #8885 from radarhere/releasenotes 2025-04-12 19:32:07 +03:00
Hugo van Kemenade
7a0092f207 Remove incomplete 11.2.0 release, bill as 11.2.1 instead 2025-04-12 18:56:38 +03:00
Hugo van Kemenade
d52c2db317
Do not include libavif in wheels 2025-04-12 18:30:08 +03:00
Andrew Murray
8dafc38371 Added 11.2.1 release notes 2025-04-12 19:24:35 +10:00
Andrew Murray
07d7800248 Removed release notes update 2025-04-12 19:08:45 +10:00
Andrew Murray
04909483a7
Remove GPL v2 license (#8884) 2025-04-12 10:29:06 +03:00
Hugo van Kemenade
774d0aedce
Merge pull request #8868 from radarhere/xz_upgrade
Updated xz to 5.8.1
2025-04-12 10:27:17 +03:00
Hugo van Kemenade
d1e27fc86c
Merge pull request #8870 from radarhere/harfbuzz_upgrade
Updated harfbuzz to 11.0.1
2025-04-12 10:20:59 +03:00
pre-commit-ci[bot]
661f5f5729 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-10 13:00:36 +00:00
Kylian Ronfleux--Corail
70272591f8 Add test to verify that specifying standard qtables and a quality is equivalent to specifying only a quality 2025-04-10 12:59:42 +00:00
Andrew Murray
b2945ec2aa Test truncated header 2025-04-10 22:07:55 +10:00
Andrew Murray
dce9608961 Test unknown colour and missing colour key 2025-04-10 21:59:04 +10:00
Andrew Murray
af52060e97 Mention that tobytes() with the raw encoder uses Pack.c 2025-04-10 20:45:53 +10:00
Kylian Ronfleux--Corail
13bffef91d Fix quantization table scaling when quality is applied to custom qtables
When both a custom quantization table and a quality value are provided,
the quantization table should be scaled using the JPEG quality scaling factor.
If quality is not explicitly set, the default base quality of 50 is used to preserve the original table.
This ensures consistent behavior when saving JPEGs with custom qtables.

Fixes part of the issue with applying 'quality' to 'qtables'.
2025-04-10 10:01:02 +00:00
Andrew Murray
34efaaddf3 Improved type hints 2025-04-10 18:57:58 +10:00
Andrew Murray
6512a8e371 Test not enough image data 2025-04-10 18:57:58 +10:00
Andrew Murray
395bd6bd12 Allow more than 256 colours 2025-04-10 18:57:58 +10:00
Andrew Murray
89ac20d2b9 Allow more than 1 character per pixel 2025-04-10 18:57:58 +10:00
Andrew Murray
7b459a8524 Improved reading XPM images 2025-04-10 18:57:58 +10:00
Andrew Murray
75d3f1d3bd Assert palette is not None 2025-04-10 18:41:12 +10:00
Kylian Ronfleux--Corail
e3c0ee6ae2 Fix incorrect quality scaling when using qtables in JPEG encoder
When both `qtables` and `quality` are provided, Pillow previously passed
the raw `quality` value directly to `jpeg_add_quant_table()` as the scale
factor, which caused incorrect quantization.

This commit corrects the behavior by using `jpeg_quality_scaling(quality)`
to compute the proper JPEG quantization scaling factor, consistent with
`jpeg_set_quality()`.

This ensures expected compression behavior when custom qtables are used
alongside a specified quality level.
2025-04-10 07:31:05 +00:00
Andrew Murray
c8d98d56a0
Added avif to config settings (#8875) 2025-04-10 09:21:48 +03:00
Hugo van Kemenade
5b1a64c53c
[pre-commit.ci] pre-commit autoupdate 2025-04-10 09:20:41 +03:00
Andrew Murray
6b5f8d768d Do not include libavif in wheels 2025-04-10 13:55:02 +10:00
Andrew Murray
179ae9d395 Disable building harfbuzz tests 2025-04-08 22:05:29 +10:00
Andrew Murray
8b7d72440e Specify both C and Cpp 2025-04-08 20:15:45 +10:00
Hugo van Kemenade
8c4510cb23 Fix clang-format: Configuration file(s) do(es) not support C 2025-04-07 22:25:12 +03:00
pre-commit-ci[bot]
a5a8ece5d2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-07 17:17:36 +00:00
pre-commit-ci[bot]
f6eb2e7fa5
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.9.9 → v0.11.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.9...v0.11.4)
- [github.com/pre-commit/mirrors-clang-format: v19.1.7 → v20.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.7...v20.1.0)
- [github.com/python-jsonschema/check-jsonschema: 0.31.2 → 0.32.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.31.2...0.32.1)
- [github.com/woodruffw/zizmor-pre-commit: v1.4.1 → v1.5.2](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.4.1...v1.5.2)
- [github.com/abravalheri/validate-pyproject: v0.23 → v0.24.1](https://github.com/abravalheri/validate-pyproject/compare/v0.23...v0.24.1)
2025-04-07 17:17:00 +00:00
Andrew Murray
82bccf70a0 Added XZ_CLMUL_CRC:BOOL=OFF to allow Windows x86 to use xz 5.8.1 2025-04-06 11:10:05 +10:00
Andrew Murray
1db27be6a0 Use same URL as wheels-dependencies.sh 2025-04-05 16:09:12 +11:00
Andrew Murray
1ba32fce48 Updated harfbuzz to 11.0.1 2025-04-05 15:44:46 +11:00
Hugo van Kemenade
cda26be10e
Merge pull request #8850 from hugovk/pep639
Replace deprecated classifier with licence expression (PEP 639)
2025-04-04 18:36:02 +03:00
Frankie Dintino
9f654ff748
Fixed conversion of AVIF image rotation property to EXIF orientation (#8866) 2025-04-04 16:41:11 +03:00
Andrew Murray
61d3dd9e83 Updated xz to 5.8.1, except on Windows x86 2025-04-04 22:12:54 +11:00
Andrew Murray
9f4195752d
Added type hints (#8867) 2025-04-03 13:24:37 +03:00
renovate[bot]
8691112a2c
Update scientific-python/upload-nightly-action action to v0.6.2 (#8865) 2025-04-03 13:23:36 +03:00
Andrew Murray
2d452c82e5
Removed condition that is always true (#8862) 2025-04-03 13:17:54 +03:00
Andrew Murray
7e15c54cad
Use multibuild build_github (#8861) 2025-04-02 15:53:14 +03:00
Hugo van Kemenade
92eb58ef15
Merge pull request #8859 from radarhere/filename
Include filename in ImageFile state
2025-04-02 15:51:49 +03:00
Andrew Murray
8dbbce624f Compare absolute path of filename 2025-04-02 12:16:25 +11:00
Andrew Murray
1103e82d17 Include filename in state 2025-04-02 11:14:58 +11:00
mergify[bot]
7c56b383ff
Merge pull request #8842 from AdianKozlica/image_grab_wayland_kde
Add KDE Wayland support for ImageGrab
2025-04-01 09:38:56 +00:00
Andrew Murray
867c4772c2 Do not import type checking 2025-04-01 20:23:16 +11:00
mergify[bot]
64178415e6
Merge pull request #8852 from radarhere/save
Only change readonly if saved filename matches opened filename
2025-04-01 09:22:14 +00:00
Andrew Murray
c19482f888
Merge pull request #8853 from radarhere/arrow
Added release notes for #8330
2025-04-01 19:28:41 +11:00
Andrew Murray
f205a45f44 Added release notes for #8330 2025-04-01 19:10:11 +11:00
Andrew Murray
98e74fd7a0
Merge pull request #8516 from radarhere/imagegrab
Allow HWND to be passed to ImageGrab.grab() on Windows
2025-04-01 18:45:03 +11:00