WebP is widely available now - add default support?
WebP is widely available now and considered "baseline". We are considering full adoption without a PNG / JPG fallback, and we'd like easy-thumbnails to only generate a WebP thumbnail and not bother with jpg / png.
The explanation given on https://easy-thumbnails.readthedocs.io/en/latest/ref/webp/ made perfect sense when it was written, but now, I think more and more developers will consider using only webp.
Are there any plans to add a WebP-first mode to easy-thumbnails?
it's already there, you would just use the setting THUMBNAIL_EXTENSION = "webp" and get webp everywhere. Or is this not what you would want?
Agreed, docs could be more up to date. They are not rendered already for a while...
@benzkji great to hear that it's supported! Indeed the docs aren't clear about webp support. If a maintainer could update them, I'd be happy to update my config based on the new docs.
if you only need webp and nothing else, THUMBNAIL_EXTENSION should be enough. The old docs about webp, when it still was experimental could even be removed, IMHO.
https://easy-thumbnails.readthedocs.io/en/latest/ref/settings/#easy_thumbnails.conf.Settings.THUMBNAIL_EXTENSION
and even:
https://easy-thumbnails.readthedocs.io/en/latest/ref/settings/#easy_thumbnails.conf.Settings.THUMBNAIL_TRANSPARENCY_EXTENSION
Yep, simply doing this fixes everything, no need to do anything else.
THUMBNAIL_EXTENSION = "webp"
THUMBNAIL_TRANSPARENCY_EXTENSION = "webp"