I'm working on image resizing stuff, because having to create thumbnails before you upload images is a pain for my editors. Plus, some of them aren't great with graphics software. So I wanted to be awesome and make it to where they upload the image, and as the review loads on the reviews page, the image is automatically scaled down.
Not just that, but the filesize is reduced, and the aspect ratio is still there (meaning if I have an image that's 800 x 450 and need to make the width 125, it'll automatically adjust the height, thus making the thumbnail dimensions 125 x 70).
So... any of you have some clever code that'll do this? I'm currently playing with some of the built in PHP image functions (like these - http://us4.php.net/manual/en/functio...opyresized.php ), and any suggestions would be great.
Thanks!
Not just that, but the filesize is reduced, and the aspect ratio is still there (meaning if I have an image that's 800 x 450 and need to make the width 125, it'll automatically adjust the height, thus making the thumbnail dimensions 125 x 70).
So... any of you have some clever code that'll do this? I'm currently playing with some of the built in PHP image functions (like these - http://us4.php.net/manual/en/functio...opyresized.php ), and any suggestions would be great.
Thanks!
Comment