You are not logged in.

#1 2008-12-14 09:15:58

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Slideshow programs?

In three days time I need a program that can generate a slideshow using all the images in a directory and loop continuously. I also need this program to add new images to the slideshow as they're added to the folder. I was going to use the slideshow mode in gthumb, but it doesn't add new images to the slideshow without restarting it. Can anyone suggest a program?

Offline

#2 2008-12-14 12:24:18

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: Slideshow programs?

feh might have option(s) to do what you want. I know it has a slideshow mode, and you can set the delay - it very likely works if new images are added to the folder it looks in.

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#3 2008-12-14 13:29:26

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: Slideshow programs?

Unfortunately, feh doesn't check for new images added to the directory.

edit: I have come up with a solution:

#!/bin/bash

while true; do
    killall feh
    feh "$*`ls $* -c1 | sort -R | head -n1`" -x -F &
    sleep 5
done

The only downside is that there is a period of a second or so when feh is not open, between the killing feh and starting it again.

Last edited by Barrucadu (2008-12-14 13:38:19)

Offline

#4 2008-12-14 17:44:30

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: Slideshow programs?

You can use a script to periodically create a link named current to files in directory, and use feh's -R switch (reload switch). This works very good.

This is rotate.sh script with 2 second slideshow delay:

#!/bin/bash
while true; do
        for filename in *; do
                if (test "$filename" != "current" && test "$filename" != "rotate.sh"); then
                        ln -fs "$filename" current
                        sleep 2
                fi
        done
done

You put it in the directory where images are, and start it there. Then you start feh like this:

$ feh -R 1 /path/to/images_dir/current

Just make sure that feh's refresh interval is shorter than slideshow interval, otherwise it might miss some images.

Offline

#5 2008-12-15 17:47:01

TjPhysicist
Member
From: Waterloo, Canada
Registered: 2008-04-12
Posts: 126
Website

Re: Slideshow programs?

picasa?

I know it adds images as theyre added to the folder. And it has slideshow


-Tj
Now reborn as Tjh_ (to keep it similar to my username in other places)

Offline

#6 2008-12-15 19:43:47

freakcode
Member
From: São Paulo - Brazil
Registered: 2007-11-03
Posts: 410
Website

Re: Slideshow programs?

Eye of Gnome does all you want.

Offline

Board footer

Powered by FluxBB