mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
15 lines
248 B
Ruby
15 lines
248 B
Ruby
module Jobs
|
|
|
|
class ResizeEmoji < Jobs::Base
|
|
|
|
def execute(args)
|
|
path = args[:path]
|
|
return unless File.exists?(path)
|
|
|
|
# make sure emoji aren't too big
|
|
OptimizedImage.downsize(path, path, 60, 60, true)
|
|
end
|
|
end
|
|
|
|
end
|