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)) { if((exifData.hasOwnProperty("gps")) && (Object.keys(exifData.gps).length !== 0)) {
addMsgLocationDataFromExifGPSData(msg); addMsgLocationDataFromExifGPSData(msg);
} }
else { //else { node.log("The incoming image did not contain Exif GPS data."); }
node.log("The incoming image did not contain Exif GPS data.");
}
} }
else { 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); node.send(msg);
}); });
} }
else { 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; return;
} }
} }
else { 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; return;
} }
} }
catch (error) { 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); node.log('Error: '+error.message);
return; return;
} }

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-exif", "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.", "description" : "A Node-RED node that extracts Exif information from JPEG image buffers.",
"dependencies" : { "dependencies" : {
"exif": "0.4.0" "exif": "0.4.0"