Yet Another Single File PHP Gallery
Find a file
2017-01-12 22:11:42 +00:00
_config.yml Set theme jekyll-theme-cayman 2017-01-12 22:11:42 +00:00
index.php Consistent thumbnail ratios 2015-11-01 10:39:35 +00:00
LICENSE Initial commit 2014-05-21 22:15:03 -07:00
README.md First commit 2014-05-22 06:30:42 +01:00

Yet Another Single File PHP Gallery

A photo gallery in a single file, inspired by SFPG.

This program has far fewer options and is much less customisable, but is much neater and more compact.

How to Use

  • Set up a file structure for your photos, with directories for albums containing image files in JPG or PNG format. Directory and file names will be used as album and photo names, while the modified date will be used to sort them (albums go newest-first, photos within them go oldest-first).
  • Drop index.php into the top-level directory containing your album directories.
  • Edit index.php to your liking, e.g. change the title block, CSS, whatever
  • Create a cache directory that is writable by your web server, alongside your albums and index.php
  • Ensure that your web server (only tested with Apache!) has PHP and GD support and GD is installed.
  • Visit the site in a web browser. (The first time you load a page it will take a while as it is generating thumbnails. Next time it will be much quicker!)