This script will open an image ($image), resize it to the values you specify ($max_height and $max_width), then if you want, add a border ($addborder). It uses
ImageCopyResampled from GD 2 as ImageCopyResized looks too pixelated. Set $image_quality to anything between 0 and 100.
This is a generic resizer code snippet. It allows you to resize web compliant images (jpeg, gif, png), and to keep or not proportions, on both height and width, only width,
onlyheight, the greatest value, the smallest value...
When you need the same image on your site several times,but in different sizes here's your solution. If you want your users to easy upload images from their digicam and store
them in a default size. This is how you do it. Store images once and show them in any dimension you'd like Based on jpgtn.
A quick function that shrinks images, maintaining integrity of the image (no stretching). You pass the path to the image, the path for the new image, and the size constraints
within which the image should fall, and the function returns true or false.