FIX: resize emoji job was generate errors

This commit is contained in:
Régis Hanol 2015-10-30 23:31:30 +01:00
parent 7fbf902d09
commit 5c0fb34eee
2 changed files with 1 additions and 5 deletions

View File

@ -11,7 +11,7 @@ module Jobs
force_aspect_ratio: SiteSetting.enforce_square_emoji
}
# make sure emoji aren't too big
OptimizedImage.downsize(path, path, 100, 100, opts)
OptimizedImage.downsize(path, path, "100x100", opts)
end
end

View File

@ -142,10 +142,6 @@ class OptimizedImage < ActiveRecord::Base
optimize("resize", from, to, "#{width}x#{height}", opts)
end
def self.downsize(from, to, max_width, max_height, opts={})
optimize("downsize", from, to, "#{max_width}x#{max_height}", opts)
end
def self.downsize(from, to, dimensions, opts={})
optimize("downsize", from, to, dimensions, opts)
end