Imagick::setImageProperty


wizard apg

SETS an image property.



<?php

bool 
public Imagick::setImageProperty(
                                   
string $name
                                   
string $value
                                                
);

?>

$name


The property name.



$value


The value of property.





This function returns an TRUE on success.

This method is available if Imagick has been compiled against ImageMagick version 6.3.2 or newer.

Warning

The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.



  1 EXERCISE   

<?php

$image1 
= new Imagick();

$str1img 'img/jpg/3200.jpg';

$image1->newimage(200200'cyan');

$image1->setImageProperty('creator''CREATOR: zerof');

echo 
basename($str1img) . '<br><br>';

echo 
'Creator: ' $image1->getImageProperty('creator');
 
?>
<br><br>
<img src="<?php echo $str1img?>"
 alt="<?php echo $str1img?>
 title="<?php echo $str1img?>">
 
 

 RESULT   

3200.jpg

Creator: CREATOR:zerof

img/jpg/3200.jpg apr