PHP Classes

Classes of Thomas W-P

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Thomas W-P (1)  >  Mission progress status  >  Reputation  
Picture of Thomas W-P
Name: Thomas W-P <contact>
Classes: 1
Country: United Kingdom
Age: 56
All time rank: 112952 in United Kingdom
Week rank: 164 Up6 in United Kingdom Up
All time users: 2837
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image ImageArchive  
Browse directories with images to zoom or rotate
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.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 91% 79% - 70% - - 60% 1120
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z