Thumbnail AutoIndex is a nifty little script that helps generate thumbnail indexes for images in your directories. It works hand in hand with mod_autoindex for Apache, making it super easy to create a visual gallery of your images.
This latest version has some cool updates:
If you want to use this script, here’s what you'll need:
If you're looking for a quick setup, just rename the file thautoindex.php to index.php and place it right alongside your images. Easy peasy!
If you want something more organized, you can put thautoindex.php in a folder like /home/http/tools and run this command:
ln -s /home/http/tools/thautoindex.php ~/public_html/gallery/index.php
If you want to manage subdirectories, rename thautoindex.php to index.php, place it in your gallery-root directory, and execute the following commands:
cd gallery/root/dir
find * -type d -exec ln -s `pwd`/index.php {}/index.php ;
You can tweak some settings at the start of the script like font size, $DirectoriesFirst, $OpenNewWin, and $cacheDir options. The $cacheDir can be set up in /tmp or your home directory. You may also change names of $headerfile or $readmefile if needed (but I wouldn’t recommend it).
If there’s a $headerfile (default 'HEADER.html'), it will show up at the top of your page as a header. And if there's a $readmefile (default 'README.html'), it'll appear at the bottom as comments.
This script is designed to work out-of-the-box with minimal fuss! By default, it's set up to use the server's /tmp directory for caching images. If server-side caching is turned off, it tries using web caches instead. Setting $OpenNewWin to 'true' can also help out.
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.