Feat: Add support for webp image
inkhey opened this issue · 3 comments
inkhey commented
Feature description and goals
Webp image is not supported in preview-generator 0.25. It's an interesting image format to support:
https://en.wikipedia.org/wiki/WebP
preview_generator.exception.UnsupportedMimeType: Unsupported mimetype: image/webp
Implemented solution:
- Add webp support to wand builder.
- Add webp support to deprecated imagemagick cli builder.
a523 commented
Yeah, I think it is caused by this function builder.get_supported_mimetypes
not getting the correct and complete result.
inkhey commented
Yes, the issue is both missing package to decode webp and missing mimetype support in list. I just created a draft PR with support in ImageMagick CLI builder (of course , this should be adapt to wand as soon as your dev is ok @a523 )
Also, it seems that animated webp is not supported (need verification).