mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 08:12:01 +08:00
we don't care about convert output/errors
This commit is contained in:
parent
7f35538bfc
commit
38090b0b94
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user