diff --git a/app/models/optimized_image.rb b/app/models/optimized_image.rb index 13fe45ac241..1461dfad4a9 100644 --- a/app/models/optimized_image.rb +++ b/app/models/optimized_image.rb @@ -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