Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 440 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 440 Bytes

Image Optimizer

This is a simple Ruby script that losslessly optimizes JPG, GIF and JPG files in a given directory, recursively.

The required tools are gifsicle, jpegtran, and pngcrush.

To run:

?> ruby optimize.rb dir/

A similar Rake task is included, but it only scans the ./public/images folder at this time.

?> rake optimize

or

?> bundle exec rake optimize

These scripts have only been tested under MacOS X.