# react-exif-orientation-img

> img element wrapper component for React that understands EXIF orientation information and corrects it using CSS transforms.

Latest version **0.1.5** (published 2017-07-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-exif-orientation-img
pnpm add react-exif-orientation-img
yarn add react-exif-orientation-img
bun add react-exif-orientation-img
```

## 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.1.5 |
| Published | 2017-07-18 |
| First published | 2017-07-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | rricard |
| Keywords | react, react-dom, exif, orientation, image |

## Links

- npm: https://www.npmjs.com/package/react-exif-orientation-img
- Homepage: https://github.com/rricard/react-exif-orientation-img
- Issues: https://github.com/rricard/react-exif-orientation-img/issues
- npm.io page: https://npm.io/package/react-exif-orientation-img

## Dependencies (2)

- [exif-js](https://npm.io/package/exif-js.md) ^2.2.1
- [exif2css](https://npm.io/package/exif2css.md) ^1.2.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.5 (latest) — 2017-07-18
- 0.1.4 — 2017-07-18
- 0.1.3 — 2017-07-18
- 0.1.2 — 2017-07-18
- 0.1.1 — 2017-07-18
- 0.1.0 — 2017-07-18

## README

# react-exif-orientation-img

`img` element wrapper component for React that understands EXIF orientation information and corrects it using CSS transforms.

![Example](example.png)

## Installation

```sh
npm install --save react-exif-orientation-img
# or
yarn add react-exif-orientation-img
```

## Usage

Instead of using an `img` element, use this component instead:

```js
import React from 'react';
import ExifOrientationImg from 'react-exif-orientation-img'

const MyComponent = () =>
  <ExifOrientationImg
    src="https://github.com/recurser/exif-orientation-examples/blob/master/Portrait_8.jpg?raw=true"
    alt="A waterfall"
  />
```

All properties will be cleanly passed to the img element including `style` and `onLoad` that this component uses under the hood. However, **keep in mind that you should be aware that width/height and other dimension manipulations may not work as expected**.

## Development

yarn is preferred to work with this project.

### Dev server

Just start a server with `yarn start`.

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