Closed daybugging closed 4 years ago
That's a good idea, had thought about it before. Feel free to open a PR on how to integrate WebP generation into the existing workflow - didn't have much time back in the days to look for / write a plugin for gulp
/ gulp-imagemin
Update: Seems like I have to write an extension if I want WebP support for images uploaded from Kirby's panel, this library might provide a good starting point: https://github.com/rosell-dk/webp-convert
Also, after converting images to .webp
, adding this .htaccess
directive will replace them if the format is supported by the browser:
https://github.com/vincentorback/WebP-images-with-htaccess
kirby-webp
is out now, plus I added WebP generation to the workflow with this commit. As soon as it lands in this repository as submodule, this will be closed.
Thanks again for the suggestion :+1:
For Kirby v3, I might use @hashandsalt's WebP plugin, be sure to check it out :koala:
.. or maybe I'll come up with my own solution :dancer: Cheers!
This has been implemented, thanks for your patience.
Hey there, since you are very into performance, why not go for WebP support?