Method: Magick::Image#delete_profile

Defined in:
ext/RMagick/rmimage.c

#delete_profile(name) ⇒ Object

Call ProfileImage.

Ruby usage:

- @verbatim Image#delete_profile(name) @endverbatim

Parameters:

  • self

    this object

  • name

    the name of the profile to be deleted

Returns:

  • self

[View source]

4544
4545
4546
4547
4548
4549
4550
4551
4552
# File 'ext/RMagick/rmimage.c', line 4544

VALUE
Image_delete_profile(VALUE self, VALUE name)
{
    Image *image = rm_check_frozen(self);
    (void) ProfileImage(image, StringValuePtr(name), NULL, 0, MagickTrue);
    rm_check_image_exception(image, RetainOnError);

    return self;
}