©
This document uses PHP Chinese website manual Release
(PECL imagick 2.0.0)
Imagick::setImageProperty — Sets an image property
$name
, string $value
)Sets a named property to the image. 此方法在Imagick基于ImageMagick 6.3.2以上版本编译时可用。
name
value
Example #1 Using Imagick::setImageProperty() :
Setting and getting image properties
<?php
$image = new Imagick ();
$image -> newImage ( 300 , 200 , "black" );
$image -> setImageProperty ( 'Exif:Make' , 'Imagick' );
echo $image -> getImageProperty ( 'Exif:Make' );
?>
成功时返回 TRUE
。