mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: image orientation wasn't properly working
This commit is contained in:
@@ -115,6 +115,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||
%W{
|
||||
convert
|
||||
#{from}[0]
|
||||
-auto-orient
|
||||
-gravity center
|
||||
-background transparent
|
||||
-thumbnail #{dimensions}^
|
||||
@@ -146,6 +147,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||
%W{
|
||||
convert
|
||||
#{from}[0]
|
||||
-auto-orient
|
||||
-gravity north
|
||||
-background transparent
|
||||
-thumbnail #{opts[:width]}
|
||||
@@ -176,6 +178,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||
%W{
|
||||
convert
|
||||
#{from}[0]
|
||||
-auto-orient
|
||||
-gravity center
|
||||
-background transparent
|
||||
-resize #{dimensions}
|
||||
|
||||
Reference in New Issue
Block a user