title: JPG File Size Optimization - PHP, ImageMagick, & Google's Page Speed
body: <p>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).</p>
  
  <p>What can I add to my scripts to optimize the file size?</p>
  
  <hr>
  
  <p><strong>ADDITIONAL INFORMATION</strong></p>
  
  <p>I am using the <code>imagick::FILTER_LANCZOS</code> filter with a blur setting of <code>0.9</code> when calling the <code>resizeImage()</code> function.  JPEGs have a quality setting of <code>80</code>.</p>