Javascript EXIF Reader - jQuery Plugin

This is a test of a jQuery plugin utilizing the Javascript EXIF reader originally posted here.

Download the plugin: jquery.exif.js
Make sure you load jQuery before loading jquery.exif.js.
Go here for more info and comments

Click the images below to see it in action.

$("#img1").click(function() {
	alert("Taken with a " + $(this).exif("Make") + " " + $(this).exif("Model") + " on " + $(this).exif("DateTimeOriginal"));
	// exif(strTagName) returns a string with value for the tag [strTagName]
});

$("#img2").click(function() {
	alert($(this).exifPretty());
	// exifPretty() returns a string with all tags and values, one tag per line
});


$("#img3").click(function() {
	alert($(this).exifAll());
	/* Should alert the string "[object Object]" or something similar.
	 * exifAll() returns an object holding all tags and their values
	 * {
	 *    "Make" : "NIKON",
	 *    "Model" : "D100",
	 *    ...
	 * }
 	 */ 
});


$("#img4").click(function() {
	alert("Longitude: " + $(this).exif("GPSLongitude") + ", latitude: " + $(this).exif("GPSLatitude"));
	// GPS data test
});
 


Copyright 2008-2009 Jacob Seidelin - Privacy Policy - Some icons by Bruno Maia, IconTexto