Photo Album / Picture Gallery Script with PHP

Submitted by n8coder on Thu, 06/18/2009 - 13:33

<p><a href="/demo/web2_image_gallery/"><img align="right" alt="" data-entity-type="" data-entity-uuid="" src="/demo/screenshot_photo_album_php.jpg" width="300" /></a> This is a all-in-one-file small and powerful image gallery script with PHP. Just upload your images to directory of script with FTP. It is free for private use. For a demo click on screenshot-image. Features:</p>

    <li>Scann directory and display images in web formats automagically</li>
    <li>Create thumbnail images dynamically on the fly (from all JPEG, GIF, PNG)</li>
    <li>Sort images by name, size or last modified time</li>
    <li>Easily change how many thumbnail-images displayed per page</li>
    <li>Page navigation</li>
    <li>Display image name (trim long filename)</li>
    <li>Display image dimensions: width x height</li>
    <li>Display image filesize in kilobytes</li>
    <li>Display last modified time</li>
    <li>Display number of total images</li>
    <li>Easily change album name, description, width</li>
    <li>Easily change thumbnail width/height</li>
    <li>Automagically select largest dimension to scale thumbnail</li>
    <li>Link to original image file</li>
    <li>Meta title and description</li>


Feature suggestions for future:

Save thumbnails instead dynamic creation
Multiple albums
View middle size images
Watermark big images
Max image size limit
Sort by height - width
Sort by image type

Submitted by Anonymous (not verified) on Mon, 07/06/2009 - 23:04


You dont need to put images in this script, it can dedect images automagically. Just put your images and this script in the same directory.

Submitted by Bobo (not verified) on Wed, 07/08/2009 - 09:50



When I run the script I'm getting a whole bunch of errors:

########ERRORS BEGIN########

Notice: Use of undefined constant start - assumed 'start' in rf09\gallery\gallery.php on line 24

Notice: Undefined index: start in rf09\gallery\gallery.php on line 24

Notice: Use of undefined constant sortby - assumed 'sortby' in rf09\gallery\gallery.php on line 26

Notice: Undefined index: sortby in rf09\gallery\gallery.php on line 26

Notice: Use of undefined constant sortby - assumed 'sortby' in rf09\gallery\gallery.php on line 27

Notice: Undefined index: sortby in rf09\gallery\gallery.php on line 27

Notice: Undefined variable: i in rf09\gallery\gallery.php on line 73

Notice: Undefined variable: imgl in rf09\gallery\gallery.php on line 81

Notice: Undefined variable: page_htmo in rf09\gallery\gallery.php on line 91

Notice: Undefined index: thumb in rf09\gallery\gallery.php on line 156

########ERRORS END########

Is there something I'm doing wrong or should be aware of?

I'm really hoping you can help 'cause I'm looking for just that kind of gallery-script.


check if your php has gd support or send your url here. what error do you get when you load just one thumbnail like this:

Submitted by Zorg (not verified) on Wed, 09/23/2009 - 07:23


First, thanks for a brilliantly simple, yet powerful script! I looked everywhere and you finally provided what I needed, bravo!

It works fine for me with most dirs, however there's one dir that contains a substantial amount of animated gifs, some several megabytes in size. I can access the images but it won't display thumbnails and I get this error:

Warning: getimagesize(): Read error! in /home/content/imagedir/index.php on line 44

Maybe disabling the get size part of the script would fix it?

Thanks again