Merge pull request #4064 from darix/use-sRGB-icm-profile

Use sRGB Color Profile when converting images
This commit is contained in:
Régis Hanol 2016-03-08 08:14:13 +01:00
commit 712b7af6d5
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ class OptimizedImage < ActiveRecord::Base
-interpolate bicubic
-unsharp 2x0.5+0.7+0
-quality 98
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
}
end
@ -130,6 +131,7 @@ class OptimizedImage < ActiveRecord::Base
-gravity center
-background transparent
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
}
end

BIN
vendor/data/RT_sRGB.icm vendored Normal file

Binary file not shown.