GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 393 forks source link

webp images with fallback #494

Open Luc-cpl opened 6 years ago

Luc-cpl commented 6 years ago

Hello, I'm using this awesome feature in an webapp to suport custom pages for SEO purpose and i think is the best and simplest way.

In an app that i'm working, i convert every image uploaded to webp and compress the original, this help's to improve performace and reduce time loading when user is in chrome.

It could be a wonderfull feature give the possibilitie to add two sources for image (one in original format and other in webp) and use the picture html tag wen add images to have a gracefull fallback when the user is not in an suported browser.

anthonyjb commented 6 years ago

@Luc-cpl completely agree - we have some fairly hacky ways of doing this currently using fixtures (which provide limit scope anyway).

It's on my road-map for the next major release of CT (on an ever growing list) and thanks for flagging it :+1: