Add AVIF to wheels using only aomenc and dav1d AVIF codecs for reduced size by fdintino · Pull Request #8858 · python-pillow/Pillow

@fdintino fdintino changed the title fix: remove rav1e to decrease wheel size fix: use only aomenc and dav1d AVIF codecs to decrease wheel size

Apr 2, 2025

@fdintino

Also build libavif as a shared library. When it is built as a static
library, the dependency library files are combined into a single
archive. But when they are linked as a shared library, the linker is
able to remove unused objects. This yields a modest but not
insignificant file size reduction.

wantehchang

wantehchang

@fdintino

wantehchang

@fdintino

wantehchang

ENABLE_NASM=ON is unnecessary...it forces the use of nasm over yasm if
both are available, but only nasm is installed in the wheel build
environments. And CMAKE_MODULE_PATH was only necessary when we used
pre-built rav1e binaries.

@fdintino

wantehchang

wantehchang

@fdintino

@hugovk hugovk changed the title fix: use only aomenc and dav1d AVIF codecs to decrease wheel size Use only aomenc and dav1d AVIF codecs to decrease wheel size

Apr 5, 2025

radarhere

@fdintino

@fdintino

wantehchang

@radarhere

* Added release notes

* Simplified code

* AVIF works on Windows x86

---------

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>

@radarhere

radarhere

@radarhere radarhere changed the title Use only aomenc and dav1d AVIF codecs to decrease wheel size Add AVIF to wheels using only aomenc and dav1d AVIF codecs for reduced size

Jun 22, 2025

@radarhere

radarhere

@radarhere

radarhere

@radarhere @hugovk

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

This was referenced

Aug 2, 2025

@ypid ypid mentioned this pull request

Jan 10, 2026