# @nuxt/image

> Nuxt Image Module

Latest version **2.2.1** (published 2026-10-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nuxt/image
pnpm add @nuxt/image
yarn add @nuxt/image
bun add @nuxt/image
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2026-10-30 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.19.0 \|\| >=22.12.0 |
| Dependencies | 10 |
| Unpacked size | 155.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1550 |
| Maintainers | danielroe |

## Links

- npm: https://www.npmjs.com/package/@nuxt/image
- Repository: https://github.com/nuxt/image
- Homepage: https://image.nuxt.com
- Issues: https://github.com/nuxt/image/issues
- npm.io page: https://npm.io/package/@nuxt/image

## Dependencies (10)

- [h3](https://npm.io/package/h3.md) ^1.15.11
- [ufo](https://npm.io/package/ufo.md) ^1.6.4
- [defu](https://npm.io/package/defu.md) ^6.1.7
- [ohash](https://npm.io/package/ohash.md) ^2.0.12
- [pathe](https://npm.io/package/pathe.md) ^2.0.3
- [std-env](https://npm.io/package/std-env.md) ^4.3.0
- [knitwork](https://npm.io/package/knitwork.md) ^1.3.0
- [@nuxt/kit](https://npm.io/package/@nuxt/kit.md) ^4.6.3
- [image-meta](https://npm.io/package/image-meta.md) ^0.3.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.4.0

## Recent versions

- 2.2.1 (latest) — 2026-10-30
- 1.11.2 (1x) — 2026-10-30
- 2.0.0-alpha.1 (alpha) — 2025-05-05
- 1.0.0-rc.3 (rc) — 2023-10-02
- 2.2.0 — 2026-10-19
- 2.1.0 — 2026-07-28
- 2.0.0 — 2025-11-05
- 1.11.0 — 2025-07-30
- 1.10.0 — 2025-03-18
- 1.9.0 — 2025-01-08
- 1.8.1 — 2024-10-02
- 1.8.0 — 2024-08-29
- 1.7.1 — 2024-08-27
- 1.7.0 — 2024-05-03
- 1.6.0 — 2024-04-22
- … 49 more at https://npm.io/package/@nuxt/image/versions

## README

[![nuxt-image-social-card](https://github-production-user-asset-6210df.s3.amazonaws.com/904724/261574805-5af726c5-0113-4676-9ee9-c464393caee0.png)](https://image.nuxt.com)

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
[![Volta][volta-src]][volta-href]
[![nuxt.care health](https://img.shields.io/endpoint?url=https://nuxt.care/api/badge/image)](https://nuxt.care/?search=image)

# Nuxt Image

Plug-and-play image optimization for Nuxt apps. Resize and transform your images using built-in optimizer or your favorite images CDN.

- [📖 &nbsp;Read Documentation](https://image.nuxt.com)
- [👾 &nbsp;Playground](https://stackblitz.com/github/nuxt/image/tree/main/example)

## Features

- `<nuxt-img>` drop-in replacement for the native `<img>` element
- `<nuxt-picture>` drop-in replacement for the native `<picture>` element.
- Built-in image resizer and transformer with [unjs/ipx](https://github.com/unjs/ipx)
- Support 20+ providers
- Generate responsive sizes
- Optimize using modern formats such as webp and avif
- [... and more](https://image.nuxtjs.org)

### Installation

Install `@nuxt/image` dependency to your project:

```sh
npx nuxt module add image
```

## Nuxt 2

**Note:** This branch is for **Nuxt 3, 4 and 5** compatible module. Checkout [`v0` branch](https://github.com/nuxt/image/tree/v0) for **Nuxt 2** support. ([Announcement](https://github.com/nuxt/image/discussions/548))

### Contributing

- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run `pnpm dev:prepare` to generate type stubs.
- Use `pnpm dev` to start [playground](./playground) in development mode.

## 📑 License

Published under the [MIT License](./LICENSE)

<!-- Badges -->
[npm-version-src]: https://npmx.dev/api/registry/badge/version/@nuxt/image
[npm-version-href]: https://npmx.dev/package/@nuxt/image/v/latest

[npm-downloads-src]: https://npmx.dev/api/registry/badge/downloads/@nuxt/image
[npm-downloads-href]: https://npm.chart.dev/@nuxt/image

[license-src]: https://npmx.dev/api/registry/badge/license/@nuxt/image
[license-href]: https://npmx.dev/package/@nuxt/image

[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt
[nuxt-href]: https://nuxt.com

[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg
[volta-href]: https://volta.net/nuxt/image?utm_source=nuxt_image_readme

---
_Source: https://npm.io/package/@nuxt/image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
