This straightforward Python 3.X program builds thumbnails-index web pages for your image folders. Given an image-files folder, it generates a thumbnails subfolder, plus an HTML index page with thumbnail links to the full-size images and bullet links to any nested folders.
Run parameters—image folder path, thumbs per row, and thumbs max size—are input interactively in the console, and the index page and thumbnails subfolder are created in the images folder itself. Custom HTML header and footer sections for the index page can also be provided in the images folder. Open the generated "index.html" (or other) file to view, and upload the complete images folder to your website to publish.
This program uses and requires Python 3.X, plus the 3rd-party Pillow image library available here. Full Unicode support and a basic GUI-mode viewer round out its features.
The latest version (1.4, March 2018) has been restyled for better page display and mobile support. See the main script's docstring and other items below for more details.
Code and docs:
This program was last changed: March 4, 2018.
For a related tool that zips and uploads images and a non-thumbnail index page, see pixindex. For more code examples, see the programs page.