EXIF (reading image meta-information)

EXIF (https://en.wikipedia.org/wiki/Exif) is a list of metadata tags further describing an image or an audio, things like 'camera position and moment of shooting', 'camera model', 'geolocation', 'shutter speed' etc.

Usage:

var EXIF=require("exif");

Listing all tags:

var fs=require("fs");
var EXIF=require("exif");

var f=new fs.File("image.jpeg");
f.open("r");
var image_data=f.read();
f.close();
var exif_data=new EXIF.Reader(image_data);

var image_tags=exif_data.getTags();
for (var k in image_tags) {
    var v=image_tags[k];
    if (typeof v==="object") v=JSON.stringify(v);
    system.stdout.writeLine("TAG "+k+"="+v);
}

List of methods of Reader class

Name Arguments Returns Description
new Buffer image EXIF.Reader
getTags Object Returns an object with all tags

List of static data of EXIF

Name Datatype Description
TAGS Object Object of id:description, like 0x001: "InteropIndex"