0.5.0 • Published 3 years ago

react-native-exif v0.5.0

Weekly downloads
844
License
MIT
Repository
github
Last release
3 years ago

React Native Exif

All Contributors

An image exif reader

Installation

yarn add react-native-exif
react-native link

or

npm install react-native-exif --save
react-native link

Usage

getExif

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.

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

francisco-sanchez-molina💻Kesha Antonov💻Olivier Collet💻hygkui💻EurekaO💻Colin Basnett 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

0.5.0

3 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.8

6 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago