Added
- Pillow plugin:
Image.open()with a file path reads only the metadata of the file, the rest of it is read when the image is loaded. The whole file was read into memory when opening before. #493 PyPy 3.12wheels added. #508
Changed
- Minimum supported
Pillowversion raised to13.0.0. - Dropped
Python 3.10support. PyPy 3.11wheels are built forPyPy 8.0,PyPy 7.3installs build from the sdist. #498- Minimum required
libheifversion is1.23.7. #515 #523 libheifwas updated from the1.23.6to1.23.7version. #515- A file with a metadata item that cannot be read now opens, the item is skipped; memory errors of
libheif, including exceeded memory limits, are raised as before. #515 #525 - HEVC data with an invalid NAL unit size raises
ValueErrorinstead ofEOFError. #515 - Pillow plugin: a file opened by path must stay unchanged on disk until
load(), whenload()reads from it, it raisesOSErrorif its size or modification time changed in between or it was removed after it was closed. #493 - Pillow plugin:
seek()afterclose()raisesValueError, as with Pillow's own plugins. #493
Fixed
- Saving a
YCbCrimage emitted thePillowDeprecationWarningforImage.getdata, deprecated sincePillow12.1.0. #507 - Images with a NAL unit larger than 16 MiB, such as big lossless images, could not be read. #515
- Segmentation fault instead of
MemoryErrorwhen memory ran out while the images of a file were created. #524 - A preferred decoder ID longer than 63 bytes overflowed a buffer, opening a file raises
ValueErrornow. #524 - A file with an auxiliary image stayed in memory when the type of that image could not be read, e.g. out of memory. #524
- When memory ran out, reading the color profile, the depth image metadata or the entity groups of a file and saving a file raised
SystemError,KeyErrororRuntimeError, sometimes later in unrelated code, instead ofMemoryError. #524 - Pillow plugin:
tell()andseek()of an unpickled image raisedAttributeError. #524