Adds the @nuxt/image module but configured to utilize the image processor used by our Umbraco backend (ImageSharp). Also adds extended components expanding the ones provided by @nuxt/image:
NuxtPictureExt- (
NuxtImgExtcould/should be added as well down the line, but doesn't currently exist)
These components should for the most part work as their counter-components with a few added nicities to match our setup.
So the @nuxt/image documentation should be highly usable.
Supports the base functionality of NuxtPicture so generally follow its documentation. It also adds classes to the component following our base naming styles (c-nuxt-picture-ext, c-nuxt-picture-ext--is-loading, c-nuxt-picture-ext--is-loaded and c-nuxt-picture-ext__img) which can be used for styling purposes. Further, and through these classes and inline styles, some basis styles are added including:
- Aspect ratio when it is needed
- Automatically setting the right
object-fiton the image object-positionon the image when arxyvalue is set in the src url paramssizes-property conversion transforming strings like100vw >=1080:800pxto something@nuxt/imagecan use as well as spreading out thevw-rules to all larger screen sizes defined innuxt.config.js.