# react-native-exif-ll

> Exif reader for react-native support for ios and android

Latest version **0.1.8** (published 2018-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-exif-ll
pnpm add react-native-exif-ll
yarn add react-native-exif-ll
bun add react-native-exif-ll
```

## 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.8 |
| Published | 2018-02-22 |
| First published | 2018-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Francisco Sanchez |
| Maintainers | livelink |
| Keywords | react-native, react-component, ios, android, exif |

## Links

- npm: https://www.npmjs.com/package/react-native-exif-ll
- Repository: https://github.com/livelink/react-native-exif
- Issues: https://github.com/livelink/react-native-exif/issues
- npm.io page: https://npm.io/package/react-native-exif-ll

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.8 (latest) — 2018-02-22
- 0.1.7 — 2018-02-22

## README

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

NB This is a fork of https://github.com/francisco-sanchez-molina/react-native-exif which adds backwards compatibility with react-native < 0.47.
This will not be maintatined once this PR https://github.com/francisco-sanchez-molina/react-native-exif/pull/21 has been merged



## Installation
```sh
yarn add react-native-exif
```
or
```sh
npm install react-native-exif --save
```

## Usage

### getExif

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

...

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))
...
```

Version 0.1.0 add react-native 0.40 support

## 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 -->
| [<img src="https://avatars3.githubusercontent.com/u/9049706?v=4" width="100px;"/><br /><sub>francisco-sanchez-molina</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>Kesha Antonov</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>Olivier Collet</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>hygkui</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>EurekaO</sub>](https://github.com/eurekao)<br />[💻](https://github.com/psm1984/react-native-exif/commits?author=eurekao "Code") |
| :---: | :---: | :---: | :---: | :---: |
<!-- ALL-CONTRIBUTORS-LIST:END -->

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

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