Upgrade to release 1.8.0:
- Reading of entity groups: entity_groups key in info dictionary,
tells which images form a stereo pair in spatial photos.
- Decoding of embedded thumbnails: HeifImage.get_thumbnail method
and draft in the Pillow plugin, Image.thumbnail() uses them
instead of decoding the full image.
- Minimum required libheif version is 1.23.4.
- libheif was updated from the 1.23.3 to 1.23.4 version.
- libde265 was updated from the 1.1.2 to 1.1.3 version.
- Segmentation fault when opening a file whose metadata item type
is not valid UTF-8.
- Pillow plugin: load() of a multi-frame image reloaded the frame
data on every call, discarding in-place changes and failing after
thumbnail().
- A depth image of an item type that libheif cannot decode made the
whole file unreadable with libheif 1.23.4, such depth images are
now skipped.
- Type checkers treated the names imported from pillow_heif as
private since the py.typed marker was added in 1.7.0:
Pyright/Pylance and mypy --strict reported them as not exported,
Pyright/Pylance autocompletion did not offer them.
This work was sponsored by GOVCERT.LU.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upstream changes (release notes):
* 1.2.0: dropped Python 3.9; PREFERRED_DECODER must be a valid decoder.
* 1.3.0: pixel-aspect-ratio (pasp) read/write; free-threaded (no-GIL)
Python support; fix integer overflow in the encode path leading to a
heap OOB read (CVE-2026-28231).
* 1.4.0: track newer bundled libheif/libde265/libx265 (not used here -
the recipe builds against the system libraries); minimum libheif
raised to 1.19.0.
* 1.5.0: grid (tiled) image encoding via options.GRID_TILE_SIZE /
tile_size, info["tiling"] read-back, and PH_LIBHEIF_CMAKE_ARGS.
Refresh 0001-setup.py-support-cross-compiling.patch for 1.5.0: setup.py
context shifted, so the patch applied with fuzz and failed the patch-fuzz
QA check. Regenerated against 1.5.0 (same STAGING_INCDIR/STAGING_LIBDIR
changes).
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>