npm package: @qeepsake/react-native-image-exif
Description: Exif reader for react-native support for ios and android
Author: Luke Farrell
Latest version: 1.0.1

# React Native Exif
[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors) <br />
>An image exif reader

## Installation
```sh
yarn add @qeepsake/react-native-image-exif
```
or
```sh
npm install @qeepsake/react-native-image-exif
```

## Usage

### getExif

```javascript
import Exif from 'react-native-exif'

...

Exif.getExif('/sdcard/tt.jpg')
    .then(msg => console.warn('OK: ' + JSON.stringify(msg)))
    .catch(msg => console.warn('ERROR: ' + msg))

...

Exif.getExif('content://media/external/images/media/111')
    .then(msg => console.warn('OK: ' + JSON.stringify(msg)))
    .catch(msg => console.warn('ERROR: ' + msg))

...

Exif.getExif('assets-library://asset/asset.JPG?id=xxxx&ext=JPG')
    .then(msg => console.warn('OK: ' + JSON.stringify(msg)))
    .catch(msg => console.warn('ERROR: ' + msg))

```
#### Exif values

Value |
--- |
ImageWidth |
ImageHeight |
Orientation |
originalUri |
exif|

### getLatLong

Fetch geo coordinates as floats.

```javascript
...
Exif.getLatLong('/sdcard/tt.jpg')
    .then(({latitude, longitude}) => {console.warn('OK: ' + latitude + ', ' + longitude)})
    .catch(msg => console.warn('ERROR: ' + msg))
...
```

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars3.githubusercontent.com/u/9049706?v=4" width="100px;"/><br /><sub><b>francisco-sanchez-molina</b></sub>](https://github.com/francisco-sanchez-molina)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=francisco-sanchez-molina "Code") | [<img src="https://avatars2.githubusercontent.com/u/11584712?v=4" width="100px;"/><br /><sub><b>Kesha Antonov</b></sub>](https://github.com/kesha-antonov)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=kesha-antonov "Code") | [<img src="https://avatars1.githubusercontent.com/u/95189?v=4" width="100px;"/><br /><sub><b>Olivier Collet</b></sub>](http://ocollet.com)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=ocollet "Code") | [<img src="https://avatars0.githubusercontent.com/u/12526?v=4" width="100px;"/><br /><sub><b>hygkui</b></sub>](https://github.com/hygkui)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=hygkui "Code") | [<img src="https://avatars2.githubusercontent.com/u/1276585?v=4" width="100px;"/><br /><sub><b>EurekaO</b></sub>](https://github.com/eurekao)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=eurekao "Code") | [<img src="https://avatars0.githubusercontent.com/u/5035660?v=4" width="100px;"/><br /><sub><b>Colin Basnett </b></sub>](https://github.com/cmbasnett)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=cmbasnett "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!