Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 15 Dec 2018, 03:10
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Loop pictures from a folder and display fullscreen slideshow
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 1539
Location: Canada

PostPosted: Sun 17 Jun 2018, 08:12    Post subject:  Loop pictures from a folder and display fullscreen slideshow
Subject description: a script-based slideshow
 

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/loop-pictures-from-a-folder-and-display-fullscreen-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/
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5330
Location: Republic of Novo Zelande

PostPosted: Wed 20 Jun 2018, 14:10    Post subject:  

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??
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Wed 20 Jun 2018, 22:47    Post subject:  

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:
viewnior --slideshow *
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0353s ][ Queries: 11 (0.0110s) ][ GZIP on ]