Examples of using Gregphoto_Image

Gregphoto_Image on Google Code

Rendering Images to the Browser

The following examples show how to render images directly to the browser (i.e. not save them to a file). Examples are shown for each of the resizing types supported: An example of calling the methods of the class with a fluent interface: An example of a simple gallery page that renders small thumbnails on the fly. Clicking a small thumbnail will generating a medium size image to be shown on the bottom of the page.

Saving Thumbnails to the Filesystem

The following example is similar to the earlier gallery example except in this example the thumbnails are saved to the file system the first time the page is loaded. All subsequent times the images are loaded from the filesystem.