Commit Graph

19625 Commits

Author SHA1 Message Date
Kylian Ronfleux--Corail
43b1559cea
Merge branch 'main' into fix-qtables-and-quality-scaling 2025-04-22 09:10:37 +02:00
wiredfool
45e24e429f Rearrance so black doesn't screw up the formatting 2025-04-21 10:54:00 +01:00
wiredfool
bc4b664b70 Add integer range tests 2025-04-21 10:46:45 +01:00
wiredfool
ce204f47f4 lint 2025-04-21 10:37:32 +01:00
wiredfool
6bf791a3e7 Use a named tuple for the packed parameters 2025-04-21 10:27:49 +01:00
Andrew Murray
58e48745cc
Add list of third-party plugins (#8910)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-04-21 12:14:08 +03:00
Hugo van Kemenade
8f123cd692
Update redirected URL (#8919) 2025-04-21 12:13:25 +03:00
Hugo van Kemenade
348589a367
Docs: use sentence case for headers (#8914)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-21 19:03:31 +10:00
Hugo van Kemenade
d03ce3d235
Docs: remove unused Makefile targets (#8917)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-21 18:22:03 +10:00
Andrew Murray
8fe7a7aaf8 Update redirected URL 2025-04-21 17:32:47 +10:00
Adian Kozlica
4402797b35
Add support for Grim in Wayland sessions ImageGrab (#8912)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-04-21 12:36:40 +10:00
Hugo van Kemenade
03e7871afd
Add make [-C docs] htmllive to rebuild and reload HTML files (#8913)
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-04-20 00:18:01 +03:00
Hugo van Kemenade
d546233be4
Remove indentation from lists (#8915) 2025-04-19 22:50:57 +03:00
Andrew Murray
cf48bbf0c4 Removed indentation from list 2025-04-19 20:26:03 +10:00
Hugo van Kemenade
eb0395442c
Merge pull request #8904 from radarhere/harfbuzz 2025-04-18 14:29:58 +03:00
Andrew Murray
00ae9dda35 Changed harfbuzz buildtype to minsize 2025-04-18 18:49:11 +10:00
wiredfool
ac500460df lint 2025-04-17 22:22:31 +01:00
wiredfool
c729d4e208 Test uint32 array creation -> image32 images 2025-04-17 22:16:27 +01:00
wiredfool
3d77723a0c Added arrow support for a flat array of 4*uint8 for image32 modes 2025-04-17 21:42:42 +01:00
Kylian Ronfleux--Corail
6f45852ced
Merge branch 'main' into fix-qtables-and-quality-scaling 2025-04-17 09:12:22 +02:00
Andrew Murray
ccc4668d4e Updated harfbuzz to 11.1.0 2025-04-17 08:04:34 +10:00
Andrew Murray
3d4119521c
Close file pointer earlier (#8895) 2025-04-16 18:49:57 +03:00
Andrew Murray
f630ec097b
Build Windows arm64 wheels on arm64 runner (#8898) 2025-04-16 14:05:08 +03:00
Andrew Murray
6ea7dc8eea
Add Fedora 42 (#8899) 2025-04-16 10:06:52 +03:00
Andrew Murray
507fefbce4
Python 3.13 is tested on Arch (#8894) 2025-04-15 14:02:35 +03:00
Andrew Murray
bd39801a7b
Merge pull request #8893 from python-pillow/doc-fix
Move XV Thumbnails to read only section
2025-04-15 12:16:17 +10:00
Jeffrey A. Clark
8b1777b999 Move XV Thumbnails to read only section 2025-04-14 14:51:01 -04:00
pre-commit-ci[bot]
630265f79a [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-14 08:33:32 +00:00
Kylian Ronfleux--Corail
aca38b6504 add more information on how qtables parameter works with quality 2025-04-14 08:32:32 +00:00
pre-commit-ci[bot]
45fb0626b3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-14 08:10:28 +00:00
Kylian Ronfleux--Corail
32590baeec add force_baseline which limit output of quantization table to 255 when giving a quality and a qantization table 2025-04-14 08:07:11 +00:00
Kylian Ronfleux--Corail
5d82c79c2f add test to qtables to test all quantization tables for quality beetween 0 and 100 2025-04-14 08:06:33 +00:00
Andrew Murray
4716bb7818
Update macOS tested Pillow versions (#8890) 2025-04-13 16:59:05 +03:00
Hugo van Kemenade
1299039ec4
Merge pull request #8887 from radarhere/fedora
Removed Fedora 40
2025-04-13 11:27:27 +03:00
Andrew Murray
5294021438 Removed Fedora 40 2025-04-13 09:26:06 +10:00
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
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
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