Zigbert said that with clever use of xli that we might be able to come up with a slideshow widget for Pwidgets. Well, I had a go, and I have limited (ie; nil) coding skill.
With the help of some well constructed code by MU I have come up with a script that at least shows some small (resized) pictures that you might have in your system.

For interested persons; Please add your ideas, Please edit my code. This is for the Puppy community, not for me. If someone wants to take over, by all means do it! I have got the ball rolling!

EDIT: With help from CatDude and trio we have come up with a working slide show. I am releasing the basic widget version and CatDude is working on a GUI 'standalone' version which will probably end up as the 'official' 'Xlideshow'.

Notes
You should have 'xli' if you have Pwidgets, if not you can get conky-1.6.1.pet plus dependencies, it includes xli, and also needed is Scale2pics
Download and install 'xlideshow-0.0.1.pet'
It installs a directory called images.
Put .png or .jpg images in there, say up to 20 for a machine under 1gig processor, 25 to 50 for up to 2gig, 55 to 100 for a 2gig and over with a gig of ram. These are just guesses, I tested on my 1066Mhz CeleronM, with 512MBram with 25 images of various sizes. Keep the speed of your machine and size of images in mind. NO responsibility taken if your machine crashes, use at your own risk, sorry must say this stuff, you know
That's it. Start it from the menu or drag ~/my-applications/bin/xlideshow.sh to the desktop, or, type 'xlideshow.sh' in a terminal. In Jwm it is normal to see the commentary in the bar. Icewm won't do it. Not tested on other WMs but should work. Edit:Ok, icewm will do it but there is a fix; insert

.Changelog
27dec08: uploaded xlideshow-0.0.1
can now set position on screen, can change coordinates to suit your resolution, just open '~/my-applications/bin/xlideshow.sh' in a text editor and alter the values after '-geometry', thx trio
Empties '~/scaledimages' automatically, thx CatDude
28dec08: removed old versions, you can hack away at the latest one

Funny about the permissions on ~/xlideshow.sh. Any way I'll add that too. Even wierder the 107x80. Might have something to do with that 140x90 error. Anyhow resize that to 120x80 and have another go. You are correct with the "120 80 100" line

Cheers

PS, I checked the file I uploaded and it was executable on my system. Strange. Anyways, reuploaded a fresh one, no changes.

PPS: Catdude! I did the sums and 107x80 is the correct aspect ratio for any standard, (ie not widesceen) screensize. The 120x80 allows for a little wider image. If you try some other sizes, even portraits you will find that the height remains constant, this will be good for Pwidgets. The exception will be anything with a wider aspect ratio than 120x80 so I probably should alter the x value to something like 140, that way widescreen images should render correctly. Also banners will be limited to that width, but who wants banners in a slideshow?

Update: I have had xlideshow running for 4 hours straight now with no issues so I think we have a solid foundation to build on.

Update 3 hours later: still running and started it by clicking once on the excecutable.

Another Update: CatDude has tested and provided useful feedback, there are 7 others out there in the puppy-internet-wilderness that have downloaded this script. Feedback? Does it work for you? Are your machines crashed and burnt?

or click on ~/my-applications/bin/xlideshow.sh
It will crash X if you try to make a short cut. (maybe?)(must investigate)

Dependencies are not in the .pet so you will still need 'xli' and Scale2pics.

Have changed the image maximum size to 140x80 to better support widescreen images.

There is already an image in '~/scaledimages' named '01.jpeg'. You can change it to whatever you want but it must be named '01.jpeg' and should be <140 wide x 80 high. On a slow machine try it with up to 10 images. A fast machine should handle 30 or 40. Jpeg or png images can be used but png images will be slower, as will very large images, bear that in mind, consider your machine's speed. Place images in '~/images' (which the .pet created).

Don't worry, it will take 15.5 seconds to load even on the latest machine, be patient.

Enjoy!

Edit: Ok, it will crash X if you start it from a shortcut, but you can call it from a simple script (it is designed to be called from a script any ways)
.

Code:

#!/bin/bash
xlideshow.sh

Name it something like 'startslide.sh'.
Make it executable and your away. In a terminal type

Here's the score.
With the attached script (a hybrid, bits of Pwidgets & bits of Pwget)
it is possible to:

Choose from a combobox, what size xlideshow displays at.
Choose from a combobox, the quality of the images displayed.
Choose from a combobox, the delay between each image being displayed.
Select any directory containing images for the xlideshow.

Dependencies are the same as you stipulated in your original post.

To get my script to run you need to do the following:

1) Download and install Scale2pics.pet and xli should be on your system
2) Get the script catdudes-xlideshow.sh.tar.gz, and .xlirc.gz unzip them in the root directory.
3) Create a ~/scaledimages directory

You do not need to put an image named '01.jpg' into the ~/scaledimages directory,
when you run the script it will create a blank file called '01.jpg', which seems to work OK.
Each time the script is run, it will delete ALL files in the ~/scaledimages directory,
and re-create the '01.jpg' file.

I have run it from a desktop shortcut, the iceWM menu and by just clicking on it, without any crashes or anything.

The code is probably not as correct as it should be (like i said above, i have no experience really)
and i am sure that it could be cleaned up some, by someone who knows what they are doing.

I attach a couple of images to show what it looks like.

CatDude
.

P.S
My apologies to Lobster & Zigbert for butchering their code,
but we have to start somewhere now don't we.

Posted: Fri 26 Dec 2008, 09:02 Post subject:
No border and window position how toSubject description: to place xlideshow on spesific spot at permanently and remove the border

CatDude wrote:

Hi

01micko wrote:

Get rid of the commentary, I see by your screenshot you have it.

Are you refering to the stuff in the titlebar ?

I noticed in your images above:

xlideshow-crop.jpg
xlideshow-shot0.jpg

it appears that you have no window borders or titlebar, how did you manage that.

CatDude
.

Hi, I just want to share, you cannot set a spot for where the xli window should appear with xli command or to make it without border, but it is actually the a window that is controlled by your window manager, in my case icewm. you have to add below lines to the /root/.icewm/winoption or if jwm you can edit /root/.jwmrc (but that is all different command lines):
#xli picture viewer
WM_CLASS=xli
WM_NAME=xli
xli.layer: Desktop
xli.allWorkspaces: 1
xli.dBorder: 1
xli.dTitleBar: 0
xli.ignoreTaskBar: 1
xli.dMaximize: 0
xli.dMinimize: 0
xli.dRollup: 0
xli.dResize: 0
xli.dClose: 1
xli.geometry: +890+560

mydesktop.jpg

Description

see i use border for the xlideshow, you can totally remove by putting 0 value to respective line as i explained

Thankyou trio!
And I'm sure onbehalf of CatDude!
Works a treat. Just had to adjust x y values for my screen res.
I figured some type of config file would be the go, and may still be. We have to try and please Jwm and Icewm.

Ok trio, just read you posted again about geometry, will try that and get back.

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