Hi there,
i am using “Convert JPG and PNG to WEBP Plugin” from Felix Häberle. Images are converted to webp by uploading a jpg or png. this works well. xyz.jpg becomes xyz.webp
i have inserted in the htaccess the code which can be found several times in the web:
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{REQUEST_URI} (?i)(.*)(\.jpe?g|\.png)$
RewriteCond %{DOCUMENT_ROOT}%1.webp -f
RewriteRule (?i)(.*)(\.jpe?g|\.png)$ %1\.webp [L,T=image/webp,R]
</IfModule>
<IfModule mod_headers.c>
Header append Vary Accept env=REDIRECT_accept
</IfModule>
AddType image/webp .webp
and i am using the srcset feature of kirby to output images.
unfortunately i cannot see any webp images in the network tab of chrome, only jpg images are served. if i choose webp as image source the output as webp works. i thougt that the htaccess redirect will serve webp if supported. could anybody help please?