This plugin, is the simplest way to get exif data of images at Cordova platform (Phonegap)
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 10 commits behind guilhermefarias:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Cordova Exif

This plugin, is the simplest way to get exif data of images at Cordova platform (Phonegap)

Getting Started

Import the source

<script type="text/javascript" src="cordova-exif.js"></script>

Pass imageURI and get the object with EXIF information

CordovaExif.readData(imageURI, function(exifObject) {

OBS: To get the Exif data, you application need to have access permission to the file. If you are using Cordova version 3.3 or later, install the following plugins:

cordova plugin add
cordova plugin add org.apache.cordova.file

What is Exif?

Is a standard followed by manufacturers of digital cameras that record information about the technical conditions of image capture on the image file itself in the form of tagged metadata.

If you want know more about technical information, see these links:

Example of Exif Data on photo

Key Value
Make Canon
Model Canon EOS 60D
DateTime 2014:02:16 15:00:00
XResolution 240
YResolution 240
Resolution Unit Inch
FNumber f/8.0
Focal Length 100 mm
GPS Latitude -8.053889
GPS Longitude -34.880833
Exposure Program Aperture priority
Flash Flash fired, compulsory flash mode
Metering Mode Pattern
Exposure Time 0.004
Shutter SpeedValue 7.965784
Custom Rendered Normal process
White Balance Auto white balance
ISO Speed Ratings (100)
Lens Model EF100mm f/2.8L Macro IS USM
Lens Serial Number 0000023967
Lens Specification (100,100,0,0)
This is just somes examples, has much more informations. ...

Complete Example

This example show how its simple get exif information of photo taken by a smartphone.

var options = {
	quality: 90,
	sourceType: 2,
	destinationType: 1,

function onSuccess(imageURI) {
	CordovaExif.readData(imageURI, function(exifObject) {

function onFail(message) {
	console.log('Failed because: ' + message);
};, onFail, options);



Created by Guilherme Farias, a web developer from Brazil.


Cordova Exif is released under the terms of the MIT license.