image-size
npmv2.0.2TypeScriptget dimensions of any image file
Overview
image-size is an npm package that get dimensions of any image file. The latest version is 2.0.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get dimensions of any image file and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of image-size.
Dependencies
Dev (9)
Used by
Popular packages that depend on image-size.
Alternatives to image-size
get dimensions of any image buffer
Port of C's wcwidth() and wcswidth()
Zero-dependency, DOM-free, pure predicate for detecting unsafe strings across HTML, XML, SVG, SQL, SHELL, and REGEX contexts
Canvas graphics API backed by Cairo
Blazing-fast pixel-by-pixel image comparison with block-based optimization. 1.5x times faster than pixelmatch
Determine the East Asian Width of a Unicode character
Graphical primitives for visualization, such as lines and areas.
Serialize Canvas path commands to SVG.
Get the visual width of a string - the number of columns required to display it
Parse a PNG
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Frequently installed together
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
yargs the modern, pirate-themed, successor to optimist.
Higher-level content negotiation
Get details about the current Continuous Integration environment
TypeScript definitions for ws
A JavaScript parser built from the Hermes engine
invariant
High performance middleware framework
flow typed nullthrows
🚇 Source map generator for Metro.
🚇 Module required for evaluating Metro bundles.
Version history
| Version | Published | License |
|---|---|---|
| 1.2.1 | 1 year ago | MIT |
| 2.0.2latest | 1 year ago | MIT |
| 2.0.1 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 2.0.0-beta.4 | 1 year ago | MIT |
| 1.2.0 | 1 year ago | MIT |
| 2.0.0-beta.2 | 2 years ago | MIT |
| 1.1.1 | 2 years ago | MIT |
| 1.1.0 | 2 years ago | MIT |
| 2.0.0-beta.1 | 2 years ago | MIT |
| 2.0.0-beta | 2 years ago | MIT |
| 2.0.0-alpha.2 | 2 years ago | MIT |
| 2.0.0-alpha.1 | 3 years ago | MIT |
| 1.0.2 | 4 years ago | MIT |
| 1.0.1 | 4 years ago | MIT |
| 1.0.0 | 5 years ago | MIT |
| 0.9.7 | 5 years ago | MIT |
| 0.9.6 | 5 years ago | MIT |
| 0.9.5 | 5 years ago | MIT |
| 0.9.4 | 5 years ago | MIT |
Maintainers
Frequently asked questions
How do I install image-size?
Run `npm install image-size` to add image-size to your npm project.
What license is image-size released under?
image-size is distributed under the MIT license.
How popular is image-size?
image-size has approximately 0 downloads per week and 1 known dependent packages.