Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

228
Views
Wagtail: Add support for other image file formats

I'm using Wagtail as a simple image library, and have the requirement to support TIFF and BMP. I dug around the source code of Wagtail, and AbstractImage, WagtailImageField and Filter all seem interesting. It feels like it should be possible, but so far failed to get it working without altering Wagtail itself. Has anybody succeeded in adding support for another image file format?

I realize I could do my own conversion upon upload, but would much rather keep the originals managed by Wagtail.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

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

over 4 years ago · Santiago Trujillo Report

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 ...

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!