[Answered ]-Wagtail: Add support for other image file formats

2👍

As I understand it, Wagtail relies on Willow to provide a common API, which then talks to Pillow, Wand and other python libraries for editing images.

So it’s likely you’ll need to make changes to Willow first, rather than directly to Wagtail.

This is was I learned when looking into adding rotation support to Wagtail – there’s an open pull request on Willow from a few weeks back here:

https://github.com/wagtail/Willow/pull/52

Once that was in, I was expecting to then need to make a PR, to Wagtail myself, to add the UI.

I’ve shared some notes that might be help here too, where I tried to work out how images are saved, with some links to the the docs and discussion on the mailing lists. Hope that helps:

https://workflowy.com/s/FVge.PpETxYqp6D

0👍

wagtail relies on pillow https://pypi.python.org/pypi/Pillow/2.1.0

for image manipulation.
read the doc there, especially system dependencies for gif, jpeg …

👤NiL

0👍

Checking Wagtail source-code, I found that it’s not possible to add more supported image types like .avif. Only images supported by Pillow are allowed. I think maybe there are features of Wagtail that load the image using Pillow?!

enter image description here

Leave a comment