= Unknown)Gmagick::setimageprofile — Adds a named profile to the Gmagick object說(shuō)明public Gmagick::setimageprofil">

Gmagick::setimageprofile

(PECL gmagick >= Unknown)

Gmagick::setimageprofileAdds a named profile to the Gmagick object

說(shuō)明

public 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.

參數(shù)

name

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

profile

The profile.

返回值

The Gmagick object on success.

錯(cuò)誤/異常

錯(cuò)誤時(shí)拋出 GmagickException。