A single-file web gallery. Uses EXIF thumbnails to quickly display thumbnails for a directory with no server-side code
HTML
124
41 commits
updated Nov 7, 2024
https://github.com/gfwilliams/ThinGallery
Copyright 2016 Gordon Williams, gw@pur3.co.uk (Licensed as MPLv2)
A single-file gallery webpage. This uses EXIF thumbnails, XMLHttpRequest Range headers, and your web server's own index pages to quickly display thumbnails for a directory without having to fully load every image file, and without any server-side scripting.

gallery.html in the folder that contains your photos.index.html as the web server's own index page is required in order to list the photoshttps://user:password@site.tld/gallery.html?https://site.tld/When there's no index.* page, the web server creates its own HTML listing of files, and
the gallery loads this and scans it in order to find out what images are available.
For each JPEG image, it requests just the first 30,000 bytes, which will usually contain the image's thumbnail if it had one. If it's there, it is used - otherwise the entire image is loaded and resized (once all the other thumbnails have been scanned).
This means that in a directory of photos from a digital camera, instead of loading each ~5MB image file (and using up all your bandwidth and RAM), the gallery is loading less that a 150th of the amount of data, making it much faster to browse your files.
These are just some ideas - if you fancy adding them then please have a go and issue a Pull Request!
gallery.html? when folders are clicked on40 commits
1 commits
HTML
100.0%
A single-file web gallery. Uses EXIF thumbnails to quickly display thumbnails for a directory with no server-side code
HTML
124
41 commits
updated Nov 7, 2024
https://github.com/gfwilliams/ThinGallery
Copyright 2016 Gordon Williams, gw@pur3.co.uk (Licensed as MPLv2)
A single-file gallery webpage. This uses EXIF thumbnails, XMLHttpRequest Range headers, and your web server's own index pages to quickly display thumbnails for a directory without having to fully load every image file, and without any server-side scripting.

gallery.html in the folder that contains your photos.index.html as the web server's own index page is required in order to list the photoshttps://user:password@site.tld/gallery.html?https://site.tld/When there's no index.* page, the web server creates its own HTML listing of files, and
the gallery loads this and scans it in order to find out what images are available.
For each JPEG image, it requests just the first 30,000 bytes, which will usually contain the image's thumbnail if it had one. If it's there, it is used - otherwise the entire image is loaded and resized (once all the other thumbnails have been scanned).
This means that in a directory of photos from a digital camera, instead of loading each ~5MB image file (and using up all your bandwidth and RAM), the gallery is loading less that a 150th of the amount of data, making it much faster to browse your files.
These are just some ideas - if you fancy adding them then please have a go and issue a Pull Request!
gallery.html? when folders are clicked on40 commits
1 commits
HTML
100.0%