You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Converting F images to I;16 clips values to 255 #10348
Convert.c has no F to I;16* converter, so Image.convert() falls back to converting through the base mode L first, which clips to 0..255. This is the same fallback that #9931 fixed for I;16N to I and F. I can open a PR that adds F to I;16, I;16L, I;16B and I;16N converters, clipping to 0..65535 and truncating like the existing F to I and F to L conversions.
What are your OS, Python and Pillow versions?
OS: Ubuntu 26.04 (WSL2), x86-64
Python: 3.12.13
Pillow: 13.0.0
--------------------------------------------------------------------
Pillow 13.0.0
Python 3.12.13 (main, Aug 7 2026, 02:25:39) [Clang 22.1.3 ]
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 13.0.0
--- ZLIB (PNG/ZIP) support ok, loaded 1.3.1, compiled for zlib-ng 2.3.3
--- LIBTIFF support ok, loaded 4.7.2
--------------------------------------------------------------------
Activity