Skip to main content
Visitor II
July 12, 2021
Question

Image display on STM32MP157C-DK2

  • July 12, 2021
  • 2 replies
  • 1213 views

HI ,

How can i display simple image on to the screen ?

Currently we have weston demo running. I am aware of how to stop it , but post that what command can i use to simply just display an image on to screen?

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    July 12, 2021

    Hi,

    i think this wiki page is what you are looking for:

    https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_overview#Display_some_images

    Regards.

    NPal.2Author
    Visitor II
    July 12, 2021

    THanks for answer @PatrickF​ . The information on the page was really helpful. But is there a way i can display image on screen, as full screen? Wasn't able to get that anywhere.

    Technical Moderator
    July 12, 2021

    Hi,

    I'm not specialist, and I'm not sure it is available on proposed examples.

    weston-image is just for demo and show a 'window' image you can resize using mouse (you can try connecting a mouse to the DK2).

    Otherwise please see https://wiki.st.com/stm32mpu/wiki/Wayland_Weston_overview#To_go_further

    There is plenty of way to use the screen (see for instance GTK demo launcher, started with /usr/local/demo/demo_launcher.py)

    Regards.

    Technical Moderator
    July 12, 2021

    Hi @NPal.2​ ,

    You can use gstreamer framework. ( gst-launch command )

    See old post : How to run BMP files using Linux yocto on STM32MP157C-DK2 board

    Wiki : https://wiki.st.com/stm32mpu/wiki/GStreamer_overview

    You have also an example in Starter package / Demo launcher.

    The AI demo is displaying a picture on demand by doing :

    "gst-launch-1.0 filesrc location=/usr/local/demo/media/stm32cubeai.png ! pngdec ! videoconvert ! imagefreeze ! waylandsink &"

    See on target : /usr/local/demo/bin/apps_launcher_example.sh

    Olivier

    NPal.2Author
    Visitor II
    July 13, 2021

    Thanks @Community member​ , will check on my side, thanks.