I build my own picture gallery for my site with jquery and php.
The picture is quite big, about 200 KB. my hosting is bandwidth metered, not unlimited bandwidth. And than i try to optimize it with php every request that point to those image and surprisingly php handle it well. it can optimize image about 75% become about 50 KB with a almost similar image from the original one.
what do you think is better? i optimize the image every request with php or let apache handle image request but i need manualy optimize the image (with Photoshop) before i upload it to my webserver?
ps : i also need to track every image request, use ajax and build my own tracker for every request for page including ajax request.