图片预览image-output

node-red-contrib-image-output

这个node可以直接在NR里预览图片,在调试涉及图片的流程时非常方便。
本地和外网的图都能使用,只要传入二进制缓冲模块就好。
再点击一下图片,图片就会消失。

{"id":"3e750a66.8eb696","type":"http request","z":"4a9555bf.561e5c","name":"","method":"GET","ret":"bin","url":"http://wx2.sinaimg.cn/mw690/ac38503ely1fesz8m0ov6j20qo140dix.jpg","tls":"","x":360,"y":2020,"wires":"1829a782.34e0b8"]]},{"id":"1829a782.34e0b8","type":"image","z":"4a9555bf.561e5c","name":"","width":160,"x":540,"y":2020,"wires":]},{"id":"5cb57529.2c889c","type":"inject","z":"4a9555bf.561e5c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":2020,"wires":"3e750a66.8eb696"]]}]

非常好的推荐,调试图片链接一目了然。只是这示例有些问题 :smile:

有什么节点可以实现在nr的可视化界面显示mqtt上传的图片的

你红框那个地方,msg后面要有负载路径的,要不,节点都不知道读取什么东西

好的,多谢大佬:pray::pray:

大佬我显示Error: Invalid property expression: zero-length",该怎么配置

检查一下,那个图片的长度设置为零了

导入流的时候提示Error: 输入的不是JSON数组是怎么回事呀

少了配套的“[”,你导入的时候 有对应提示的,给他配上 就可以了。
一般是开头少一个“[”,
然后,对应的**“wires”:**这里后面的位置少一到两个 ,配套补齐就能导入了