dgallery

[gallery script in action]

[gallery script in action]

dgallery 1.2 • download

A short PHP script to browse images without a lot of setup. Resizing is handled by a separate script, the popular FOSS phpThumb.

It's fairly configurable but not comprehensively so: when I find something else I need it to do, I add it in. Feel free to do anything you want with it. There are no warranties, of course, use at your own risk, etc.

Once you've got phpThumb set up somewhere, usage can be as simple as:


<?
include "dgallery.php"; 
dgallery("images/");
?>

Features (read the comments embedded in the code for details):

  • "Film strip" of images across top.
  • Optional normal thumbnail gallery.
  • Most elements can be turned off.
  • Choice of phpThumb or Javascript resizing for the large image.
  • If images need a blurb, just add "nameoffile.ext.html" to the directory with the images and it'll be included above the nav bar.