Jump to content

Recommended Posts

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...