PHP, ImageMagick, Google's Page Speed, & JPG File Size Optimization

Posted by Sonny on Stack Overflow See other posts from Stack Overflow or by Sonny
Published on 2010-03-29T17:49:33Z Indexed on 2010/03/30 20:43 UTC
Read the original article Hit count: 688

Filed under:
|
|
|
|

I have photo gallery code that does image re-sizing and thumbnail creation. I use ImageMagick to do this. I ran a gallery page through Google's Page Speed tool and it revealed that the re-sized images and thumbnails both have about an extra 10KB of data (JPEG files specifically).

What can I add to my scripts to optimize the file size?


ADDITIONAL INFORMATION

I am using the imagick::FILTER_LANCZOS filter with a blur setting of 0.9 when calling the resizeImage() function. JPEGs have a quality setting of 80.

© Stack Overflow or respective owner

Related posts about php

Related posts about imagemagick