tidy and bump exif package to npm

This commit is contained in:
Dave Conway-Jones 2018-01-07 15:43:37 +00:00
parent 65c3c9c2ff
commit 9f290f651e
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 6 additions and 8 deletions

View File

@ -78,29 +78,27 @@ module.exports = function(RED) {
if((exifData.hasOwnProperty("gps")) && (Object.keys(exifData.gps).length !== 0)) {
addMsgLocationDataFromExifGPSData(msg);
}
else {
node.log("The incoming image did not contain Exif GPS data.");
}
//else { node.log("The incoming image did not contain Exif GPS data."); }
}
else {
node.warn("The incoming image did not contain any Exif data, nothing to do. ");
node.warn("The incoming image did not contain any Exif data, nothing to do.");
}
}
node.send(msg);
});
}
else {
node.error("Invalid payload received, the Exif node cannot proceed, no messages sent.");
node.error("Invalid payload received, the Exif node cannot proceed, no messages sent.",msg);
return;
}
}
else {
node.error("No payload received, the Exif node cannot proceed, no messages sent.");
node.error("No payload received, the Exif node cannot proceed, no messages sent.",msg);
return;
}
}
catch (error) {
node.error("An error occurred while extracting Exif information. Please check the log for details.");
node.error("An error occurred while extracting Exif information. Please check the log for details.",msg);
node.log('Error: '+error.message);
return;
}

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-exif",
"version" : "0.0.6",
"version" : "0.0.7",
"description" : "A Node-RED node that extracts Exif information from JPEG image buffers.",
"dependencies" : {
"exif": "0.4.0"