mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
BUGFIX: uploaded avatar aren't cropped
This commit is contained in:
parent
bc7730e0dd
commit
16b1379b01
@ -70,7 +70,9 @@ class OptimizedImage < ActiveRecord::Base
|
||||
def self.resize(from, to, width, height)
|
||||
instructions = %W{
|
||||
#{from}
|
||||
-resize #{width}x#{height}
|
||||
-gravity center
|
||||
-thumbnail #{width}x#{height}^
|
||||
-extent #{width}x#{height}
|
||||
-background transparent
|
||||
-interpolate bicubic
|
||||
-unsharp 2x0.5+0.7+0
|
||||
|
Loading…
x
Reference in New Issue
Block a user