liwenyip / hugo-easy-gallery

Automagical css image gallery in Hugo using shortcodes, with optional lightbox/carousel gadget using PhotoSwipe and jQuery.
MIT License
577 stars 111 forks source link

Include webp images in gallery #68

Closed kishorbhat closed 2 years ago

kishorbhat commented 2 years ago

All modern browsers support webp now. Quoting Google Lighthouse,

Image formats like WebP ... often provide better compression than PNG or JPEG,
which means faster downloads and less data consumption.

With that in mind, I think including files ending with ".webp" in the gallery makes sense!

Also fixed a typo in a comment.

kishorbhat commented 2 years ago

Feels dirty to LGTM my own change, but this is a simple change.