Skip to content

Instantly share code, notes, and snippets.

@karthik20522
Created August 17, 2019 19:43
Show Gist options
  • Save karthik20522/00d0c6079c99f0eb82b77e66b0efd7fa to your computer and use it in GitHub Desktop.
Save karthik20522/00d0c6079c99f0eb82b77e66b0efd7fa to your computer and use it in GitHub Desktop.
exif xmp
function handleBinaryFile(binFile) {
var data = findEXIFinJPEG(binFile);
var iptcdata = findIPTCinJPEG(binFile);
var xmpdata= findXMPinJPEG(binFile); // add
img.exifdata = data || {};
img.iptcdata = iptcdata || {};
img.xmpdata = xmpdata || {}; //add
if (callback) {
callback.call(img);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment