we don't care about convert output/errors

This commit is contained in:
Régis Hanol 2015-06-04 19:16:52 +02:00
parent 9b489506d0
commit 803083fc2e

View file

@ -159,7 +159,7 @@ class OptimizedImage < ActiveRecord::Base
end
def self.convert_with(instructions, to)
`convert #{instructions.join(" ")}`
`convert #{instructions.join(" ")} &> /dev/null`
return false if $?.exitstatus != 0
ImageOptim.new.optimize_image!(to)