mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: auto orientation code causing grey images to appear blackish
This commit is contained in:
parent
f4609fd6ae
commit
f680374820
@ -146,7 +146,7 @@ class Upload < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.fix_image_orientation(path)
|
||||
`convert #{path} -auto-orient #{path}`
|
||||
`convert #{path} -set colorspace RGB -auto-orient #{path}`
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user