posty-studio / lazy-embeds

🛏 Lazy embeds for the WordPress Block Editor. Supports YouTube and Vimeo embeds.
GNU General Public License v3.0
5 stars 0 forks source link

Add WebP support for thumbnails #1

Open danielpost opened 4 years ago

danielpost commented 4 years ago

YouTube supports WebP thumbnails (example). It would be great to support these by default, but unfortunately not all videos come with a WebP thumbnail (this doesn't work but this one does).

Possible implementations:

The last option seems to be the best so far, with no 404's or unnecessary requests on page render. Existing embeds could fallback to regular JPEG thumbnails if they haven't been updated since activating the plugin.

danielpost commented 4 years ago

508c79943300e700d3f97f52482ba4f6148eea28 adds preliminary support for WebP using transients. I'm leaving this open for now since I need to do some more testing with different videos.