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,9 +78,7 @@ 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.");
|
||||||
@ -90,17 +88,17 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user