reed Posted September 8, 2022 Share Posted September 8, 2022 A while back I added webp support to arthistoryproject.com, but didn't see a ton of image size improvement. Then today I read this post by the genius horst, and realized I could tweak webp quality settings in config.php. I've made some changes, and new webp renders are WAY smaller. Fantastic! But now I'm wondering if there's a way to programmatically delete/overwrite previously rendered image variations, either site-wide or page-by-page. But of course, only once per page/image. Does that make sense? Thanks so much for any ideas! Reed Link to comment Share on other sites More sharing options...
bernhard Posted September 8, 2022 Share Posted September 8, 2022 Maybe this? https://processwire.com/modules/pageimage-remove-variations/ Link to comment Share on other sites More sharing options...
reed Posted September 8, 2022 Author Share Posted September 8, 2022 Oh snap! That looks like it might do it — I'll check it out and report back ? Link to comment Share on other sites More sharing options...
AndZyk Posted September 8, 2022 Share Posted September 8, 2022 If you just want to delete all WebP files you also could do this via the command line in your site/assets/files: find . -name "*.webp" -type f -delete Source But only if you don't have WebP files manually uploaded in your file fields, so be careful. The module posted above is more safe I think. ? There was also a receipe by Ryan a while ago, but I cannot find it. Link to comment Share on other sites More sharing options...
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