PDA

View Full Version : reduce image size and weight



kamkam
08-22-2009, 12:16 AM
Hi;

How i can reduce an image size and weight by php after a user upload their image to my hosting ?

Thanks

Fou-Lu
08-22-2009, 12:24 AM
By using PHP's GD (http://php.ca/manual/en/ref.image.php) library. Look specifically at the imageCreateFrom* functions and imageCopyResized and imageCopyResampled.

kamkam
08-22-2009, 01:51 AM
thanks a lot