DrQuincy Posted Friday at 09:15 AM Posted Friday at 09:15 AM If you enable WebP, it creates variants for all images. However, Ryan's .htaccess code is from here: https://processwire.com/blog/posts/webp-images-and-more/#webp-image-strategies-in-processwire Doesn't rewrite GIFs, I presume this is because they can be animated. RewriteRule ^(.*?)(site/assets/files/)([0-9]+)/(.*)\.(jpe?g|png)(.*)$ /$1$2$3/$4.webp [L] Given this, it seems inefficient to create a webp variants for GIFs. Does the core have an inbuilt way to disable this, or is it by design that this isn't offered/done automatically? 1
horst Posted Monday at 11:28 AM Posted Monday at 11:28 AM On 4/10/2026 at 11:15 AM, DrQuincy said: Doesn't rewrite GIFs, I presume this is because they can be animated. Exactly. That's the reason. 🙂 1
DrQuincy Posted Monday at 11:30 AM Author Posted Monday at 11:30 AM I presume, then, if you know it's not animated and you want the webp version you can use ->webp. It's probably good as it is in hindsight. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now