mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
fix the build
This commit is contained in:
parent
407f3abffb
commit
2c7b47fc40
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,6 @@ class OptimizedImage < ActiveRecord::Base
|
|||
FileUtils.cp(original_path, temp_path)
|
||||
resized = true
|
||||
else
|
||||
original_path << "[0]" unless opts[:allow_animation]
|
||||
resized = resize(original_path, temp_path, width, height)
|
||||
end
|
||||
|
||||
|
@ -80,6 +79,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.resize(from, to, width, height)
|
||||
from << "[0]" unless opts[:allow_animation]
|
||||
# NOTE: ORDER is important!
|
||||
instructions = %W{
|
||||
#{from}
|
||||
|
|
Loading…
Reference in a new issue