lib/image_optim/worker/pngcrush.rb in image_optim-0.29.0 vs lib/image_optim/worker/pngcrush.rb in image_optim-0.30.0
- old
+ new
@@ -26,11 +26,11 @@
def run_order
-6
end
- def optimize(src, dst)
+ def optimize(src, dst, options = {})
flags = %w[
-reduce
-cc
-q
]
@@ -47,10 +47,10 @@
--
#{src}
#{dst}
]
- execute(:pngcrush, *args) && optimized?(src, dst)
+ execute(:pngcrush, args, options) && optimized?(src, dst)
end
end
end
end