The GD library in PHP offers some great tools for resizing and editing images. However, these can increase load time and it would be beneficial to enable client side caching of these resources. You can do this by adding one simple line of code to your image output.
In this tutorial I will show you how to create a simple photo gallery. The script creates thumbnail images if needed and displays all images in the given directory.