How to use the exifreader.ExifReader function in exifreader

To help you get started, we’ve selected a few exifreader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mattcg / exiflocation / lib / ExifLocation.js View on Github external
ExifLocation.prototype.loadFromArrayBuffer = function(arrayBuffer, cb) {
	var exifReader;

	if (this.exifReader) {
		throw new Error('Already loaded.');
	}

	exifReader = new ExifReader();
	try {

		// Parse the Exif tags.
		exifReader.load(arrayBuffer);

		// Or, with jDataView you would use this:
		// exif.loadView(new jDataView(arrayBuffer));

	} catch (err) {
		this.err = err;
		return cb(err, this);
	}

	this.exifReader = exifReader;
	cb(null, this);
};

exifreader

Library that parses Exif metadata in images.

MPL-2.0
Latest version published 2 months ago

Package Health Score

83 / 100
Full package analysis

Popular exifreader functions

Similar packages