Add mime_type to ImageFile to facilitate
generating Content-Type headers for images
While working on https://github.com/wagtail/wagtail/pull/8974 @jams2 noted that Pillow provided a content_type that was lost in the switch to Willow. I implemented a mapping of format_name to mime_type to resolve the issues, but it would be better if we could get the mime_type from the ImageFile instance returned by willow.open
Add mime_type to ImageFile to facilitate generating Content-Type headers for images
While working on https://github.com/wagtail/wagtail/pull/8974 @jams2 noted that Pillow provided a content_type that was lost in the switch to Willow. I implemented a mapping of format_name to mime_type to resolve the issues, but it would be better if we could get the mime_type from the ImageFile instance returned by willow.open