python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.33k stars 2.24k forks source link

Support all resampling filters when resizing I;16* images #8422

Closed radarhere closed 1 month ago

radarhere commented 1 month ago

Resolves #8333 by allowing resize() on I;16, I;16L, I;16B and I;16N images to work with resampling filters other than NEAREST.

Given the original intention to use BICUBIC as the default resampling for all modes, I've also changed the default resampling for I;16* modes to BICUBIC here. This will only leave the deprecated modes BGR;15, BGR;16 and BGR;24 using NEAREST by default.