# image-size — card for AI agents

Detect and retrieve dimensions of image files without downloading entire file.

Category: Files, images and media · npm package `image-size` · latest version 2.0.4 (checked 2026-11-01)
Install: `npm install image-size`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 61.7 (#901 of all tools, 52 of 281 in its category)
- Used in 18 public projects set up for AI coding agents (0.3%)
- Downloads last week: 40,319,984 (as of 2026-11-24), +33.5% over 4 weeks

## Often used with
remark-gfm 53.8%, rehype-slug 50.0%, clsx 57.7%, lint-staged 42.3%, Next.js 53.8%, React 73.1%

## Checked alternatives (same job)
- Sharp: https://agentgid.com/tools/sharp/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/image-size/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
