# Install image-size with npm

get dimensions of any image file. Version 2.0.2 via npm; verified 2025-04-02.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g image-size
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:image-size
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/image-size>
- **Version:** 2.0.2
- **Source summary:** get dimensions of any image file
- **Homepage:** <https://github.com/image-size/image-size#readme>
- **Repository:** <https://github.com/image-size/image-size>
- **Upstream docs:** <https://github.com/image-size/image-size#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/image-size/-/image-size-2.0.2.tgz>
- **Issue tracker:** <https://github.com/image-size/image-size/issues>
- **Published:** 2025-04-02T14:22:29.940Z
- **Last updated:** 2025-04-02T14:22:29.940Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- image-size (cli)
- image-size (alias)

## Build dependencies

- @biomejs/biome
- @types/glob
- @types/node
- c8
- glob
- ts-node
- tsup
- typedoc
- typescript

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.2
- Package-manager updated: 2025-04-02
- Local data: ok
- Upstream repository: https://github.com/image-size/image-size
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for image-size. 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.0.2, Legacy: 1.2.1
- **Version Count:** 71
- **Maintainers:** netroy
- **Author:** netroy
- **Publisher:** netroy
- **Engines:** Node: >=16.x
- **Integrity:** sha512-IRqXKlaXwgSMAMtpNzZa1ZAe8m+Sa1770Dhk8VkSsP9LS+iHD62Zd8FQKs8fbPiagBE7BzoFX23cxFnwshpV6w==
- **Shasum:** 84a7b43704db5736f364bf0d1b029821299b4bdc
- **Unpacked Size:** 378,406
- **File Count:** 0
- **Created At:** 2013-07-02T01:38:44.191Z
- **Latest Published At:** 2025-04-02T14:22:29.940Z
- **Modified At:** 2025-04-02T14:30:29.879Z


## Related links

- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched curated package taxonomy and local package facts.
- [image-dimensions](https://www.automicvault.com/pkg/npm/image-dimensions/) - Both packages work with overlapping file formats or content types. Shared terms: dimensions, get, height, image, resolution.
- [ts-images](https://www.automicvault.com/pkg/npm/ts-images/) - Both packages work with overlapping file formats or content types. Shared terms: avif, bmp, gif, image, jpeg.
- [asciify-image](https://www.automicvault.com/pkg/npm/asciify-image/) - Both packages work with overlapping file formats or content types. Shared terms: gif, image, size, width.

## Sources

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