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…
Reference in New Issue