I can't get webP images going on my site. I am using lazyloading, lots of different srcset sizes and progressive jpeg rendering. Is anyone having an Idea, why webp images do not even show up? (not to mention in the wrong order.
{% for image in p.media.images %}
<picture>
{% set service_image = image.derivatives(750,2900,700).enableProgressive().sizes('100vw') %}
<img class="lazyload"
data-src="{{ service_image.url(false) }}"
data-srcset="{{ service_image.srcset(false) }}"
sizes="{{ service_image.sizes(false)}}">
</picture>
{% endfor %}
output is as desired for jpgs, but no webp images anywhere.
<picture>
<img class=" lazyloaded" data-src="image.jpg"
data-srcset="image750w.jpg 750w, image1450w.jpg 1450w, image2150w.jpg 2150w, image2850w.jpg 2850w, image.jpg 5359w"
sizes="100vw"
srcset="image750w.jpg 750w, image1450w.jpg 1450w, image2150w.jpg 2150w, image2850w.jpg 2850w, image.jpg 5359w"src="image.jpg">
</picture>
I think the documentation is not updated yet, could that be? I couldn't find anything on webP images in the media section.