Like Ra in latex catsuit, latex mask and high heels
Like Ra's Naughty Playground

If you would like to use search functions, view attachments or play games, please consider registering.


Software - Random Slideshow
#1
Hi,

While procrastinating on my random video player, I made a random slideshow player.

This dirty script run on Python 3.

You just need to change the path to your picture folder. The script will scan it and then display the pictures on a window.

Here it is :

https://pastebin.com/5847He0C

Feel free to use, share and modify it Wink

Hope that someone find it useful.




Greetings,
gryxo
Reply
#2
Need to check what tkinter and PIL do.

Quick question: does Image.open add the path only or the whole binary?

Edit: how do you install tkinter?
Reply
#3
OK, for Linux
o- Tkinter
o- Python v2 and not v3
o- pip install Pillow (PIL is for Windows only)
o- the folder must end up with /

And it still does not like some pictures:

File "slideshow-01.py", line 28, in <module>
photo = ImageTk.PhotoImage(image)
. . .
IOError: image file is truncated (1 bytes not processed)

mmmm....
Reply
#4
Switched to another directory with pics and it works now!

Can be used for subliminals as well Wink
Reply
#5
Tkinter is the basic GUI for Python. It sometimes comes in the basic package with Python.
PIL is used to work with images.

Sadly, Image.open is loading the whole picture in Ram, not only the path. But It's the only way I found to make it work (I'm a noob, there must be a better way to do it...).

Sorry about linux, I only used Windows to debug it Sad

I'm sure it works on JPG and PNG. And normally it would not crash when a bad picture is opened.... It need some tweaking, but it is a little bit out of my scope....

If someone can improve it, it would be awesome !
Reply
#6
(18 Oct 2018, 23:34 )Like Ra Wrote: Switched to another directory with pics and it works now!

Can be used for subliminals as well Wink

Cool ! The video part is still in the pipe, coming soon !
Reply
#7
(18 Oct 2018, 23:39 )gryxo Wrote: Image.open is loading the whole picture in Ram
What allows the program to show them much faster, what can be used as a foundation for subliminals Wink
Reply
#8
Similar idea, but web-based: https://gooninator2.neocities.org/?sourc...on=fixed05
Reply
#9
Correct links:

https://gooninator.neocities.org <- version 1
https://gooninator2.neocities.org <- version 2
Reply
#10
(19 Oct 2018, 00:48 )Like Ra Wrote:
(18 Oct 2018, 23:39 )gryxo Wrote: Image.open is loading the whole picture in Ram
What allows the program to show them much faster, what can be used as a foundation for subliminals Wink

Exactly !


Wow ! This site is so great ! Didn't know about it....
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Software - the random media player gryxo 7 342 23 Oct 2018, 01:09
Last Post: Like Ra
Video editing software Like Ra 11 1,456 05 Nov 2017, 17:48
Last Post: Like Ra
Inventory/collection software Like Ra 0 431 20 Sep 2017, 19:58
Last Post: Like Ra
Photo editing software Like Ra 5 715 01 Jul 2017, 06:39
Last Post: franz löve
Easy drawing software Like Ra 5 686 30 Jun 2017, 19:21
Last Post: Anne