-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for WebP format #28
Comments
I've created WebP generating support in this branch: It's stable and used by a production website. See the HTML output at https://2th.nl/en I've chosen to only do the point "Generate WebP images along other formats" for now, because users will always need to upload jpg/png's. It's 100% supported by all browsers. The webp is then generated from the resized jpg/png images. So the user of a site does not need technical knowledge and the website is always optimized. I'm mentioning this here instead of a pull request because the code needs to be made configurable using the backend and it should ignore existing optimizations ( A general note: please note that the jpegs can always still be optimized like 30-70% using tools such as |
Support for WebP images has landed in 2.2.0! 🎉 |
Awsome. Great work! I will be testing it soon in a project. I see you use a much better solution then I created and regretted. From the first looks you are serving all jpg urls as webp which is better. It might be worth looking into the wordpress webp express plugin. It has a method using a .htaccess file that serves webp just using a apache2 rule. No php involved (thus static file) unless webp is missing, then php is called. Thanks for the support! |
We could check the header and the existence of the WebP file in the .htaccess: https://github.com/vincentorback/WebP-images-with-htaccess |
Done in 2.2.1. Thanks for your feedback, @mauserrifle! |
That is so cool! Big thanks for all your efforts in your plugins. They are very helpful and you create an awsome base for projects. I hope I can contribute more in the future with actual production code. I was not happy with my webp implementation and lacked time to fix. I will be using this update in a project next week. Yay! |
The text was updated successfully, but these errors were encountered: