Exposes a method for extracting metadata from JPEGs.
- Source:
Methods
(require("mediawiki.libs.jpegmeta"))(fileReaderResult, fileName) → {Object}inner
#
Extract metadata from a JPEG.
Example
const binReader = new FileReader();
binReader.onload = function () {
const binStr = binReader.result;
const jpegmeta = require( 'mediawiki.libs.jpegmeta' );
const meta = jpegmeta( binStr, 'foo.jpg' );
}
binReader.readAsBinaryString( upload.file );
Parameters:
- Source:
Returns:
A JpegMeta.JpegFile object
- Type
- Object
Extract metadata from a JPEG.