12.0.0 (2025-10-15)
Backwards incompatible changes
Python 3.9
Pillow has dropped support for Python 3.9, which reached end-of-life in October 2025.
ImageFile.raise_oserror
ImageFile.raise_oserror() has been removed. The function was undocumented and was
only useful for translating error codes returned by a codec’s decode() method,
which ImageFile already did automatically.
IptcImageFile helper functions
The functions IptcImageFile.dump and IptcImageFile.i, and the constant
IptcImageFile.PAD have been removed. These were undocumented helper functions
intended for internal use, so there is no replacement. They can each be replaced by a
single line of code using builtin functions in Python.