Skip to content

v0.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Jul 00:20
· 592 commits to refs/heads/master since this release
10b49d0

Added

  • (Heif) - Numpy array interface support.
  • (Heif) - add_from_bytes method and from_bytes function added. Allows to read 16-bit color images with OpenCV(or any other library) and save it as 10(12) bit HEIF.
  • (Heif) - convert_to method to HeifImage to provide an easy way to open 10 or 12 bit images as 16 bit for OpenCV(or any other library)
  • (Heif, HeifImagePlugin) - support for saving images from I, I;16, BGRA;16, BGR;16, BGRA, BGR modes.
  • (Heif) - added save_to_12bit to options, default False. Determines to what bitness will be converted 16 bit images during saving.

Changed

  • IMPORTANT!!! 10/12 bit images changed their byte order from Big Endian to Little Endian. Probably no one still use that API, but who knows...
  • (Heif) - HeifFile.chroma and HeifFile.color properties was removed(they were not documented so probably no one will notice this), that info now stored in mode.
  • (Heif, HeifImagePlugin) - mode for 10/12 bits was changed and accepts wider range of values, look here
  • Docs were updated & rewritten to reflect all those changes.

Fixed

  • Examples were fixed & rewritten(were broken from 0.3.1+ versions).
  • exif loading in HEIF sequence for Pillow 9.2+ (python-pillow/Pillow#6335)