mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
tidy and bump exif package to npm
This commit is contained in:
parent
65c3c9c2ff
commit
9f290f651e
@ -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;
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user