Python script that automatically generates html page that displays photos carousel based on images found inside a folder.
.jpg, .png, .bmp
PHOTOS_FOLDER_LOCATION = 'full photos folder location' HTML_TEMPLATE_FILE = 'html template that will be used to generate carousel' HTML_OUTPUT = 'Output html file generated with carousel'
Example configuration under Windows S.O enviroment:
PHOTOS_FOLDER_LOCATION = '/path/to/images/' HTML_TEMPLATE_FILE = '/path/to/template.html' HTML_OUTPUT = '/path/to/output.html'
Simply execute script through console:
photos.py
Example execution under Windows S.O enviroment:
python.exe photos.py