image-size/image-size
Node module for detecting image dimensions observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 85
- Release rhythm 40
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17.5
- age_days: 4811
- days_rel: 518
- days_push: 91
- n_releases_24m: 5
Adoption not part of the score
2230 stars · 238 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A fast, zero-dependency Node.js library that detects image dimensions by reading only image headers, supporting all major formats including JPEG, PNG, GIF, WebP, HEIC, SVG, and TIFF. It works with both files and buffers, offers ESM and CommonJS support, and includes TypeScript types.
Use cases
- get width and height of an image file in node
- detect image dimensions from a buffer or stream
- read image resolution without loading the whole file
- validate uploaded image sizes in a web server
- check dimensions of jpeg png webp heic files
- batch measure image dimensions from a directory
When to choose
- you need lightweight, dependency-free dimension detection in Node.js
- you only need width/height, not full image decoding
- you work with buffers from streams or network requests
- you need broad format coverage including HEIC, JPEG-XL, and KTX
When to avoid
- you need to decode, resize, or transform images (use sharp instead)
- you need a maintained GitHub repo - it is archived and development moved to Codeberg
- you need browser/DOM-based image handling
- you need EXIF or other metadata beyond dimensions
Facets
library · maturity maintenance
image-processing parser image-processing files developer-tools cross-platform image-dimensions image-metadata zero-dependency typescript archived-on-github nodejs
2 sources
- readme: https://github.com/image-size/image-size · fetched 2026-08-28 · 042cc037344f
- registry_npm: https://registry.npmjs.org/image-size · fetched 2026-08-29 · c19def14e448
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| image-size/image-size | main | 10 |
For agents
markdown · JSON · MCP: product_card(name="image-size/image-size")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem