mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: use 'resize' option instead of 'thumbnail' when downsizing emojis
This commit is contained in:
parent
6493e4f641
commit
a87083fa76
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user