Giter Site home page Giter Site logo

leanvanheerden / cordova-exif Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leandroz/cordova-exif

0.0 1.0 0.0 16 KB

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

License: Other

JavaScript 100.00%

cordova-exif's Introduction

Cordova Exif

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

Getting Started

Installing

cordova plugin add https://github.com/leandroz/cordova-exif.git --save

Usage

Pass imageURI and get the object with EXIF information

CordovaExif.readData(imageURI, function(exifObject) {
  console.log(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 org.apache.cordova.camera
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) {
		console.log(exifObject);
	});
};

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

navigator.camera.getPicture(onSuccess, onFail, options);

About

Who?

Created by Guilherme Farias, a web developer from Brazil.

License?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.