mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 03:09:29 +08:00
fix the build
This commit is contained in:
parent
407f3abffb
commit
2c7b47fc40
|
@ -36,7 +36,6 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
FileUtils.cp(original_path, temp_path)
|
FileUtils.cp(original_path, temp_path)
|
||||||
resized = true
|
resized = true
|
||||||
else
|
else
|
||||||
original_path << "[0]" unless opts[:allow_animation]
|
|
||||||
resized = resize(original_path, temp_path, width, height)
|
resized = resize(original_path, temp_path, width, height)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -80,6 +79,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.resize(from, to, width, height)
|
def self.resize(from, to, width, height)
|
||||||
|
from << "[0]" unless opts[:allow_animation]
|
||||||
# NOTE: ORDER is important!
|
# NOTE: ORDER is important!
|
||||||
instructions = %W{
|
instructions = %W{
|
||||||
#{from}
|
#{from}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user