A Node-RED node to extract Exif information from images.
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-node-exif
This node now uses the more supported exifreader library so that it handles more features and recent exif spec updates, for example data associated with drones. The output message has consequently changed into a much flatter set of properties and thus breaks all existing (0.x) instances.
Extracts Exif information from JPEG or WEBP images.
This node expects an incoming JPEG image as a buffer. If Exif data is present, it extracts the data into a msg.exif
object.
If the Exif data also contains location information this is extracted as msg.location
.
msg.payload
retains the original, unmodified image buffer.
You can set it into "worldmap" mode - in this mode the payload contains the "location" data, not the original image, but can be sent directly to a node-red-contrib-worldmap node for visualisation.
Or you can set it into TAK mode - If used with the TAK Ingest node it can extract the exif data from the overall TAK event payload and adds the exif properties to msg.payload.exif
instead of msg.exif
.