image_optim_tolerance
Tests that an image is compressed within a specified tolerance. image_optim does all the heavy lifting.
Installation
Install the gem
[sudo] gem install image\_optim\_tolerance
Instead of installing the gem directly via the command line, we recommend using Bundler to manage your gem dependencies.
Usage
Usage: image\_optim\_tolerance path [, path2 [, pathN]]
Examples:
image\_optim\_tolerance /path/to/image.png /path/to/other/image.jpg
image\_optim\_tolerance -t 5 /path/to/image.png /path/to/other/image.jpg
@options:
-t, --tolerance NUMBER the maximum allowed compression tolerance (in percentage)
-a, --[no-]aggressive if aggressive, also return the non-failing (acceptable) offenders if there are other offenders
-v, --[no-]verbose run verbosely
-h, --help shows this help message
Configuration
See image_optim for configuration options. e.g. use a .image_optim.yml
file.