lib/image_optim/worker/pngout.rb in image_optim-0.17.1 vs lib/image_optim/worker/pngout.rb in image_optim-0.18.0
- old
+ new
@@ -22,10 +22,17 @@
def run_order
-1
end
def optimize(src, dst)
- args = %W[-k#{copy_chunks ? 1 : 0} -s#{strategy} -q -y #{src} #{dst}]
+ args = %W[
+ -k#{copy_chunks ? 1 : 0}
+ -s#{strategy}
+ -q
+ -y
+ #{src}
+ #{dst}
+ ]
execute(:pngout, *args) && optimized?(src, dst)
end
end
end
end