mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-04 04:42:02 -05:00
15 lines
246 B
Ruby
15 lines
246 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.resize(path, path, 60, 60, true)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|