humanmade / altis-media

Media Module for Altis
https://www.altis-dxp.com/resources/docs/media/
7 stars 3 forks source link

Update Tachyon to handle WebP images #156

Open roborourke opened 3 years ago

roborourke commented 3 years ago

Sharp.js, the library used by Tachyon to dynamically resize images now has support for WebP, SVG, PDF, AVIF and GIFs, including animated GIFs.

We should at a minimum enable dynamic resizing of WebP now that WordPress 5.8 supports uploading that format.

The current pass through behaviour for animated GIFs and SVG images is fine, there's nothing much to gain there right now.

rmccue commented 3 years ago

We should at a minimum enable dynamic resizing of WebP now that WordPress 5.8 supports uploading that format.

We probably also need the reverse of what we have, transcoding WebP back to PNG for browsers that don't support it.