php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::setimageprofile

Gmagick::setimageprofile

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Adds a named profile to the Gmagick object

Description

Gmagick::setimageprofile(string $name, string $profile): Gmagick

Adds a named profile to the Gmagick object. If a profile with the same name already exists, it is replaced. This method differs from the Gmagick::profileimage() method in that it does not apply any CMS color profiles.

Parameters

name

Name of profile to add or remove: ICC, IPTC, or generic profile.

profile

The profile.

Return Values

The Gmagick object on success.

Errors/Exceptions

Throw

Source: reference/gmagick/gmagick/setimageprofile.xml · from the official PHP manual (php/doc-en)