CodeForTucson / codefortucson-site

Current Code for Tucson website
http://www.codefortucson.org
GNU General Public License v2.0
3 stars 8 forks source link

Optimizes the background image #40

Closed dmsnell closed 9 years ago

dmsnell commented 9 years ago

Was 295K is now 89K

convert hero_bg.jpg -resize 1600x -quality 100 hero_bg_op.jpg
jpegoptim -m85 -s --all-progressive hero_bg_op.jpg

This resizes to 1600 pixels wide and preserves the aspect ratio. It also uses jpegoptim to optimize the encoding tables for the output JPEG, set quality to "85%", strip all EXIF tags, and save as a progressive image.

At a later time I think we can make this an automated process during the build stage, but for now it's a quick and easy way to speed up the front page load.