v0.4.0
github-actions
released this
04 Jul 00:20
·
592 commits
to refs/heads/master
since this release
Added
- (Heif) - Numpy array interface support.
- (Heif) -
add_from_bytes
method andfrom_bytes
function added. Allows to read 16-bit color images withOpenCV
(or any other library) and save it as 10(12) bit HEIF. - (Heif) -
convert_to
method toHeifImage
to provide an easy way to open 10 or 12 bit images as 16 bit forOpenCV
(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
tooptions
, defaultFalse
. Determines to what bitness will be converted 16 bit images during saving.
Changed
- IMPORTANT!!!
10/12
bit images changed their byte order fromBig Endian
toLittle Endian
. Probably no one still use that API, but who knows... - (Heif) -
HeifFile.chroma
andHeifFile.color
properties was removed(they were not documented so probably no one will notice this), that info now stored inmode
. - (Heif, HeifImagePlugin) -
mode
for10
/12
bits was changed and accepts wider range of values, look here - Docs were
updated
&rewritten
to reflect all those changes.
Fixed
Examples
werefixed
&rewritten
(were broken from0.3.1
+ versions).exif
loading in HEIF sequence forPillow 9.2+
(python-pillow/Pillow#6335)