Releases: bigcat88/pillow_heif
Releases · bigcat88/pillow_heif
v0.4.0
Added
- (Heif) - Numpy array interface support.
- (Heif) -
add_from_bytesmethod andfrom_bytesfunction added. Allows to read 16-bit color images withOpenCV(or any other library) and save it as 10(12) bit HEIF. - (Heif) -
convert_tomethod toHeifImageto 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,BGRmodes. - (Heif) - added
save_to_12bittooptions, defaultFalse. Determines to what bitness will be converted 16 bit images during saving.
Changed
- IMPORTANT!!!
10/12bit images changed their byte order fromBig EndiantoLittle Endian. Probably no one still use that API, but who knows... - (Heif) -
HeifFile.chromaandHeifFile.colorproperties was removed(they were not documented so probably no one will notice this), that info now stored inmode. - (Heif, HeifImagePlugin) -
modefor10/12bits was changed and accepts wider range of values, look here - Docs were
updated&rewrittento reflect all those changes.
Fixed
Exampleswerefixed&rewritten(were broken from0.3.1+ versions).exifloading in HEIF sequence forPillow 9.2+(python-pillow/Pillow#6335)
v0.3.2
Fixed
- Support of saving images with mode=
"1"in"L"mode. - Images with mode=
"L"are now saved natively inMonochromemode(increase speed & decreased required memory and a bit less size) #26 - Speed optimization for
saveappend_imagesparameter - Possible
SEGFAULTduring encoding with somestridevalues.
v0.3.1
Added
- (Heif) -
HeifFilegetsimages: List[HeifImage]and alternative method of changing order of images by editing it. - (HeifImagePlugin) -
infoimage dictionary can be now edited in place and it will be saved for image sequences.
Changed
- Updated docs.
Fixed
- (HeifImagePlugin) Again fixing image order, for Pillow plugin it was not fixed fully in 0.3.0.
- Optimizing code.
v0.3.0
Added
- (HeifImagePlugin, Heif) -
savenow recognizesexif=andxmp=optional parameters. Works as in other Pillow plugins. #25 - (HeifImagePlugin, Heif) -
savenow recognizesprimary_indexoptional parameter. - (HeifImagePlugin, Heif) -
info["primary"]value. - (Heif) -
primary_indexmethod toHeifFileclass. - Docs: Encoding
- Docs: Changes in Order Of Images
Changed
- Changed image order when multiply images present,
HeifFilepoints to primary image as it was before, but it can be not the first image in a list. - When using as a Pillow's plugin the only way to know is an image
Primaryor not is to perform check ofinfo["primary"]value. - (Heif) - optimized code of
HeifImageThumbnail, addedget_originalmethod.
Fixed
- (HeifImagePlugin) -
savebug, when first frame was saved instead of current. - Minor usage fixes and optimizations.
v0.2.5
v0.2.1
Added
- (Windows) Build script by default assumes that
libheifinstalled inC:\vcpkg\installed\x64-windows, ifVCPKG_PREFIXenvironment is missing. - (Heif)
reader_add_thumbnailandreader_remove_imageexamples. - (Heif)
to_pillowmethod and adjusted examples to use it.
Changed
- (Heif) Removed
HeifSaveMask,get_img_thumb_mask_for_savethat was previously introduced, instead added__delitem__toHeifFile. - All thumbnails encoding features reworked, to simplify api. See
add_thumbnailsmethods inHeifFileandHeifImageclasses.
Fixed
- (HeifImagePlugin) Fixed palette images with bytes transparency conversion. #21 (@Jarikf)
- (Heif) Raises
ValueErrorwhen trying to save empty(no images) file. - (HeifImagePlugin) Skips images with sizes =
0during save, if there is no images, raiseValueError. - (HeifImagePlugin) Memory optimizations, when there is only one image in file.
- Added licenses for libraries in binary wheels.
- (Windows) Fix docs for building and developing.
- (Heif)
add_from_pillowmethod, now adds thumbnails from Pillow if it isHeifImageFile(ImageFile.ImageFile)class.
v0.1.7
Added
- Added
manylinux2014_i686wheels. - Integration of PEP 517 in progress, added new instructions for building from source.
Changed
- Making code cleaner, renamed cffi module from
pillow_heif.libheifto_pillow_heif_cffi. - libaom bumped from 3.2.0 to 3.3.0
Fixed
- Fixed
AttributeErrorwhen callingImage.verify. Thanks @zijian-hu for reporting.
v0.1.4
First normal working release.
Added
- Python 3.10 wheels.
- Added
libaomlibrary to linux build. - More tests.
Changed
- Code refactoring, readme update.
Fixed
- Bug with header check when used as plugin for Pillow with
as_openerfunction. Thanks for this to @DimonLavron