# image-dimensions-browserify

> Repalce `getImageWidth`, `getImageHeight`, `getImageDimensions` with actual image sizes.

Latest version **1.0.1** (published 2014-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install image-dimensions-browserify
pnpm add image-dimensions-browserify
yarn add image-dimensions-browserify
bun add image-dimensions-browserify
```

Provides the command `image-dimensions-browserify`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2014-10-20 |
| First published | 2014-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Wyatt |
| Maintainers | mikewhy |
| Keywords | image, dimensions, browserify, browserify-transform, transform |

## Links

- npm: https://www.npmjs.com/package/image-dimensions-browserify
- Repository: https://github.com/mikew/image-dimensions-browserify
- Issues: https://github.com/mikew/image-dimensions-browserify/issues
- npm.io page: https://npm.io/package/image-dimensions-browserify

## Dependencies (2)

- [through](https://npm.io/package/through.md) ~2.3.4
- [image-size](https://npm.io/package/image-size.md) ^0.3.5

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-10-20
- 1.0.0 — 2014-10-20

## README

# image-dimensions-browserify

Have you ever needed to add an onLoad handler to an image so that your
JavaScript can be aware of the image dimensions?

Did that feel silly because the image was right there in the repository
and your CSS preprocessor could already do the same?

Given:

```javascript
var imageWidth = getImageWidth('some-picture.jpg');
var imageHeight = getImageHeight('some-picture.png');
var imageDimensions = getImageDimensions('some-picture.svg');
```

Result:

```javascript
var imageWidth = 800;
var imageHeight = 600;
var imageDimensions = {width: 800, height: 600};
```

---
_Source: https://npm.io/package/image-dimensions-browserify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
