EXIF Data
Display EXIF metadata from uploaded JPEG images, including camera model, date taken, and GPS coordinates.
Drag & drop JPEG images here
Select a JPEG image to view its EXIF data...
var uploader = new MultipleUpload(el, {
uploadUrl: '/api/upload',
accept: 'image/jpeg',
onQueueAdd: function(task) {
readExif(task.file, function(exif) {
console.log('Camera:', exif.camera);
console.log('Date:', exif.date);
console.log('Dimensions:', exif.width + 'x' + exif.height);
});
}
});
function readExif(file, callback) {
var reader = new FileReader();
reader.onload = function(e) {
var view = new DataView(e.target.result);
// Parse EXIF from JPEG binary data
var exif = parseExifData(view);
callback(exif);
};
reader.readAsArrayBuffer(file);
}