tags:

views:

49

answers:

2

I need some ways to dynamically optimize images using PHP. Sample codes or a module would be very helpful. Thanks.

A: 

In Google you can have too many samples like this http://www.thesitewizard.com/php/create-image.shtml

If you have some doubts of how do something, please... do a specific question.

Felipe Cardoso Martins
+1  A: 

What do you mean by optimize? If you wish to keep the dimensions but reduce the size, take a look at imageJpeg for an example, and specifically the third argument (quality). Consider 100 to be perfect quality, and start decreasing it to find an optimal balance between quality and size.

Lauri Lehtinen