Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Simple Image Gallery

This is a simple PHP image gallery script that is intended to act much like a drop-in replacement for Apache's mod_autoindex module - i.e. it simply shows a list of all of the images in a given directory (ignoring subdirectories).

This script was designed to be used in three parts:
 * contains the main code and a default configuration and shouldn't need to be edited at all. It can be hosted on a central server somewhere.
 * overrides the default configuration and downloads into a temporary file where it is cached for a period of time. This allowed me to have one copy of the code ( on one server, which was then run on several different servers without having to manually copy any changes to multiple machines. It *MIGHT* be possible to load directly from GitHub (i.e., but I do not endorse this option and I'm not aware if it would even be allowed.
 * Individual directory index scripts. You will need to place an "index.php" file in each of the directories in which you wish this script to run. This can be done either by copying into index.php in every directory, or (and this is the recommended option) a symlink to can be placed in each directory.

 * Mobile browser support.
 * Auto-generation and caching (in /tmp, usually) of thumbnails.
 * Display of images' EXIF data.
 * Extraction of geotagging information from EXIF data, and geocoding the coordinates to a human-readable address.
 * Support for video files (including generation of thumbnails using the ffmpeg extension).
 * The ffmpeg PHP extension is required if any video files are present in the directory to be indexed; the script will error if ffmpeg is unavailable.


A simple PHP script that generates an image gallery page from its current directory - like an image-based replacement for Apache's mod_autoindex



No releases published


No packages published


You can’t perform that action at this time.