Pillow/src/libImaging
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
..
Access.c Use (void) to indicate no parameters 2024-09-07 00:01:25 -05:00
AlphaComposite.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Arrow.c Image -> Arrow support (#8330) 2025-04-01 09:10:45 +03:00
Arrow.h Image -> Arrow support (#8330) 2025-04-01 09:10:45 +03:00
Bands.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Bcn.h Added BC5_SNORM reading 2021-05-18 17:44:21 +10:00
BcnDecode.c Do not convert BC1 LUT to UINT32 2025-03-27 21:36:17 +11:00
BcnEncode.c Added BC5 saving 2025-03-17 07:55:25 +11:00
Bit.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
BitDecode.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Blend.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
BoxBlur.c Return early if either width or height is zero 2024-09-05 15:46:54 +10:00
Chops.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
codec_fd.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
ColorLUT.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Convert.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Convert.h Include CMYK to RGB convert as unpacker 2023-10-06 16:05:03 +11:00
ConvertYCbCr.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Copy.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Crop.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Dib.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Draw.c Improved connecting discontiguous corners (#8659) 2025-03-29 18:33:51 +02:00
Effects.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
EpsEncode.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
File.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Fill.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Filter.c Support BuiltinFilter for I;16* images 2024-10-05 01:12:51 +10:00
FliDecode.c Prevent division by zero 2024-09-30 19:48:53 +10:00
Geometry.c Check image value before use 2024-09-20 19:20:53 +10:00
GetBBox.c Updated comments 2024-08-14 15:28:34 +04:00
Gif.h [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-04-25 12:51:24 +00:00
GifDecode.c Fix some typos. 2022-05-14 12:46:46 +08:00
GifEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
HexDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Histo.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Imaging.h Image -> Arrow support (#8330) 2025-04-01 09:10:45 +03:00
ImagingUtils.h [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-04-25 12:51:24 +00:00
ImDib.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
ImPlatform.h Removed pre-C99 definitions 2024-12-31 20:42:49 +11:00
Jpeg.h Use "non-zero" consistently 2024-01-06 12:07:55 +11:00
Jpeg2K.h Remove weird comments 2024-09-11 20:40:46 +10:00
Jpeg2KDecode.c Support reading grayscale images with 4 channels 2025-03-03 08:46:20 +11:00
Jpeg2KEncode.c Support saving CMYK JPEG2000 images 2024-12-10 18:33:12 +11:00
JpegDecode.c use (void) for empty function parameters 2024-08-28 08:08:08 -05:00
JpegEncode.c Fix quantization table scaling when quality is applied to custom qtables 2025-04-10 10:01:02 +00:00
Matrix.c extract band count check 2024-04-23 13:06:22 -05:00
ModeFilter.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Negative.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Offset.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
Pack.c Not needed since memcpy is used here 2024-07-28 16:24:51 +04:00
PackDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Palette.c Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Paste.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
PcdDecode.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
PcxDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
PcxEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Point.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Quant.c Fix undefined variable 2024-08-07 06:38:46 +10:00
QuantHash.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
QuantHash.h [pre-commit.ci] auto fixes from pre-commit.com hooks 2025-04-07 17:17:36 +00:00
QuantHeap.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
QuantHeap.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
QuantOctree.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-10-07 17:56:23 +00:00
QuantOctree.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
QuantPngQuant.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
QuantPngQuant.h [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
QuantTypes.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
RankFilter.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Raw.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
RawDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
RawEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Reduce.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Resample.c Support all resampling filters when resizing I;16* images 2024-09-28 14:27:40 +10:00
Sgi.h Add end-of-file-fixer to pre-commit 2023-09-25 16:45:38 +03:00
SgiRleDecode.c Merge pull request #8413 from radarhere/sgirle_memory 2024-10-01 13:52:22 +03:00
Storage.c Image -> Arrow support (#8330) 2025-04-01 09:10:45 +03:00
SunRleDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
TgaRleDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
TgaRleEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
TiffDecode.c Prevent TIFFRGBAImageBegin from applying image orientation (#8556) 2025-03-29 18:25:57 +02:00
TiffDecode.h [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
Unpack.c Use rawmode instead of splitting and merging 2025-01-05 06:11:54 +11:00
UnpackYCC.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
UnsharpMask.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
XbmDecode.c Format with ClangFormat 2021-01-03 14:17:51 +11:00
XbmEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
ZipCodecs.h Format with ClangFormat 2021-01-03 14:17:51 +11:00
ZipDecode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00
ZipEncode.c [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-07-16 12:58:04 +00:00