PHP Imagick getImageArtifact () Function

PHP

Syntax:
bool Imagick::getImageArtifact (string $artifact)
Parameters:This function takes one parameter $artifact,which contains the name of the artifact.Return value:This function returns a value artifact on success.Errors / Exceptions:this function throws a exceptionImagickException on error.The following program illustrates function Imagick::getImageArtifact()in PHP:Program :  
// Create new Imagick objects $imagick = new Imagi ck ( ` https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-9.png ` ) ;  
// Apply the setImageArtifact() function $imagick -> setImageArtifact ( "artifact_name" , "artifact_value" );  
// Apply the getImageArtifact() function $artifact_name = $imagick -> getImageArtifact ( " artifact_name " ); echo $artifact_name ;  
?>
Output:
artifact_value
Link: https:// www .php.net / manual / en / imagick.getimageartifact.php



Get Solution for free from DataCamp guru