Skip to content

tjamescouch/react-native-exif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7122ca0 Β· Feb 6, 2020

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 50.6%
  • Objective-C 39.3%
  • JavaScript 6.7%
  • Ruby 3.4%