title: Advanced usage of jpegoptim
body: <p>I am currently running the below jpegoptim command via cron to have jpegoptim look for jpg files to compress.</p>
  
  <blockquote>
    <p>find /home/public_html/public/uploads -name '*.jpg' -type f -print0 | xargs -0 jpegoptim -o -p --size=300k --strip-all</p>
  </blockquote>
  
  <p>This works, but is there a way to include .jpeg, .JPG, and .JPEG without having to run the same command multiple times? Also, is it okay to run every hour, or would this keep compressing the same files eventually reducing the quality?</p>