# Displaying image to HDMI output port of Raspberry Pi

**URL:** <https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090>\
**Category:** General\
**Created:** [6 December 2020 17:52 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090 "2020-12-06T17:52:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [6 December 2020 17:53 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090/1 "2020-12-06T17:53:00Z")

</div>

Here is what we are trying to do:

1. running Node Red on a Raspberry Pi  
2.) stored 2 pictures on the PI called, picture1.png or picture2.png  
3.) Desired action: output picture1.png or picture2.png to the hdmi output of the Pi

Here is what we have done so far and verified:  
We installed "fbi" . Then SSH into the PI and ran the command:  
pi@raspberrypi:~ $ sudo fbi -T 1 Pictures/picture2.png  
using "Liberation Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/liberation2/LiberationMono-Regular.ttf

Result = the picture1. png displays on the hdmi output of the PI ok.

All good so far.  
We then created a "EXEC" node in Node RED and sent the same command.  
However the picture1.png does not display.  
We can clearly see on the display that the EXEC node has triggered an action , but we get error on bottom of the HDMI screen " Pictures/picture1.png" failed to load.

If anyone has any experience or suggestion, we really appreciate it.

```auto
[{"id":"dcaac25a.d6d15","type":"tab","label":"Entry Control","disabled":false,"info":""},{"id":"f0cb7f30.46e4a","type":"inject","z":"dcaac25a.d6d15","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":".1","x":420,"y":160,"wires":[["d69b5efc.1a32c"]]},{"id":"35bef9c4.e6a0a6","type":"inject","z":"dcaac25a.d6d15","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":".1","x":420,"y":240,"wires":[["191b7945.5c8767"]]},{"id":"8e55eeac.ee7b4","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":140,"wires":[]},{"id":"d69b5efc.1a32c","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi -T 1 Pictures/picture1.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":720,"y":160,"wires":[["8e55eeac.ee7b4"],["261676f.4b8588a"],["f848148e.349068"]]},{"id":"261676f.4b8588a","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":180,"wires":[]},{"id":"f848148e.349068","type":"debug","z":"dcaac25a.d6d15","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1170,"y":220,"wires":[]},{"id":"c2bdc385.a2226","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi --autozoom --noverbose --vt 1 Pictures/picture1.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":340,"y":460,"wires":[[],[],[]]},{"id":"746794a8.4feb0c","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi --autozoom --noverbose --vt 1 Pictures/picture2.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":340,"y":560,"wires":[[],[],[]]},{"id":"191b7945.5c8767","type":"exec","z":"dcaac25a.d6d15","command":"sudo fbi -T 1 Pictures/picture2.png","addpay":false,"append":"","useSpawn":"false","timer":"1","oldrc":false,"name":"","x":720,"y":240,"wires":[[],[],[]]}]

```

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [6 December 2020 20:40 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090/2 "2020-12-06T20:40:30Z")

</div>

I think you need to use absolute paths in the exec node.

i.e. /home/pi/Pictures/picture2.png

---

<div class="post-metadata">

**Author:** ![sweetwater](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Post date:** [6 December 2020 20:51 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090/3 "2020-12-06T20:51:53Z")

</div>

Thank you. Using absolute path works!  
Just verified.  
Hope this will other Node Red users!

---

<div class="post-metadata">

**Author:** ![wb666greene](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wb666greene/32/6534_2.png) [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Post date:** [6 December 2020 21:05 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090/4 "2020-12-06T21:05:19Z")

</div>

Mark the reply as "solution" then its shows up in the archives as a question that was answered. I believe only the thread creator can do this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 December 2020 21:05 UTC](https://discourse.nodered.org/t/displaying-image-to-hdmi-output-port-of-raspberry-pi/37090/5 "2020-12-20T21:05:23Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
