diff --git a/app/jobs/regular/resize_emoji.rb b/app/jobs/regular/resize_emoji.rb index 61ae0248c2e..e46879f8e07 100644 --- a/app/jobs/regular/resize_emoji.rb +++ b/app/jobs/regular/resize_emoji.rb @@ -11,7 +11,7 @@ module Jobs force_aspect_ratio: SiteSetting.enforce_square_emoji } # make sure emoji aren't too big - OptimizedImage.downsize(path, path, 60, 60, opts) + OptimizedImage.downsize(path, path, 100, 100, opts) end end diff --git a/app/models/optimized_image.rb b/app/models/optimized_image.rb index f736ea4aaae..6fdc3869ed3 100644 --- a/app/models/optimized_image.rb +++ b/app/models/optimized_image.rb @@ -112,7 +112,7 @@ class OptimizedImage < ActiveRecord::Base #{from}[0] -gravity center -background transparent - -thumbnail #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"} + -resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"} #{to} } end @@ -123,7 +123,7 @@ class OptimizedImage < ActiveRecord::Base -coalesce -gravity center -background transparent - -thumbnail #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"} + -resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"} #{to} } end