1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

tweak up exif node - nicer colours smaller icon

This commit is contained in:
Dave Conway-Jones 2021-10-25 16:11:22 +01:00
parent 70e04763da
commit 04465c1dca
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
2 changed files with 5 additions and 5 deletions

View File

@ -64,12 +64,12 @@ module.exports = function(RED) {
}
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(); }

View File

@ -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"