Class: Magick::Image
- Inherits:
-
Object
- Object
- Magick::Image
- Defined in:
- lib/core_ext/magick.rb
Constant Summary collapse
- SCT_CMYK_ICC =
File.dirname(__FILE__) + '/profiles/cmyk-profile.icc'
- SCT_SRGB_ICC =
File.dirname(__FILE__) + '/profiles/srgb-profile.icc'
Instance Method Summary collapse
Instance Method Details
#ensure_rgb! ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/core_ext/magick.rb', line 6 def ensure_rgb! if rgb? strip! elsif cmyk? add_profile SCT_CMYK_ICC if color_profile == nil add_profile SCT_SRGB_ICC else puts 'unkown colorspace!' end end |