PHP | Imagick deleteImageArtifact() Function
The Imagick::deleteImageArtifact() function is an inbuilt function in PHP which is used to delete the image artifact. The main difference between image properties and image artifacts is that properties are public whereas artifacts are private.
Syntax:
bool Imagick::deleteImageArtifact( string $artifact )
Parameters: This function accepts a single parameter $artifact which holds the name of artifact.
Return Value: This function returns TRUE on success.
Errors/Exceptions: This function throws ImagickException on error.
Below program illustrates the Imagick::deleteImageArtifact() function in PHP:
Program:
<?php
$imagick = new Imagick(
$imagick ->setImageArtifact( "artifact_name" , "artifact_value" );
$imagick ->deleteImageArtifact( "artifact_name" );
?>
|
Output:
A Database Error Occurred
Reference: https://www.php.net/manual/en/imagick.getimageartifact.php
Last Updated :
16 Oct, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...