Skip to content

Commit

Permalink
Merge pull request #4064 from darix/use-sRGB-icm-profile
Browse files Browse the repository at this point in the history
Use sRGB Color Profile when converting images
  • Loading branch information
ZogStriP committed Mar 8, 2016
2 parents d783a39 + 320d5d6 commit 712b7af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/optimized_image.rb
Expand Up @@ -108,6 +108,7 @@ def self.resize_instructions(from, to, dimensions, opts={})
-interpolate bicubic
-unsharp 2x0.5+0.7+0
-quality 98
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
}
end
Expand All @@ -130,6 +131,7 @@ def self.downsize_instructions(from, to, dimensions, opts={})
-gravity center
-background transparent
-resize #{dimensions}#{!!opts[:force_aspect_ratio] ? "\\!" : "\\>"}
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
}
end
Expand Down
Binary file added vendor/data/RT_sRGB.icm
Binary file not shown.

0 comments on commit 712b7af

Please sign in to comment.