Providers

Flyimg

Source
Nuxt Image has first class integration with Flyimg.

Integration between Flyimg and the image module.

Flyimg is a self-hosted, open-source image processing server built on ImageMagick. It accepts images from a source URL and applies transformations on the fly, caching results for subsequent requests. A managed SaaS version is also available at flyimg.io.

Setup

Self‑hosted

baseURL points to your Flyimg server. If you use relative image paths (e.g. <NuxtImg src="/images/photo.jpg" />), also set sourceURL to your website's public URL so that Flyimg can fetch the source image — it requires an absolute URL. Absolute src values (e.g. from a CDN) are passed through as-is and sourceURL is ignored for those.

nuxt.config.ts
export default defineNuxtConfig({
  image: {
    flyimg: {
      // URL of your Flyimg server
      baseURL: 'https://flyimg.example.com',
      // Public URL of your website — only needed for relative image paths
      sourceURL: 'https://www.example.com',
    }
  }
})
nginx users: nginx's default merge_slashes on setting collapses consecutive slashes in URLs, which corrupts the embedded https:// in Flyimg request paths (e.g. https://flyimg.example.com/upload/-/https://www.example.com/photo.jpg). Add merge_slashes off; to the server block of your nginx config when reverse-proxying requests to Flyimg.

Flyimg SaaS

After creating an instance you receive a unique subdomain (e.g. img-abc123.flyimg.io):

nuxt.config.ts
export default defineNuxtConfig({
  image: {
    flyimg: {
      // Unique subdomain provided by Flyimg SaaS
      baseURL: 'https://img-abc123.flyimg.io',
      // Public URL of your website — only needed for relative image paths
      sourceURL: 'https://www.example.com',
    }
  }
})

Options

OptionDefaultDescription
baseURLRequired. URL of your Flyimg server or SaaS instance.
sourceURLPublic base URL of your website. Only used for relative image paths — prefixed to make them absolute before passing to Flyimg. Absolute src values are unaffected.
processTypeuploadFlyimg process type: upload (serve the image) or path (return the path as text).

Modifiers

In addition to the standard width, height, quality, format, and fit modifiers, the Flyimg provider exposes the full range of Flyimg URL options.

fit

Nuxt Image valueFlyimg behaviour
contain / insideScale to fit within the target rectangle preserving aspect ratio (Flyimg default)
coverCrop to fill the rectangle (c_1)
fillStretch to fill without preserving aspect ratio (par_0)
outside⚠️ Unsupported — ignored (dev-time warning emitted)

Additional Flyimg modifiers

<NuxtImg
  provider="flyimg"
  src="/photo.jpg"
  width="800"
  :modifiers="{
    gravity: 'NorthEast',
    sharpen: '0x5',
    background: '#ffffff',
    strip: false,
  }"
/>

Refer to the Flyimg URL options documentation for the full list of supported parameters.

Copyright © 2026