Add AVIF to wheels using only aomenc and dav1d AVIF codecs for reduced size by fdintino · Pull Request #8858 · python-pillow/Pillow
fdintino
changed the title
fix: remove rav1e to decrease wheel size
fix: use only aomenc and dav1d AVIF codecs to decrease wheel size
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.
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.
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
* Added release notes * Simplified code * AVIF works on Windows x86 --------- Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
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
This was referenced
Aug 2, 2025
ypid
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters