YAT (Yet Another Tiled) Photogallery

I was looking for some simple photogallery for my website, but don't found any sufficient that supports albums, nice thumbnails displaying and has powerfull viewer. So I decide to write my own photogallery library. YAT is a result. It uses php on server side and jQuery on client. No database is needed, photo name, description and other properties are loaded directly from XMP and exif metatadata and displayed in viewer! Gallery creates thumbnails from photos automaticly and cache it on the server. If photo is rotated (detected from exif), thumbnails are rotated automaticly.

You can get source code from Github, it is distributed under terms of GNU LGPL license.

https://github.com/Karry/yat-photogallery.git

Demo

Prague

15 photos in total

Animals

22 photos in total

Installation (Apache web server)

You need to have configured php and mod_rewrite for your Apache and gd, xml and json extensions for php. For installation, just upload photogallery files to some directory on your web server and create cache subdirectory with write permissions for apache user. Repository includes .htaccess configuration, so everything should work out of the box.

RewriteEngine on

# Is the request for a non-existent file?
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# If so, use next RewriteRule
RewriteRule ^([a-zA-Z0-9\-\/\_\.()!]*)$	index.php [L]

For creating new photo album, create a new sub-directory in photos and upload jpeg images into it. Title and description are read from XMP metadata stored in photo. For editing these field can be used some photo editor/manager - for example DigiKam. Album is named by its subdirectory. But you can override this default value by uploading some album.xml file into album dir.

<?xml version="1.0" encoding="utf-8"?>
<album>
  <name>Some Album name</name>
  <datetime>2008-03-15</datetime>
  <description>
    <strong>Html</strong> formated description of album.
  </description>
</album>