Integration between Shopify CDN and Nuxt Image.
To use this provider, you just need to pass the image URL from the Storefront API response to the src prop.
Configure the provider in your nuxt.config.ts (optional):
export default defineNuxtConfig({
  image: {
    shopify: {
      baseURL: 'https://cdn.shopify.com/',
    }
  }
})
The Shopify CDN provider supports the following default modifiers:
widthheightformatqualityAdditionally, the following modifiers are supported:
padColorcropcropLeftcropTopcropWidthcropHeightThe format modifier is supported.
<NuxtImg src="..." width="300" height="300" modifiers="{ format: 'gif' }" />
The quality modifier is supported.
<NuxtImg src="..." width="300" height="300" modifiers="{ quality: 10 }" />
The crop modifier is supported with the following values:
centertopbottomleftrightregion<NuxtImg src="..." width="300" height="300" modifiers="{ crop: 'center' }" />
The crop modifier can also be used to crop an image to a specific region.
<NuxtImg
  src="..." 
  width="300" 
  height="300" 
  modifiers="{ 
    crop: 'region', 
    cropLeft: 100, 
    cropTop: 100, 
    cropWidth: 450, 
    cropHeight: 300
  }"
/>
The padColor modifier can be used to pad an image with a background color. Must be a hex color value.
<NuxtImg src="..." width="300" height="300" modifiers="{ padColor: 'ff0000' }" />