watches an images tree on a static web server and generates a GALLERY_VIEW.html collage page for every folder. tiles are justified into rows that fill the whole page width and every image keeps its exact aspect ratio, so nothing gets cropped or letterboxed. it also builds small jpeg thumbnails into a hidden .thumbs dir per folder, so a folder of 300 photos loads in seconds instead of pulling hundreds of megabytes, and clicking a tile opens the original. reruns only rewrite what actually changed, and if a folder loses all its images the script cleans its own files back out.

made with apache autoindex sites in mind. the generated file is named " GALLERY_VIEW.html" with a leading space on purpose: autoindex sorts names by raw byte order and a space beats every printable character, so the gallery is always the first file in the listing, no config changes needed. html collapses the leading space so the row still displays as a clean GALLERY_VIEW.html. hrefs are escaped exactly the way apache escapes them, so filenames with spaces, unicode or angle brackets keep working.

needs python3 and pillow. fill in the config block at the top, then run it by hand, from cron, or let it loop forever as a docker sidecar next to your web server. generated pages carry a marker comment and anything without the marker is never touched, so hand made pages are safe from it.