Imagick::getImageProperty
PHP function
Edit on GitHub ✎
(PECL imagick 2, PECL imagick 3)
Returns the named image property
Description
Imagick::getImageProperty(string $name): string
Returns the named image property. 0x632
Parameters
namename of the property (for example Exif:DateTime)
Return Values
Returns a string containing the image property, false if a property with the given name does not exist.
Examples
Using Imagick::getImageProperty():
Setting and getting image property
php
<?php
$image = new Imagick();
$image->newImage(300, 200, "black");
$image->setImageProperty('Exif:Make', 'Imagick');
echo $image->getImageProperty('Exif:Make');
?>