# exif-size-loader

> EXIF metadata and size loader module for Webpack.

Latest version **0.4.0** (published 2019-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install exif-size-loader
pnpm add exif-size-loader
yarn add exif-size-loader
bun add exif-size-loader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2019-12-17 |
| First published | 2017-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.3.0 <5.0.0 \|\| >=5.10 |
| Dependencies | 4 |
| Unpacked size | 863.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alessandro Arnodo |
| Maintainers | jbrialon, vesparny |
| Keywords | image, photo, metadata, exif, webpack, loader |

## Links

- npm: https://www.npmjs.com/package/exif-size-loader
- Repository: https://github.com/vesparny/exif-size-loader
- Homepage: https://github.com/vesparny/exif-size-loader#readme
- Issues: https://github.com/vesparny/exif-size-loader/issues
- npm.io page: https://npm.io/package/exif-size-loader

## Dependencies (4)

- [exif](https://npm.io/package/exif.md) ^0.6.0
- [node-eval](https://npm.io/package/node-eval.md) ^1.1.0
- [node-iptc](https://npm.io/package/node-iptc.md) ^1.0.4
- [image-size](https://npm.io/package/image-size.md) ^0.5.1

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2019-12-17
- 0.3.0 — 2018-12-14
- 0.2.3 — 2017-03-21
- 0.2.2 — 2017-03-18
- 0.2.1 — 2017-03-18
- 0.2.0 — 2017-03-18

## README

EXIF-Loader
====

> Extract EXIF- & size data from your JPGs during build-time.

## Install

```
npm install --save-dev exif-size-loader
```

## Usage

You can use the EXIF-loader as a standalone loader:

**webpack.config.js**
```js
module.exports = {
  module: {
    rules: [{
      test: /\.jpg$/,
      use: ['exif-size-loader']
    }]
  }
}
```

**modules/a.js**
```js
import { exif } from './some-image.jpg';

```

You can also use the load in tandem with the [url-loader](https://github.com/webpack-contrib/url-loader).

**webpack.config.js**
```js
module.exports = {
  module: {
    rules: [{
      test: /\.jpg$/,
      use: ['exif-size-loader', 'url-loader']
    }]
  }
}
```

You can also use the load in tandem with the [file-loader](https://github.com/webpack-contrib/file-loader).

**webpack.config.js**
```js
module.exports = {
  module: {
    rules: [{
      test: /\.jpg$/,
      use: ['exif-size-loader', 'file-loader']
    }]
  }
}
```

**modules/b.js**
```js
import { exif, iptc, file } from './some-image.jpg';

const { imageWidth } = exif.image;

export default function () {
    return (<figure>
        <img src={file} width={imageWidth} alt="" />
        <figcaption>{object_name}</figcaption>
    </figure>);
}
```

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