fix: upgrade Pillow to 12.x for native AVIF support #27
Reference in New Issue
Block a user
Delete Branch "fix/pillow-avif-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Uploading .avif files in the Wagtail editor returned a 500 error, even after PR #26 added
libavif-devto the Dockerfile.Root Cause
Pillow~=11.0.0pinned to the 11.0.x series, which does not include native AVIF support — that was added in Pillow 11.1.0. Thelibavif-devsystem package had no effect because pip installs pre-compiled wheels that bundle their own codec libraries.Fix
Bump Pillow to
~=12.1(latest stable, 12.1.1). This version ships native AVIF encoding/decoding in its PyPI wheels.Verified inside the container:
avif: Truein Pillow features, modules, and registered extensions