# exif-orientation-lite

> a tiny library 1k that only bothers with exif orientation

Latest version **1.0.1** (published 2018-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install exif-orientation-lite
pnpm add exif-orientation-lite
yarn add exif-orientation-lite
bun add exif-orientation-lite
```

Provides the command `exif-orientation-lite`.

## 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 | 2018-02-12 |
| First published | 2017-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | 'Dominic Tarr' |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/exif-orientation-lite
- Repository: https://github.com/dominictarr/exif-orientation-lite
- Issues: https://github.com/dominictarr/exif-orientation-lite/issues
- npm.io page: https://npm.io/package/exif-orientation-lite

## Recent versions

- 1.0.1 (latest) — 2018-02-12
- 1.0.0 — 2017-05-18

## README

# exif-orientation-lite

a tiny library 1k that only bothers with exif orientation

yeah there where a bunch of other exif libraries, but they
are all complicated and _we don't actually care_ about exif,
we just want images to be the right way up!

## example

``` js
var getOrientation = require('exif-orientation-lite')
var i = getOrientation(require('fs').readFileSync(image_jpg))

//machine readable orientation descriptions
console.log(require('exif-orientation-lite/machine')[i])

//human readable orientation descriptions
console.log(require('exif-orientation-lite/human')[i])
```

## command

for testing you can also `install -g exif-orientation-lite`
and then do `exif-orientation-lite images*.jpg`
a list of files and their orientations will be output.

## License

MIT

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