Skip to content
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

Feature request: Support for webp files (LiteSpeed Cache) #357

Closed
afonseca08 opened this issue Feb 16, 2019 · 14 comments
Closed

Feature request: Support for webp files (LiteSpeed Cache) #357

afonseca08 opened this issue Feb 16, 2019 · 14 comments
Assignees
Milestone

Comments

@afonseca08
Copy link

Although not yet a native WordPress format, several image conversion plugins support webp as well as caching plugins. Webp support is growing around the web and supported by modern browsers today. Those looking to optimize loading times are leveraging this new format as well as CDN technology so adding support for webp in wp-stateless would be beneficial.

@alimuzzaman
Copy link
Contributor

alimuzzaman commented Mar 4, 2019

Hi @afonseca08,
So far I have found that ShortPixel Image Optimizer can generate webp when it optimize image.

I think it's not something we can find generic solution, we have add support plugin by plugin.

So we will try to include support for webp generated by ShortPixel inside of the existing compatibility for ShortPixel.

@afonseca08
Copy link
Author

Hi @alimuzzaman, thank you for following-up. I am already using the LiteSpeed Cache for WP plugin:
https://wordpress.org/plugins/litespeed-cache/ which also supports webp. Something like ShortPixel would duplicate functionality and is an additional cost so not an option for me.

Would you be able to look into LiteSpeed Cache plugin compatibility?

@alimuzzaman
Copy link
Contributor

@afonseca08
Yes will take a look.

@alimuzzaman
Copy link
Contributor

Hi @afonseca08 to test LiteSpeed do I have to install LiteSpeed server?

@alimuzzaman
Copy link
Contributor

Hi @afonseca08
Would you like to help me setting up the LiteSpeed, I don't experience with LiteSpeed.
Please contact me so that I can send you login details. alim@udx.io

@afonseca08
Copy link
Author

@alimuzzaman Sure, I just sent you an e-mail. You don't need LiteSpeed server to use the plugin.

@antonkorotkov
Copy link
Contributor

@alimuzzaman Can you let me know what is the status of this issue?

@alimuzzaman
Copy link
Contributor

@antonkorotkov
Contacted with LiteSpeed support team, they added some new hook.

Here is the response:

Hi,
Thanks for reaching us. Regarding this request, we added couple hooks to WebP generation and validation process. The commit is in litespeedtech/lscache_wp@e33861d
Please let us know if there is anything more that we need to do.
Best regards,
Hai

alimuzzaman pushed a commit that referenced this issue Mar 16, 2019
Now webp will be synced on manual sync also.
@alimuzzaman
Copy link
Contributor

@afonseca08
Can you please test?
To test you have to enable compatibility from Media >> Stateless Settings >> Compatibility tab.

https://github.com/wpCloud/wp-stateless/tree/5751b06f2d38a9ffa3a973d0f1d51c7995086f17

@alimuzzaman alimuzzaman changed the title Feature request: Support for webp files Feature request: Support for webp files LiteSpeed Cache Mar 16, 2019
@alimuzzaman alimuzzaman changed the title Feature request: Support for webp files LiteSpeed Cache Feature request: Support for webp files (LiteSpeed Cache) Mar 16, 2019
@alimuzzaman
Copy link
Contributor

Compatibility for ShortPixel Image Optimizer will be handle in separate issue #364.

@antonkorotkov
Copy link
Contributor

@alimuzzaman Can you explain how to test LiteSpeed Cache with WP-Stateless? When/Where the webp appears or should it be uploaded manually? I tried but WP does not allow it so I assume this is not what I should do.

@alimuzzaman
Copy link
Contributor

@antonkorotkov
You have to enable the Optimize WebP Versions setting in LiteSpeed Cache Settings >> Media tab

@antonkorotkov
Copy link
Contributor

Ok, it works for me. I see webp files on GCS

image

@JuanxCursed
Copy link

Hi, unfortunately this is not working for me, I just have the original files uploaded, none of then has webp version.

You have to enable the Optimize WebP Versions setting in LiteSpeed Cache Settings >> Media tab

Someone can provide me some assistance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants