NuxtImage
up:: Nuxt ⚐
A module for nuxt.
NuxtImage and NuxtPicture
nuxt-img replaces the html <img> tag. As far as I can tell, using nuxt-picture (which corresponds to the <picture> tag) is always better.
Advantags of picture:
- serve modern formats like webp with fallbacks
- choose a fitting size from multiple sources
NuxtImage versus v-sharp
NuxtImage uses unjs/ipx under the hood. ipx uses sharp as well. So NuxtImage can do everything that v-sharp can do and more.