I’ve had my server up and running for over 10 years now and in time it has accumulated a ton of crap. Tons of images and what-not, especially in my ‘html’ directories. On top of that I often copy images that I don’t want in my gallery but do want to be viewable by myself or others. I found myself hand writing a simple script to convert the images to thumbnails and create a simple html page to display. So I finally took all those steps and created a BASH script to handle it all.
The script is extremely easy to use and requires only that you have ImageMagick installed on your system. In theory this script should also work on Mac OS X and if you have a bash interpreter for Windows, it should work on that platform as well.
I have detailed instructions in the man page included in the script simply by calling it with ‘–man’. I am sure there could be improvements made to the script so I am always happy to hear back on these things. Check out a sample result generated from the script.
This is a very basic script and in turn takes up little to no system resources. It creates a ‘thumbs’ directory to store the thumbnails and the html file. There’s no databases or anything of that sort. Of course, it’s also limited to a static web page with nothing fancy.
The script can be fetched here:
tn script
md5sum: b808ec7b12b24bf09fec34787eea49ba
sha256: 1cf98aad1a37c558ea7166a05ca107ef258d704235e01090b775eb665a8b4c06















