2015-01-29 12:36:35 -05:00
|
|
|
module Jobs
|
|
|
|
|
|
|
|
class ResizeEmoji < Jobs::Base
|
|
|
|
|
|
|
|
def execute(args)
|
|
|
|
path = args[:path]
|
|
|
|
return unless File.exists?(path)
|
|
|
|
|
|
|
|
# make sure emoji aren't too big
|
2015-02-20 11:24:37 -05:00
|
|
|
OptimizedImage.downsize(path, path, 60, 60, true)
|
2015-01-29 12:36:35 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|