lib/image_optim/worker/pngcrush.rb in image_optim-0.17.1 vs lib/image_optim/worker/pngcrush.rb in image_optim-0.18.0
- old
+ new
@@ -23,10 +23,17 @@
def run_order
-1
end
def optimize(src, dst)
- args = %W[-reduce -cc -q -- #{src} #{dst}]
+ args = %W[
+ -reduce
+ -cc
+ -q
+ --
+ #{src}
+ #{dst}
+ ]
chunks.each do |chunk|
args.unshift '-rem', chunk
end
args.unshift '-fix' if fix
args.unshift '-brute' if brute