I would like to ask the community and experienced Kirby developers, how they deal with WebP in Kirby and what best practices they recommend?
I took a look at the documentation of Kirby which shows, WebP as file format is supported, yet to my understanding, it doesn’t have a built in way to already convert like JPG uploads to WebP. That’s where the plugins seem to come in.
I found two plugins: Kirby 3 WebP by HashandSalt and Kirby 3 WebP by Felix Haeberle.
My goal would be to be able to upload JPG/PNG and get them converted to WebP additionally, but still be able to define my HTML picture tags manually and choose to output WebP and original file format seized fallbacks. Like using the parameters on image()
and url()
or something similar to choose the file format. Yet, looking at those two plugins, I don’t see how that would be possible.
Additionally, at some point the same question will come up with the AFIV format.