Andrew Murray
Andrew Murray
The test suite is printing a number of deprecation warnings here - https://github.com/python-pillow/Pillow/actions/runs/9616954928/job/26527638175?pr=8158#step:10:5144 For comparison, see main where deprecation warnings are not printed by the test suite - https://github.com/python-pillow/Pillow/actions/runs/9622876608/job/26544673674#step:10:4868
> Packers were added for XRGB;1555, RGB;565, XBGR;1555, and BGR;565. Previously it was possible to use the BGR;15 and BGR;16 modes for XRGB;1555 and RGB;565 data, but since those modes...
> to reduce the usage of multiplication and division for performance reasons. Could you explain this? I'm not seeing anywhere that you've rewritten the C code of how a mode...
The following code doesn't raise a deprecation warning. ```python >>> from PIL import Image >>> im = Image.new("P", (1, 1)) >>> im.putpalette(b"0", "BGR;15") ```
> to reduce the usage of multiplication and division for performance reasons. > The existing function multiplies each value by 17 (17 == 255 // 15) to scale from 4...
Could you mention in the documentation that the output will be different?
I've created #9002 as a possible alternative.
In the absence of any further discussion, I'll merge #9002 sometime in the next few days. We're coming up on the release, and I would rather not merge it at...
#9002 has ben merged.
The general solution in that other issue is to downgrade setuptools to 70.3.0.