8/13/08
Date Posted: 8/13/08
Summary: PHP -- resize image
Two snippets of code. The first will will generate a thumbnail and display it in your browser. The second will do the same, but also create a new new image file onto your server. In other words you can use it to generate thumbnail images. The old image will remain unchanged.
The reason this code is so handy is because the thumbnail will load much faster than if you dynamically resized the image using CSS or HTML and the image quality is much higher as well. Definitely worth looking at.