Using jpegoptim for speed up servers while optimizing pictures. For example for a adsense publisher, you might have noticed Red flag for image optimization problem. I see for the sites I manage is the image optimization problem. Fortunately, Google is not just showing you the problem , here is the best i recommend (because of i did it), which worked well. All of the commands are in SSH interface . you have to install libjpeg first. It’s a library that’s being used by the tool to optimize the file. yum -y install libjpeg Code (markup): Once done, we can go ahead witht he installation of jpegoptim by downloading, compiling and installing the tool. cd /tmp mkdir jpegoptim cd jpegoptim wget http://www.kokkonen.net/tjko/src/jpegoptim-1.3.0.tar.gz zcat jpegoptim-1.3.0.tar.gz | tar xf - cd jpegoptim-1.3.0 ./configure make make strip make install Code (markup): And now, start the optimization. Here’s the command to find all the jpeg files on your server. find / -iregex '.*\.\(jpg\|JPG\|jpeg\|JPG\)' -type f -exec /usr/local/bin/jpegoptim --strip-all {} ';' Code (markup): And you’re done. Best wishes , Mesut References: Google Adsense
Have you considered using YSlow Smush.It? If you use wordpress I think there is a plugin that will automatically compress all of your images. If not it's easy enough to do manually. I think that load time is a big factor, but with fast connections of today image size is always the only issue.