How to Use PHP To Dynamically Resize an Image
One of the most annoying things about working with images is getting them into the right size. Screenshots start out huge – and you need to resize them to an appropriate size for your website.
Some blogs automatically resize the pictures for you into a thumbnail – like the image to the right. What if you want the image a different size, though? You could allow the browser to resize it for you, or – better yet – write your own php script to resize the image dynamically.
If we write our own php script to resize the image dynamically, we can control both the image size and the file size. Check out the third image to the right – which was resized with a php script. You’ll notice that it looks nicer too – the browser isn’t designed to resize images