simplegallery is a very lightweight gallery script for PHP. It uses ImageMagick for resizing and jQuery for navigation (cursor keys).
- link the Script gallery.php to the directory with your JPG-Files
- create directory ".thumbs" and grant your webserver write privileges
Example:
cd /var/www/example.com/www/pics
ln -s ~/git/simplegallery/gallery.php index.php
mkdir .thumbs
chgrp www-data .thumbs
chmod g+rwx .thumbs
Now simply access your site (e.g. www.example.com/pics). The thumbnails will be generated on your first visit. They will also be regenerated if the source files change.
Google Maps embedding is done if the file contains EXIF information of the location where the foto has been taken. You also need to rename "config.php.sample" to "config.php" and set your API-Key accordingly.
Run with:
phpcs -s --standard=phpcs_ruleset.xml gallery.php
See: http://pear.php.net/manual/de/package.php.php-codesniffer.php