-
-
Notifications
You must be signed in to change notification settings - Fork 36
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 of auto converting to WEBP #185
Comments
Would be great indeed. |
Seems like it'd be possible. So if you do |
Yes, it will be great |
So I started to work on this when I realized it probably can't be done the right way. If I did it as I was thinking of doing it, it'd break when a site is static cached, or otherwise the output of the Twig template is cached. The reason why services like Imgix can do it is they respond to the actual request for the file itself. So if you request: ...the webserver can look at the However, the Image Optimize documentation mentions how you can do the same thing on your server that Imgix and other such services do: https://nystudio107.com/docs/image-optimize/Using.html#image-variants |
Thanks for your explanation, I am using Cloudfront with AWS image service. https://aws.amazon.com/solutions/serverless-image-handler/ There is this PR available at the moment: aws-solutions/serverless-image-handler#152 |
Could you add feature automatically convert JPEG to WEBP if the client browser it's supported? Like it works in IMGIX with format=auto. (AWS Serverless Image Handler already supports this feature)
I know what possible to use
The text was updated successfully, but these errors were encountered: