Smush Pro (WebP)

Hi, i’m trying to enable webp support in Wordpress through the
Smush Pro plugin, but I didn’t succeed. Does anyone know how I can solve this?

This is my setup:
Proxy Server: nginx
Web Server: apache2
Backend Server: php-fpm

Disable the images from the proxy settings:

Ok, I will try that

Hi, I reset my entire server and installed wordpress again. Then disable the images from the proxy settings, but did not function.

This is what I put in the .htaccess:

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/disable_smush_webp !-f
 RewriteCond %{HTTP_ACCEPT} image/webp
 RewriteCond %{DOCUMENT_ROOT}/wp-content/smush-webp/$1.webp -f
 RewriteRule wp-content/uploads/(.*.(?:png|jpe?g))$ wp-content/smush-webp/$1.webp [NC,T=image/webp]

<IfModule mod_headers.c>
 Header append Vary Accept env=WEBP_image

<IfModule mod_mime.c>
 AddType image/webp .webp

Proxy Extensions:
jpeg, gif, bmp, ico, svg, tif, tiff, css, js, htm, html, ttf, otf, woff, txt, csv, rtf, doc, docx, xls, xlsx, ppt, pptx, odf, odp, ods, odt, pdf, psd, ai, eot, eps, ps, zip, tar, tgz, gz, rar, bz2, 7z, aac, m4a, mp3, mp4, ogg, wav, wma, 3gp, avi, flv, m4v, mkv, mov, mpeg, mpg, wmv, exe, iso, dmg, swf

Seems like you dont have disabled them…

I thought it was just jpg, png and webp

So I’ve deactivated all image formats, but it’s still not working.


How about you convert all images using CLI

find . -iname '*.jpg' -exec  convert '{}' -format webp '{}' \;

Or something like that. If I have some free time tonight I will look for the complete script.

For local webp you need to install webp in the os if you did not already do so.


apt install webp libwebp-dev

or compile from source, I have always had no issues with webp on Hestia

You can check if you have webp enabled in php with

php --ri gd

output of command

GD Support => enabled
GD headers Version => 2.3.0
GD library Version => 2.3.0
FreeType Support => enabled
FreeType Linkage => with freetype
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XPM Support => enabled
XBM Support => enabled
WebP Support => enabled
BMP Support => enabled
TGA Read Support => enabled


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.