Loop pictures from a folder and display fullscreen slideshow

Paint programs, vector editors, 3d modelers, animation editors, etc.
Post Reply
Message
Author
labbe5
Posts: 2159
Joined: Wed 13 Nov 2013, 14:26
Location: Canada

Loop pictures from a folder and display fullscreen slideshow

#1 Post by labbe5 »

This is going to sound crazy, but it works (better than I expected even) and is not that hard to setup. The idea is to make your viewing program look at a single file and then have a command line process that copies each of your files in your directory to that file you view. I tested this with Geeqie and gthumb and it actually works pretty well. gthumb even can handle the image being updated every second and both supported the name of the file type being different from the actual file type (jpg, png, gif, etc).

So here is what you do:

Make a directory with only your pictures in them.
open a terminal window and change to the directory made in the previous step.

Run this command, substituting 5 with however many seconds you want to wait in between updates.

while true ; do for i in * ; do cp "$i" ~/slideshow.jpg ; echo $i ; sleep 5 ; done ; done

Open gthumb and view the image in your home directory called slideshow.jpg, it should rotate the picture. You can make gthumb full screen now if you need to.

Try adding and removing pictures from the picture directory. It won't actually update until its finished going through the whole directory each time, but it will update. The echo $i is in there just so you can see what picture it just copied into place each time.

When you are ready to stop the slideshow, you can press Ctrl-C in the terminal window.

Source : https://superuser.com/questions/211561/ ... -slideshow

Comment :
Use a light image viewer for the script to work, such as Pix.

If you have feh installed, and you want to watch the content of an image folder in a slideshow :
feh -Y -x -q -D 5 -B black -F -Z -z -r /media/johnny/USER/OMER/IMAGES/2015/family,etc/

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#2 Post by greengeek »

Clever. I just tried viewing the slideshow.jpg using viewnior though and it did not work - I guess it requires a viewer that self-updates.

Any way you can think of to get this working with viewnior??

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#3 Post by MochiMoppel »

greengeek wrote:Any way you can think of to get this working with viewnior??
May not look as clever but does a better job:

Code: Select all

viewnior --slideshow *

Post Reply