mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: use 'resize' option instead of 'thumbnail' when downsizing emojis
This commit is contained in:
@@ -11,7 +11,7 @@ module Jobs
|
|||||||
force_aspect_ratio: SiteSetting.enforce_square_emoji
|
force_aspect_ratio: SiteSetting.enforce_square_emoji
|
||||||
}
|
}
|
||||||
# make sure emoji aren't too big
|
# make sure emoji aren't too big
|
||||||
OptimizedImage.downsize(path, path, 60, 60, opts)
|
OptimizedImage.downsize(path, path, 100, 100, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
#{from}[0]
|
#{from}[0]
|
||||||
-gravity center
|
-gravity center
|
||||||
-background transparent
|
-background transparent
|
||||||
-thumbnail #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
||||||
#{to}
|
#{to}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -123,7 +123,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
-coalesce
|
-coalesce
|
||||||
-gravity center
|
-gravity center
|
||||||
-background transparent
|
-background transparent
|
||||||
-thumbnail #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
||||||
#{to}
|
#{to}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user