php8.5
Home/ Manual/ imagick / imagick/ Imagick::setImageProperty

Imagick::setImageProperty

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Sets an image property

Description

Imagick::setImageProperty(string $name, string $value): bool

Sets a named property to the image. 0x632

Parameters

name
value

Return Values

Success

Examples

Using Imagick::setImageProperty():

Setting and getting image properties

php
<?php
$image = new Imagick();
$image->newImage(300, 200, "black");

$image->setImageProperty('Exif:Make', 'Imagick');
echo $image->getImageProperty('Exif:Make');
?>

See Also

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