swiftimg

Image hosting for Eleventy — remote images without the plugin

Eleventy's `@11ty/eleventy-img` plugin is excellent for transforming in-repo images at build time. swiftimg covers the case where you'd rather not download, resize, and recommit every image every time it changes.

Try swiftimg freeSee the API

Heads-up

If your image volume is small and stable, `@11ty/eleventy-img` is the simpler choice. swiftimg is best for growing libraries or shared image stores across multiple sites.

Step by step

  1. 1. Upload to swiftimg

    Use the CLI or /upload to get a URL.

    Shell
    swiftimg upload hero.jpg
  2. 2. Reference the URL from Markdown or Nunjucks

    Eleventy templates accept absolute URLs as a drop-in.

    Markdown
    ![Hero](https://i.swiftimg.com/abc123.jpg)
  3. 3. Build a picture-element shortcode (optional)

    A small Nunjucks/JS shortcode can emit a responsive `<picture>` with swiftimg variants on the Developer plan.

Eleventy (11ty) — FAQ

Will the eleventy-img cache still help?

It caches transforms of in-repo images. For remote swiftimg URLs, swiftimg's own global cache replaces that.

Can I keep some images in /img and others on swiftimg?

Yes — Eleventy treats every URL as a string. Mix freely.

Does this work with the @11ty/eleventy-img plugin?

The plugin operates on local files; for remote sources, just point your `<img>` directly at swiftimg.

See also

Ready to host your Eleventy (11ty) images?

Start free, then unlock the full API, transforms, signed URLs, and a custom domain on the Developer plan.