Lazy Photo Gallery

Free simple PHP photo gallery for your website!

prints for saleLazy Photo Gallery is a tiny 3-file gallery, no SQL or flat files needed! Just drop in the main page, image maker and CSS file and you're good to go! Your entire photo gallery is DONE. With a few modifications, you can integrate Lazy Photo gallery with your exisiting website. To see it in action, click here! Find out more information at hotscripts.com. It now features the apache module modrewrite for cleaner URLs and easier bookmarking.

Simple: Lazy Photo Gallery searches directories for JPG, GIF and PNG images, and creates a page full of thumbnails, with links to more pages. If you have subfolders, it will grab a thumb from each and create an easy to use list. Or, rename an image to use as in icon for each folder, empty or not! Please note: If it's not already installed, you will need the GD Library for your PHP Apache server.

Features Include:

  • Now uses the Mod Rewrite Apache feature for better and cleaner URLs
  • Change gallery name or let it name itself
  • Customize thumbnail sizes
  • Show thumbs for folders or use an icon
  • Set the amount to show per page
  • Change the simple yet robust CSS
  • Output image name, date, dimensions or file size
  • Pick a random image to display at the top
  • Have your photos open inside Lazy Photo Gallery.

Sites Using Lazy Photo Gallery

Preview Lazy Photo Gallery!

Download it or get the zip file!

If you have a collection of photos, art, wallpapers or whatever, Lazy Photo Gallery is your super easy, simple and scalable photo gallery solution!

Changelog


09 April 2009
MAJOR Security Updates. Added a fix to stop URL encoded strings from being passed 
to the script, which could enable viewing of parent directories. Also add cross site
scripting protection by cancelling out any strings with http in them.

MOD_REWRITE feature is now active for SEO and bookmark friendly URLs, and it adds 
another layer of security. It's disabled by default in the index.php file.

Clicking to another page with image preview enabled now keeps the last viewed 
image at the top

Fixed bug where ".jpeg" pics weren't showing up


27 August 2008
Fixed some regexp's and added ability to resample .jpeg



22 February 2008
Drop-In Photo Gallery is now Lazy Photo Gallery!
TONS of new features, mods and enhancements.
CSS ovehauled, cleaner code
New options: 
 - Name for your gallery, or let it be the folder it runs in
 - Random pic from current gallery displayed at top
 - Option to preview image inside of gallery.
 - Header prints number of folders and images in each album
 - Subfolder listing now grabs a thumbnail
   - Specify an icon for use in each subfolder (won't be displayed in the album)
   - Set size of subfolder icons (for adapting to your CSS)

Fixes:
 - Readded support for PNGs and GIFs
 - Support for funny directory and file names like jpg, gif, or &'()[]{}~ etc.
 - Pagenav not displayed if equal number of images as limit to display
 - Folder nav not displayed
 - XHTML compliant - writes proper URLs and HTML code.



00 Xember 2007
At some point I did some mods here and never noted them, merging
some ideas people gave me. Sorry!


17 August 2006
Changed the CSS - much brighter, now resembles a slide book or art gallery. Slides have slight shadows
and bevels to the thumbnails.
Modified H1 tag - tag now parses the folder you are viewing and writes it as the title.
Changed the folder list view - now a pretty box list.
Put page navigation links above and below the thumbnails.
Modified some functions and grouped them together in the source code.
Gallery now correctly displays the date each image was modified (uploaded).


12 February 2006
Made CSS a little prettier.

Modified image resizer to resample images instead of resize. The result 
is cleaner, less jaggy thumbnails.
Thanks to Kent at gen8x.net


15 December 2005
Gallery now supports PNG, GIF and JPG.
Options to show/hide image names and extensions.


26 November 2005
Added security feature so upper-level directories cannot be navigated.
Created an easier to follow breadcrumb navigation for directories.


20 May 2005
Now uses GD library to produce true color thumbs.
Thumbs are scalable per dimensions passed from gallery script.


03 June 2005
Gallery now prints date of images.
Support for hierarchical directories created from single gallery file.


02 June 2005
Thumbnails now display image dimensions.
Brightened up the CSS a bit.
Removed some unnecessary variables.
Internet Explorer Users! Come see what safe, fast browsing looks like!