debabratam
Posts: 7
Joined: Fri Feb 27, 2015 6:47 am

Display image slide show from command line(no startx)

Mon Jun 15, 2015 7:15 am

Hi All -

I am creating anew application in C/C++. For that a requirement is to create an image (.jpg/.bmp etc.) viewer/slide show. But the program will rum from console. That means I don't want to login to the UI mode of Raspberry Pi, rather boot to console mode and run the program. The program will pick up images from some designated folder and display slideshows (with image transition etc.).

Now my question is -
1. Is there any library available which will provide me the basic framework to play with images from command line? So that I can load the images and display and do some sort of image transition from one to another.
2. Also can I create a border less window from command line (without loading the UI component - startx), on which I can render the images?

Thanks
Debabrata

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23311
Joined: Sat Jul 30, 2011 7:41 pm

Re: Display image slide show from command line(no startx)

Mon Jun 15, 2015 8:11 am

The fbi program can display on the framebuffer from the command line, check the source of that to see what libraries it uses.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

ghans
Posts: 7871
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Display image slide show from command line(no startx)

Mon Jun 15, 2015 1:56 pm

OpenVG might be worth a look too.

https://github.com/ajstarks/openvg

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

debabratam
Posts: 7
Joined: Fri Feb 27, 2015 6:47 am

Re: Display image slide show from command line(no startx)

Wed Jun 17, 2015 8:59 am

Is there any library in Python through which I can achieve the same goal. I want to run it from command line (post boot via crontab) and load images for a slideshow with image transition effects like Fade,Push,Wipe, Random Bars etc. without the startx(GUI).

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Display image slide show from command line(no startx)

Wed Jun 17, 2015 11:22 am

You say that you are developing in C, so it is kind of odd that you are asking about a Python-ish solution.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

debabratam
Posts: 7
Joined: Fri Feb 27, 2015 6:47 am

Re: Display image slide show from command line(no startx)

Fri Jun 19, 2015 5:04 am

Sorry Joe for not telling the full story...
I have the liberty to break the application in two parts - app1 and app2, with info exchange through file/db etc between these two apps...One portion will be in C/C++ containing heavy duty business logic and another one is for display/slideshow...
That is why I asked this question to explore options in Python as well.
Hope this clarifies.

debabratam
Posts: 7
Joined: Fri Feb 27, 2015 6:47 am

Re: Display image slide show from command line(no startx)

Wed Jun 24, 2015 6:57 am

@ghans and others - I tried with OpenVG and successfully created the slideshow but facing challenges in creating the transition effects (fade,cut, bar etc.). Please throw some light.

ghans
Posts: 7871
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Display image slide show from command line(no startx)

Wed Jun 24, 2015 9:10 am

Yeah , looking at it again OpenVG does not concern itself with such things.

Have you looked at readymade solutions like info-beamer or PiPresents ?
I guess without HW acceleration slideshows might be stuttery on the single-core Pi models , which will limit you to hardcore C programming.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org


User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

Re: Display image slide show from command line(no startx)

Wed Jun 24, 2015 5:31 pm

Note that the deck package has an OpenVG client for the Raspberry Pi.
This package uses a standard markup language for presentations, allowing
you to mix text and graphics.

See:
https://github.com/ajstarks/deck
https://speakerdeck.com/ajstarks/deck-a ... sentations

User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

Re: Display image slide show from command line(no startx)

Wed Jun 24, 2015 5:33 pm

ghans wrote:Yeah , looking at it again OpenVG does not concern itself with such things.

Have you looked at readymade solutions like info-beamer or PiPresents ?
I guess without HW acceleration slideshows might be stuttery on the single-core Pi models , which will limit you to hardcore C programming.

ghans
See also:

https://github.com/ajstarks/deck
https://speakerdeck.com/ajstarks/deck-a ... sentations

included in the package is client for the Raspberry Pi

ghans
Posts: 7871
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Display image slide show from command line(no startx)

Thu Jun 25, 2015 5:21 am

Does deck feature transitions ?

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

Re: Display image slide show from command line(no startx)

Fri Jun 26, 2015 11:19 am

ghans wrote:Does deck feature transitions ?

ghans
no, it does not.

onion
Posts: 2
Joined: Thu Aug 02, 2012 10:55 am

Re: Display image slide show from command line(no startx)

Wed Jul 29, 2015 12:57 pm

Qt & QtQuick might be a solution, it runs quite fast directly from console. I built a info screen system using it.

Return to “C/C++”