Skip to content

Ruby script and Rake task that will run image optimization tools against a given directory

License

Notifications You must be signed in to change notification settings

phobetron/image-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ruby script and Rake task that will run image optimization tools against a given directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages