views:

465

answers:

1

Hay Guys.

I was wondering if anyone can help with resizing an image to 100px (wide, or high). While keep it's ratio and quality.

All this needs to do is open a given file, resize it and overwrite the file with the new version (keeping the filename).

It should only beable to do jpegs,gifs and pngs.

I'm not fussed about transparencies.

Thanks

+3  A: 

Take a look at this blog, phpgd - Resize images

adatapost
Perfect response, thanks adatapost!
dotty
You are welcome. Thanks @dotty.
adatapost
i found this class useful.http://www.bin-co.com/php/scripts/classes/gd_image/
dotty