Method: Magick::Image#color_profile=

Defined in:
ext/RMagick/rmimage.cpp

#color_profile=(profile) ⇒ String?

Set the ICC color profile.

  • Pass nil to remove any existing profile.

  • Removes any existing profile before adding the new one.

Parameters:

  • profile (String, nil)

    the profile to set

Returns:

  • (String, nil)

    the given profile



3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
# File 'ext/RMagick/rmimage.cpp', line 3053

VALUE
Image_color_profile_eq(VALUE self, VALUE profile)
{
    Image_delete_profile(self, rb_str_new2("ICC"));
    if (profile != Qnil)
    {
        set_profile(self, "ICC", profile);
    }
    return profile;
}