lib/image_optim/worker/optipng.rb in image_optim-0.9.1 vs lib/image_optim/worker/optipng.rb in image_optim-0.10.0

- old
+ new

@@ -1,5 +1,7 @@ require 'image_optim/worker' +require 'image_optim/option_helpers' +require 'image_optim/true_false_nil' class ImageOptim class Worker class Optipng < Worker option(:level, 6, 'Optimization level preset 0 is least, 7 is best'){ |v| OptionHelpers.limit_with_range(v.to_i, 0..7) }