lib/image_optim/worker/pngcrush.rb in image_optim-0.27.0 vs lib/image_optim/worker/pngcrush.rb in image_optim-0.27.1
- old
+ new
@@ -37,11 +37,11 @@
chunks.each do |chunk|
flags.push '-rem', chunk
end
flags.push '-fix' if fix
flags.push '-brute' if brute
- if resolve_bin!(:pngcrush).version >= '1.7.38'
- flags.push '-blacken' if blacken
+ if blacken && resolve_bin!(:pngcrush).version >= '1.7.38'
+ flags.push '-blacken'
end
args = flags + %W[
--
#{src}