Closed dreit-p closed 5 years ago
@dreit-p Hi, maybe you made a mistake in the example and it should be like that?
<img
srcset="/image-lg.jpg 1000w, /image-md.jpg 500w, /image-sm.jpg 250w"
sizes="100vw"
src="/image.jpg"
>
transform to
<picture>
<source
srcset="/image-lg.webp 1000w, /image-md.webp 500w, /image-sm.webp 250w"
sizes="100vw"
type="image/webp"
>
<img
srcset="/image-lg.jpg 1000w, /image-md.jpg 500w, /image-sm.jpg 250w"
sizes="100vw"
src="/image.jpg"
>
</picture>
Yes. Just i showed current result of the plugin and needed results. But yes, you got me. :)
@dreit-p publish v1.3.0
@Scrum , thanks a lot :)
Can you add the ability to transfer additional attributes to the generated image, such as data-srcset, sizes, data-src and other typical attrs for images?
Now it's:
But i need like this: