AutoGallery 0.50

Autogallery introduction

Autogallery was born out of the need to have an arbitrary number of pictures or groups of pictures quickly online.

Installation

  • Make sure PHP 4.x runs on the target machine. No database needed!
  • Either Imagick 'convert' needs to be installed and working or the PHP GD_LIB needs to be loaded.
  • If 'jpegtran' is available, lossless rotation will be activated.
  • For on-server image rotation you need PHP > 4.3.0 and a compatible gd_library or convert.
    The gallery directory and pictures need to be writable for the www-daemon user.
  • Open index.php and change the defaults to your needs, make sure to change the password to something new!
  • Copy the following files into your gallerybase directory on the server:
    • index.php
    • gallery.css
    • up.gif
    • no_thumb.gif
  • Create a subdirectory called gallery and make it readable for the www-daemon user.
  • Create a subdirectory called autogen and set rights to 777 (everyone can write) or at least read & write rights for the www-daemon user.

Usage

Copy any directories containing pictures into the gallery directory. Pictures can also be in the gallery directory itself. Directories can be nested. Pictures can be anywhere.
Make sure all pictures are jpg's and the extension is .jpg or .JPG.

Load http://your.server.com/gallerybase/ in a browser and login using the password as defined in your index.php described above, and click on the sync link.
The script will now generate all thumbs and intermediate files automagically and copy them in the autogen directory. Sync will also check for outdated thumbnails and remove them if the original file was removed. Once this process is done, click on the return link at the bottom of the page and view your freshly generated gallery.

Trivia

It took me one day to write version 0.1 of AutoGallery.
Thumbnails for gallery-entry links are randomly chosen from the pictures inside every time the page is viewed.

Download

You can download Autogallery v0.50 here.

Revision history

0.50
  • Several fixes and improvements.
0.41
  • jpegtran support
  • bugfixes
0.4
  • Added rotation feature for lazy picture uploaders.
    PHP > 4.3.0 needed in combination with compatible gd_library.
    If gd_library is not compatible, the script tries to fall back to convert.
    The gallery directory and pictures need to be writable for the www-daemon user as well.
0.3e
  • Added feedback to comment set action.
0.3d
  • Masked opendir warning for non-existant dirs.
0.3c
  • Masked unlink warning for (comment) files that don't exist.
0.3b
  • Added extra CSS code for linked pictures to facilitate hover make-up.
0.3a
  • Changed thumbnail creation mask so enduser can delete thumbs via FTP.
  • Added <title>-tag support.
0.3
  • Added login scheme.
  • Added possibility to add comments to photos (login needed).
  • Sync can now only be run when logged in.
  • Squashed some bugs.
0.2
  • Added GD_LIB support, Imagick not needed anymore.
0.1
  • Initial release

return to the gallery page

Have fun!
Martin van Es.