I m getting this error when tring to see the speed of my website in google page speed:

Optimize images Properly formatting and compressing images can save many bytes of data. Optimize the following images to reduce their size by 20.5KiB (42% reduction). Losslessly compressing http://waybackmachinedownloader.com/en/img/home_img.jpg could save 20.5KiB (42% reduction).

I can't find how can I compress jpg images. I guess it should be with htaccess but I can't find how. This website is developed in php.


  • Jpeg is a lossy compression....superuser.com/questions/433659/… – Moab Jan 19 '16 at 22:51
  • Nah this is a bug or something silly on Google's end. JPGs are already compressed and the compression is pretty damn optimal (for the quality set during JPG encoding of course). It's nonsensical to recommend compressing something that's already compressed. – misha256 Jan 19 '16 at 22:53
  • @misha256 all you can do is reduce the quality of the image to reduce size. – Moab Jan 19 '16 at 23:16

JPEG images are already compressed; any attempt to compress further with Zip, LHA or other tool rarely is of use. There are two ways to reduce the file size, both of which can be applied at the same time:

  1. Reduce the image size, e.g. scale down from 1024x768 to 800x600 pixels.

  2. Reduce the image quality. JPEG uses a lossy but fast compression scheme. If an image is saved at a lower JPEG quality setting, the file size is reduced, albeit with some loss of detail.

There are a number of free tools for different platforms such as GIMP (Linux, Windows etc.) and IrfanView (Windows, but works well in Wine) that can perform both operations on the image. Though you may need to experiment initially to find settings you find pleasing, you can standardize on those.

  • Worth mentioning is that if one would like to do No. 1 or No. 2, it should be done off the original uncompressed image. – misha256 Jan 20 '16 at 1:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.