wagtail / Willow

A wrapper that combines the functionality of multiple Python image libraries into one API
https://willow.wagtail.org/
BSD 3-Clause "New" or "Revised" License
273 stars 53 forks source link

Ensure SVG files are given a mime type #129

Closed RealOrangeOne closed 1 year ago

RealOrangeOne commented 1 year ago

SvgImageFile currently doesn't conform to the ImageFile interface, as it doesn't define mime_type.

It might be nice to define ImageFile as a proper ABC, but that's a conversation for another day. There are a few stream types too which will need to be considered