-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Webp image format enhancement #1168
Comments
I'm not sure webp has a enough market penetration to make it worth supporting natively. Maybe someone could create a plugin? |
Market penetration of WebP probably isn't too strong, but browser support is at over 72% globally which is actually quite decent. |
I don't know how they calculate their stats on caniuse.com but Chrome+Opera+Android doesn't look like 72% to me, anyway been marked as enhancement. |
@flaviocopes caniuse.com probably get pretty good statistics, since they're based on statcounter.com. But there's a difference between global and local stats, I only get 52% support for Sweden, for instance. If we wan't to get WebP support for the |
I would like to have WebP support as an option: I have a client's site with 64% of views coming from compatible browsers, most of them mobile. |
Our image library doesn't really support this, if we can change the library we might be able to revisit this. |
Mobile first means WebP is used by nearly every Android phone which means more than 80% of mobile devices. And Google ranks fast mobile pages better that was one reason for me to switch from Wordpress to Grav. By the way Grav rocks an you did a great job! To further improve pagespeed it would be great getting native or plugin support for webp to avoid deep server configuration issues. The php image gd lib is able to create webp so it should be possible to create the images using php. |
The latest version of Grav 1.7 will have support for |
And how it could be now used in real world example with fallbacks?
|
#may be that's wrong; if so forgive me.
Would it be possible to add
webp
image format to the native GRAV caching media process?By that I mean that when there is a
webp
file, it's cached like for ajpeg
one.I added a webp setting in a
media.yaml
file inconfig
like in the docs, but I can't see anything.The idea is to be able to have structures like:
for browser that accept
webp
format.Thanks in advance
The text was updated successfully, but these errors were encountered: