PHP Classes

ImageArchive: Browse directories with images to zoom or rotate

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 60%Total: 2,837 All time: 1,326 This week: 488Up
Version License Categories
imagearchive 1.0GNU General Publi...Graphics, Files and Folders
Description 

Author

I keep all my digital photos and wanted a way to browse through them on my web server. Occasionally, I have forgotten to rotate an image, so I needed to be able to cope with that too.

This class enables you to look through a tree structure of images as thumbnails and then to zoom in to an individual image of your choice.

The zoomed image is created on the fly and can be a variety of sizes.

You need GD extension on the server, and JavaScript on the client.

There are a large number of options that can be set, but only four MUST be set for the class to work.

The class was tested on Apache under Windows and Linux, but does not contain any Apache-specific code. Let me know if you have success on other servers.

GOTCHAS - since posting a couple of things to bear in mind when using the class:

1) I use cookies to store your preference for maximum image dimension when clicking through a thumbnail. Therefore you MUST call the Go() function before any headers have been sent to the browser (i.e. before the <HTML> tag). Try running the class with no HTML at all - if that works you can then run it as a function that returns html code using Go(false).

2) Don't forget that the apache server will require permissions to write in the thumbnails directory.

Picture of Thomas W-P
Name: Thomas W-P <contact>
Classes: 1 package by
Country: United Kingdom
Age: 55
All time rank: 112852 in United Kingdom
Week rank: 295 Up13 in United Kingdom Up

  Files folder image Files  
File Role Description
Plain text file classImageArchive.php Class ImageArchive class
Accessible without login Plain text file imagearchive.php Example Simple script showing classImageArchive at work

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,837
This week:0
All time:1,326
This week:488Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:60%StarStarStarStar
Rank:1119