Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions exif.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ function getFromImage(filename) {
let faces = [];
if (Object.prototype.hasOwnProperty.call(tags, "PersonInImage"))
faces = tags.PersonInImage;

// support for Picasa embedded face regions
else if (Object.prototype.hasOwnProperty.call(tags, "RegionInfo")) {
out = [];
for (i=0; i < tags.RegionInfo.RegionList.length; i++) {
if (tags.RegionInfo.RegionList[i].Name)
out[i] = tags.RegionInfo.RegionList[i].Name;
}
//console.log("Found Region Names: ", out);
faces = out;
}

resolve({
modif: modif,
faces: faces,
Expand All @@ -64,4 +74,4 @@ function end() {
module.exports = {
getFromImage: getFromImage,
end: end
};
};