# Install image-dimensions with npm

Get the dimensions of an image. Version 2.5.1 via npm; verified 2026-05-12.

## Install

```sh
sudo av install npm:image-dimensions
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g image-dimensions
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:image-dimensions
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/image-dimensions>
- **Version:** 2.5.1
- **Source summary:** Get the dimensions of an image
- **Homepage:** <https://github.com/sindresorhus/image-dimensions#readme>
- **Repository:** <https://github.com/sindresorhus/image-dimensions>
- **Upstream docs:** <https://github.com/sindresorhus/image-dimensions#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/image-dimensions/-/image-dimensions-2.5.1.tgz>
- **Issue tracker:** <https://github.com/sindresorhus/image-dimensions/issues>
- **Published:** 2026-05-12T15:24:23.399Z
- **Last updated:** 2026-05-12T15:24:23.399Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- image-dimensions (cli)
- image-dimensions (alias)

## Build dependencies

- ava
- typescript
- xo

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.1
- Package-manager updated: 2026-05-12
- Local data: ok
- Upstream repository: https://github.com/sindresorhus/image-dimensions
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for image-dimensions. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.5.1
- **Version Count:** 8
- **Maintainers:** sindresorhus
- **Author:** Sindre Sorhus
- **Publisher:** sindresorhus
- **Engines:** Node: >=18
- **Funding:** <https://github.com/sponsors/sindresorhus>
- **Integrity:** sha512-It7CkTNp7IYA8jhvGgz8K18OAbHF3/Juk8RNEyTyMFfolJOIU1Y2wGDnzDQPbGCjyxVF/++pwIZE0BKJUEOb1g==
- **Shasum:** cb9e2a959aa4a0a2938079f50e7129f6354fbf21
- **Unpacked Size:** 19,454
- **File Count:** 0
- **Created At:** 2015-04-14T05:36:16.051Z
- **Latest Published At:** 2026-05-12T15:24:23.399Z
- **Modified At:** 2026-05-12T15:24:23.507Z


## Related links

- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [image-size](https://www.automicvault.com/pkg/npm/image-size/) - Both packages work with overlapping file formats or content types. Shared terms: dimensions, get, height, image, resolution.
- [image-data-uri](https://www.automicvault.com/pkg/npm/image-data-uri/) - Both packages work with overlapping file formats or content types. Shared terms: data, image.
- [imagemin-cli](https://www.automicvault.com/pkg/npm/imagemin-cli/) - Both packages work with overlapping file formats or content types. Shared terms: cli-app, get, image, png, uint8array.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
