Title: WebP support
Last modified: March 28, 2018

---

# WebP support

 *  [Oliver Schmehr](https://wordpress.org/support/users/oschmehr/)
 * (@oschmehr)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/)
 * Hello!
 * I’m a glad user of FooGallery and FooBox on our school’s website ([https://gtgs.info](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
    -  This topic was modified 8 years, 2 months ago by [Oliver Schmehr](https://wordpress.org/support/users/oschmehr/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebp-support-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10137660)
 * Hi Oliver,
 * Firstly thanks for your translations 🙂
 * I will discuss how we can support WebP images with the team. I will also look
   at how ShortPixel generates the files so that we can incorporate them if they
   are available.
 * It becomes a bit tricky as the webP support is done in the browser.
 * thanks again
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10137663)
 * [@oschmehr](https://wordpress.org/support/users/oschmehr/) please contact me 
   via brad @ fooplugins . com
 *  Thread Starter [Oliver Schmehr](https://wordpress.org/support/users/oschmehr/)
 * (@oschmehr)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10138441)
 * Hi Bradvin!
 * Thanks for your reply.
    It would be great if your team could incorporate WebP
   support in the future. At the moment only Chrome and Opera support it, but I 
   think it will get more popular over time since the compression rates are amazing
   compared to JPG!
 * I’m not much of a tech guy, but the browser check on server level in _.htaccess_
   is done by one simple line of code: `RewriteCond %{HTTP_ACCEPT} image/webp`
    
   I would be surprised if there is nothing corresponding in PHP. 🙂
 * Best regards
    Oliver
 *  Thread Starter [Oliver Schmehr](https://wordpress.org/support/users/oschmehr/)
 * (@oschmehr)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10150671)
 * Hello [@bradvin](https://wordpress.org/support/users/bradvin/),
 * I contacted you via eMail 3 days ago as requested. Did you get it?
    You can also
   contact me via _schmehr [at] gmail dot com_
 * Regards
    Oliver Schmehr
 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10153097)
 * Hi
    I replied to your mail recently. sorry for the delay.
 * Also, I found this page really useful which I will be investigating further :
   [https://developers.google.com/speed/webp/faq](https://developers.google.com/speed/webp/faq)
 * cheers

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WebP support’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [bradvin](https://wordpress.org/support/users/bradvin/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/webp-support-5/#post-10153097)
 * Status: not resolved