Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Imagick::previousImageImagick::quantizeImage>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::profileImage

(PECL imagick 2, PECL imagick 3)

Imagick::profileImage — Adds or removes a profile from an image

Description

public function Imagick::profileImage(string $name, string $profile = ?): bool

Adds or removes a ICC, IPTC, or generic profile from an image. If the profile is null, it is removed from the image rather than added.

To remove every single profile from the image use '*' as the name and null for the profile.

Parameters

name

The profile name.

profile

The profile data. If null, the specified profile will be deleted.

Return Values

Returns true on success.

Errors/Exceptions

Throws ImagickException on error.


<Imagick::previousImageImagick::quantizeImage>
^ImagickLast updated: Mon, 26 Oct 2026