mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: actually optimize the image!
This commit is contained in:
parent
0f9a22b572
commit
d845dd2225
@ -153,7 +153,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
|
|
||||||
return false if $?.exitstatus != 0
|
return false if $?.exitstatus != 0
|
||||||
|
|
||||||
ImageOptim.new.optimize_image(to) rescue nil
|
ImageOptim.new.optimize_image!(to) rescue nil
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ class LetterAvatar
|
|||||||
|
|
||||||
`convert #{instructions.join(" ")}`
|
`convert #{instructions.join(" ")}`
|
||||||
|
|
||||||
ImageOptim.new.optimize_image(filename) rescue nil
|
ImageOptim.new.optimize_image!(filename) rescue nil
|
||||||
|
|
||||||
filename
|
filename
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user