Merge pull request #4064 from darix/use-sRGB-icm-profile
Use sRGB Color Profile when converting images
This commit is contained in:
commit
712b7af6d5
2 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
-interpolate bicubic
|
-interpolate bicubic
|
||||||
-unsharp 2x0.5+0.7+0
|
-unsharp 2x0.5+0.7+0
|
||||||
-quality 98
|
-quality 98
|
||||||
|
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
||||||
#{to}
|
#{to}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -130,6 +131,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
-gravity center
|
-gravity center
|
||||||
-background transparent
|
-background transparent
|
||||||
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
|
||||||
|
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
||||||
#{to}
|
#{to}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
BIN
vendor/data/RT_sRGB.icm
vendored
Normal file
BIN
vendor/data/RT_sRGB.icm
vendored
Normal file
Binary file not shown.
Reference in a new issue