Skip to content

Commit 41a4704

Browse files
committed
- v0.2.1 changelog
- fix building in GA Actions
1 parent ca60ccb commit 41a4704

File tree

3 files changed

+51
-3
lines changed

3 files changed

+51
-3
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.2.1 - 2022-04-18]
6+
7+
### Added
8+
9+
- (Windows) Build script by default assumes that `libheif ` installed in `C:\vcpkg\installed\x64-windows`, if `VCPKG_PREFIX` environment is missing.
10+
- (Heif) `reader_add_thumbnail` and `reader_remove_image` examples.
11+
- (Heif) `to_pillow` method and adjusted examples to use it.
12+
13+
### Changed
14+
15+
- (Heif) Removed `HeifSaveMask`, `get_img_thumb_mask_for_save` that was previously introduced, instead added `__delitem__` to `HeifFile`.
16+
- All thumbnails encoding features reworked, to simplify api. See `add_thumbnails` methods in `HeifFile` and `HeifImage` classes.
17+
18+
### Fixed
19+
20+
- (HeifImagePlugin) Fixed palette images with bytes transparency conversion. #21 (@Jarikf)
21+
- (Heif) Raises `ValueError` when trying to save empty(no images) file.
22+
- (HeifImagePlugin) Skips images with sizes = `0` during save, if there is no images, raise `ValueError`.
23+
- (HeifImagePlugin) Memory optimizations, when there is only one image in file.
24+
- Added licenses for libraries in binary wheels.
25+
- (Windows) Fix docs for building and developing.
26+
- (Heif) `add_from_pillow` method, now adds thumbnails from Pillow if it is `HeifImageFile(ImageFile.ImageFile)` class.
27+
528
## [0.2.0 - 2022-04-09]
629

730
### Added

LICENSES_bundled.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
The pillow-heif wheels bundle several libraries that are compatible licensed. Here they are listed.
2+
3+
Name: libheif
4+
License: LGPLv3
5+
Files: heif.dll or libheif.[dylib|so]
6+
For details, see https://github.com/strukturag/libheif/blob/64d9ab99ce7ea8876700c034b19bbc8dd773ae0b/COPYING
7+
Source code: https://github.com/strukturag/libheif/blob/64d9ab99ce7ea8876700c034b19bbc8dd773ae0b
8+
9+
Name: libde265
10+
License: LGPLv3
11+
Files: libde265.[dylib|so|dll]
12+
For details, see https://github.com/strukturag/libde265/blob/e587ef6e8000662b91c35ccb866c2374d3a40e27/COPYING
13+
Source code: https://github.com/strukturag/libde265/blob/e587ef6e8000662b91c35ccb866c2374d3a40e27
14+
15+
Name: x265
16+
License: GPLv2
17+
Files: libx265.[dylib|pyd|so]
18+
For details, see https://bitbucket.org/multicoreware/x265_git/src/Release_3.4/COPYING
19+
Source code: https://bitbucket.org/multicoreware/x265_git/src/Release_3.4
20+
21+
Name: libaom
22+
License: BSD 3-Clause
23+
Files: aom.dll or libaom.[dylib|so]
24+
For details, see https://aomedia.googlesource.com/aom/+/refs/tags/v3.3.0/LICENSE
25+
Source code: https://aomedia.googlesource.com/aom/+/refs/tags/v3.3.0

libheif/build_libs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ def build_lib_linux(url: str, name: str, musl: bool = False):
186186
else:
187187
configure_args = f"--prefix {INSTALL_DIR_LIBS}".split()
188188
if name == "libde265":
189-
configure_args += "--disable-sherlock265".split()
189+
configure_args += "--disable-sherlock265 --disable-dec265".split()
190190
elif name == "libheif":
191-
configure_args += "--disable-examples".split()
191+
configure_args += "--disable-examples --disable-go".split()
192192
run(["./configure"] + configure_args, check=True)
193193
print(f"{name} configured. building...", flush=True)
194194
if _hide_build_process:
@@ -212,7 +212,7 @@ def build_libs_linux():
212212
_original_dir = getcwd()
213213
try:
214214
build_tools_linux(_is_musllinux)
215-
if sys.maxsize > 2**32: # Build x265 encoder only on 64 bit systems.
215+
if sys.maxsize > 2**32: # Build x265 encoder only on 64-bit systems.
216216
build_lib_linux(
217217
"https://bitbucket.org/multicoreware/x265_git/get/master.tar.gz",
218218
"x265",

0 commit comments

Comments
 (0)