Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda