Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Need a Linux solution for looped slideshow from pictures in some folder. Pictures may be deleted and added, so it's a bonus if it doesn't stop/crash if currently shown picture is deleted.

share|improve this question

3 Answers 3

up vote 4 down vote accepted
+50

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:

  1. Make a directory with only your pictures in them.
  2. open a terminal window and change to the directory made in the previous step.
  3. 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
    
  4. 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.

  5. 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.

share|improve this answer
    
Brilliant. It takes a genius to understand the simplicity. –  iElectric Nov 20 '10 at 13:24

If you use Gnome desktop, then you can use its official image viewer program for slide shows:

eog --slide-show /path/to/picture_directory

With Eog pictures can be removed or added during the slide show. Actually, if you add picture during the slide show, it will be automatically included.

share|improve this answer
    
Sounds like an out of the box solution to me. –  deltaray Nov 29 '10 at 20:41
    
Using this on my Raspberry Pi, I was not able to add or remove files without restarting the slideshow. Not a criticism, just FYI. –  Butters Mar 25 at 16:21

Try out Gthumb: http://gthumb.sourceforge.net/home.html

share|improve this answer
    
I've tried it, it won't play new pictures that are added into the folder. –  iElectric Nov 16 '10 at 22:16
1  
what about imagemagick and scripting? Are you interested in that? –  user18854 Nov 16 '10 at 23:43
    
That's my last resort, looking for a out-of-the box solution first:) –  iElectric Nov 17 '10 at 11:18
    
Did you tried F-Spot and maybe EyeOfGnome (eog)? :\ –  user18854 Nov 17 '10 at 21:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.