From 04465c1dca29efee48e6e45e306c63ed826a4387 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 25 Oct 2021 16:11:22 +0100 Subject: [PATCH] tweak up exif node - nicer colours smaller icon --- utility/exif/94-exif.js | 8 ++++---- utility/exif/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utility/exif/94-exif.js b/utility/exif/94-exif.js index 1f2e5d93..628e7825 100644 --- a/utility/exif/94-exif.js +++ b/utility/exif/94-exif.js @@ -62,14 +62,14 @@ module.exports = function(RED) { else { node.log("The location of this image cannot be determined safely so no location information has been added to the message."); } - if (msg.location) { + if (msg.location) { msg.location.arc = { - ranges: [500,1000,2000], + ranges: [100,300,500], pan: gpsData.GPSImgDirection, fov: (2 * Math.atan(36 / (2 * msg.exif.exif.FocalLengthIn35mmFormat)) * 180 / Math.PI), - color: '#910000' + color: '#aaaa00' } - msg.location.icon = "fa-camera"; + msg.location.icon = "fa-camera fa-1x"; var na; if (val.hasOwnProperty("name")) { na = val.name; } else if (msg.hasOwnProperty("filename")) { na = msg.filename.split('/').pop(); } diff --git a/utility/exif/package.json b/utility/exif/package.json index 4348c3e2..79a51027 100644 --- a/utility/exif/package.json +++ b/utility/exif/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-exif", - "version": "0.3.0", + "version": "0.3.1", "description": "A Node-RED node that extracts Exif information from JPEG image buffers.", "dependencies": { "exif": "^0.6.0"