Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
lowrussia
ae6671fff6
|
vor 5 Jahren | |
---|---|---|
cgi-bin | vor 5 Jahren | |
73361225_10216424132528545_9125637217060913152_n.jpg | vor 5 Jahren | |
EHgeefUX0AAj51i.jpeg | vor 5 Jahren | |
README.md | vor 5 Jahren |
README.md
Image Roulette
A cgi-bin python script that picks up a random image from a directory and its subdirectories and show it in a browser.
Usage
- Place
image-roulette.py
into a directory namedcgi-bin
- Navigate to the directory containing the
cgi-bin
one - Launch a server with the command:
$ python3 -m http.server --cgi
- Open your browser on: http://0.0.0.0:8000/cgi-bin/image-roulette.py
- Press ENTER to load a new image
TODO
- insert main directory and title of gallery as parameters
- add automatic mode (reload every x seconds)