FIX: resize emoji job was generate errors
This commit is contained in:
parent
7fbf902d09
commit
5c0fb34eee
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue