image
image copied to clipboard
How do I specify in <nuxt-picture> multiple formats from the backend?
trafficstars
Hi, I have an object from the backend that returns me image in multiple formats, like jpg, webp. I need then to create a tag like:
<picture>
<source type="image/webp" :srcset="image.webp_format">
<source type="image/jpeg" :srcset="image.jpg_format">
<img :src="image.jpg_format" alt="">
</picture>
How I can do this with
I also want to be able to use lazy loading and preload features when needed.