Providers

Directus

Source
Nuxt Image with Directus integration.

To use this provider you only need to specify the base URL of your Directus instance.

nuxt.config.ts
export default defineNuxtConfig({
  image: {
    directus: {
      // This URL needs to include the final `assets/` directory
      baseURL: 'http://localhost:8055/assets'
    }
  }
})

Props

Supported NuxtImg props (such as width, height, quality, format, and fit) map to Directus transforms.

<NuxtImg
  provider="directus"
  src="ad514db1-eb90-4523-8183-46781437e7ee"
  height="512"
  width="200"
  fit="inside"
  quality="20"
/>

Modifiers

The modifiers object is used for Directus-specific features. All modifiers are optional.

Examples of Modifiers

<NuxtImg
  provider="directus"
  :modifiers="{
    withoutEnlargement: true,
    transforms: [['blur', 4], ['negate']]
  }"
/>

All Modifiers

withoutEnlargement
boolean
Disable automatically upscaling the image when true.
transforms
[string, ...any[]][]
A pipeline of transforms to tell Directus how to modify the image before sending.
Directus defaults ASSETS_TRANSFORM_MAX_OPERATIONS to 5. If you need more, it is recommended that you utilize a keyed transform. You can modify your Directus Configuration to accommodate more transforms if necessary.
key
string
Sets a unique identifier for a pre-configured Directus transform. When key is provided, do not combine it with other modifiers.
Copyright © 2026