title: JPG and PNG compression, PHP and Ubunutu with jpegtran and pngcrush
body: <p>I have several hundred images I need to optimise and compress. I have found the following script on github: <a href="https://gist.github.com/ryansully/1720244" rel="nofollow">https://gist.github.com/ryansully/1720244</a> which works ok. However the filesizes of the jpgs are not much smaller after compression. </p>
  
  <p>For example, one file before compression is <code>870.24 KB</code>, after it is <code>724.97 KB</code>. But, if I run the same image through <a href="http://www.compressjpg.com" rel="nofollow">compressjpg.com</a> it reduces the filesize to around <code>290 KB</code>. </p>
  
  <p>How can I achieve this level of compression with jpegtran? Is it even possible?</p>