mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-10 23:28:04 -04:00
we don't care about convert output/errors
This commit is contained in:
parent
9b489506d0
commit
803083fc2e
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.convert_with(instructions, to)
|
def self.convert_with(instructions, to)
|
||||||
`convert #{instructions.join(" ")}`
|
`convert #{instructions.join(" ")} &> /dev/null`
|
||||||
return false if $?.exitstatus != 0
|
return false if $?.exitstatus != 0
|
||||||
|
|
||||||
ImageOptim.new.optimize_image!(to)
|
ImageOptim.new.optimize_image!(to)
|
||||||
|
|
Loading…
Reference in a new issue