Apologies for the unsuccessful flow. I’ve resolved the flow access issue and made a few changes to the flow. Unfortunately, it still doesn’t work as expected
[{"id":"b49d85e0d81629eb","type":"tab","label":"Jimp Test","disabled":false,"info":"","env":[]},{"id":"0783c6a62c16d275","type":"inject","z":"b49d85e0d81629eb","d":true,"name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":340,"wires":[["808dc2eb855ebf72","38c022b02257c376"]]},{"id":"58d41be39510885c","type":"function","z":"b49d85e0d81629eb","d":true,"name":"","func":"// Vergleiche zwei Bilder in Node-RED mit Jimp\nconst test = compare();\nasync function compare() {\n\n\n // Lade die Bilder aus den Base64-Daten\n let Bild1 = await jimp.read(Buffer.from(msg.katze1, 'base64'));\n let Bild2 = await jimp.read(Buffer.from(msg.katze2, 'base64'));\n\n // Berechne den Unterschied\n var diff = jimp.diff(Bild1, Bild2);\n const Prozentsatz = diff.percent;\n\n // Setze das Ergebnis in die Nachricht\n\n \n\n}\nmsg.payload = test;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[{"var":"jimp","module":"jimp"}],"x":820,"y":360,"wires":[["fce2138939e629ab"]]},{"id":"fce2138939e629ab","type":"debug","z":"b49d85e0d81629eb","d":true,"name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":1030,"y":360,"wires":[]},{"id":"3cb9b3902dfd9169","type":"comment","z":"b49d85e0d81629eb","d":true,"name":"Bezugsbild","info":"","x":260,"y":200,"wires":[]},{"id":"daa04a5959ad38d7","type":"comment","z":"b49d85e0d81629eb","d":true,"name":"aktuelles Bild","info":"","x":270,"y":400,"wires":[]},{"id":"5e40198abd21b82f","type":"comment","z":"b49d85e0d81629eb","d":true,"name":"vergleicher","info":"","x":820,"y":320,"wires":[]},{"id":"38c022b02257c376","type":"jimp-image","z":"b49d85e0d81629eb","d":true,"name":"image1","data":"https://www.bmel.de/SharedDocs/Bilder/DE/_Tiere/Haus-Zootiere/tierschutz-hunde.jpg?__blob=wide&v=3","dataType":"str","ret":"b64","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"parts","sendPropertyType":"msg","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":260,"y":240,"wires":[["a5f8b8a14fc658f5"]]},{"id":"808dc2eb855ebf72","type":"jimp-image","z":"b49d85e0d81629eb","d":true,"name":"image2","data":"https://image.geo.de/34423086/t/u8/v1/w1440/r0/-/katze-as-97589769.jpg","dataType":"str","ret":"b64","parameter1":"","parameter1Type":"msg","parameter2":"","parameter2Type":"msg","parameter3":"","parameter3Type":"msg","parameter4":"","parameter4Type":"msg","parameter5":"","parameter5Type":"msg","parameter6":"","parameter6Type":"msg","parameter7":"","parameter7Type":"msg","parameter8":"","parameter8Type":"msg","sendProperty":"parts","sendPropertyType":"msg","parameterCount":0,"jimpFunction":"none","selectedJimpFunction":{"name":"none","fn":"none","description":"Just loads the image.","parameters":[]},"x":260,"y":440,"wires":[["5b526e874ddc6c7b"]]},{"id":"a5f8b8a14fc658f5","type":"image viewer","z":"b49d85e0d81629eb","d":true,"name":"","width":160,"data":"parts","dataType":"msg","active":true,"x":410,"y":240,"wires":[["d0c7cc0a24d420b0"]]},{"id":"5b526e874ddc6c7b","type":"image viewer","z":"b49d85e0d81629eb","d":true,"name":"","width":160,"data":"parts","dataType":"msg","active":true,"x":410,"y":440,"wires":[["d0c7cc0a24d420b0"]]},{"id":"d0c7cc0a24d420b0","type":"join","z":"b49d85e0d81629eb","d":true,"name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"keyValue","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"2","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":630,"y":360,"wires":[["58d41be39510885c"]]},{"id":"f37cf4c0ef559928","type":"inject","z":"b49d85e0d81629eb","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":760,"wires":[["3169ac9110968536"]]},{"id":"3169ac9110968536","type":"function","z":"b49d85e0d81629eb","name":"","func":"// Vergleiche zwei Bilder in Node-RED mit Jimp\nconst test = compare();\nasync function compare() {\n\n\n // Lade die Bilder aus den Base64-Daten\n let Bild1 = await jimp.read(Buffer.from(\"https://www.bmel.de/SharedDocs/Bilder/DE/_Tiere/Haus-Zootiere/tierschutz-hunde.jpg?__blob=wide&v=3\"));\n let Bild2 = await jimp.read(Buffer.from(\"https://image.geo.de/34423086/t/u8/v1/w1440/r0/-/katze-as-97589769.jpg\"));\n\n // Berechne den Unterschied\n var diff = jimp.diff(Bild1, Bild2);\n const Prozentsatz = diff.percent;\n\n msg.payload = Prozentsatz;\n\n \n\n}\nmsg.payload = test;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[{"var":"jimp","module":"jimp"}],"x":480,"y":760,"wires":[["849b526bcc90949e"]]},{"id":"849b526bcc90949e","type":"debug","z":"b49d85e0d81629eb","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":690,"y":760,"wires":[]}]