WebP support
-
Hello!
I’m a glad user of FooGallery and FooBox on our school’s website (https://gtgs.info). In the last few days I also translated and approved the strings of both plugins into german.
I also use ShortPixel Image Optimizer which created WebP versions of all my images and thumbnails. By replacing
<img>
– with<picture>
-tags this works flawless in Chrome for normal embedded images on my site.WP Fastest Cache took also care of WebP in my .htaccess:
# BEGIN WEBPWpFastestCache <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_URI} jpg|png RewriteCond %{DOCUMENT_ROOT}/$1.webp -f RewriteRule ^(.*) "/$1.webp" [L] </IfModule> <IfModule mod_headers.c> Header append Vary Accept env=REDIRECT_accept Header set Expires "max-age=2592000, public" Header unset ETag Header set Connection keep-alive FileETag None </IfModule> AddType image/webp .webp # END WEBPWpFastestCache
But still thumbs in Foogallery and – most important – large images in Foobox are delivered only as JPGs/PNGs.
I wonder if you have plans of any kind for support of .webp images in the future. Something like this:
Check if browser supports WebP --> Check if according ".webp"-image exists --> Deliver ".webp"-version instead of .jpg/.png
Or is there anything I could change in the code of FooGallery or FooBox (as a quick fix) to achieve this?
Thanks for any idea and best regards
Oliver Schmehr
The page I need help with: [log in to see the link]
- The topic ‘WebP support’ is closed to new replies.