BUGFIX: keep transparent background in avatars

This commit is contained in:
Régis Hanol 2014-06-11 16:01:01 +02:00
parent 3ac20fb711
commit 2f23ee1830
1 changed files with 2 additions and 1 deletions

View File

@ -68,12 +68,13 @@ class OptimizedImage < ActiveRecord::Base
end
def self.resize(from, to, width, height)
# NOTE: ORDER is important!
instructions = %W{
#{from}
-background transparent
-gravity center
-thumbnail #{width}x#{height}^
-extent #{width}x#{height}
-background transparent
-interpolate bicubic
-unsharp 2x0.5+0.7+0
-quality 98