+

PHP Imagick setImageProperty () function

Syntax:
bool Imagick::setImageProperty (string $name, string  $value)
Parameters:This function takes two parameters as above and described below:
  • $name: this parameter contains the name of the property.
  • $value:this parameter contains the value of the property.
Return value: this function returns TRUE on success.The following program illustrates the Imagick::setImageProperty() functionin PHP:Program:  
// Create a new Imagick object $imagick = new Imagick ( ` https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-9.png ` );  
// Apply the setImageProperty() function $imagick -> setImageProperty ( "property_name" , "property_value" );  
// Apply the getImageProperty() function $property_name = $imagick -> getImageProperty ( " property_name " ); echo $property_name ; ?>
Output:
property_value
Link: https:// www .php.net / manual / en / imagick.setimageproperty.php
Get Solution for free from DataCamp guru