PHP | Imagick removeImageProfile() Function Last Updated : 17 Dec, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::removeImageProfile() function is an inbuilt function in PHP which is used to remove the named image profile. Syntax: string Imagick::removeImageProfile( string $name ) Parameters: This function accepts a single parameter $name which holds the name of the profile. Return Value: This function returns a string containing the profile. Exceptions: This function throws ImagickException on error. Below programs illustrate the Imagick::removeImageProfile() function in PHP: Program 1: php <?php // Create a new Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Add two profiles $imagick->setImageProfile('name1', 'profile1'); $imagick->setImageProfile('name2', 'profile2'); // Remove the first profile $imagick->removeImageProfile('name1'); // Get all the profiles $profile = $imagick->getImageProfiles('*'); print("<pre>".print_r($profile, true)."</pre>"); ?> Output: Array ( [name2] => profile2 ) Program 2: php <?php // Create a new Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Add two profiles $imagick->setImageProfile('name1', 'profile1'); $imagick->setImageProfile('name2', 'profile2'); // Remove all profiles $imagick->removeImageProfile('name1'); $imagick->removeImageProfile('name2'); // Get all the profiles $profile = $imagick->getImageProfiles('*'); print("<pre>".print_r($profile, true)."</pre>"); ?> Output: // Empty array because we removed all the profiles Array ( ) Reference: https://www.php.net/manual/en/imagick.removeimageprofile.php Comment More infoAdvertise with us Next Article PHP | Imagick removeImageProfile() Function gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick setImageProfile() Function The Imagick::setImageProfile() function is an inbuilt function in PHP which is used to set the named profile to the Imagick object. Syntax: bool Imagick::setImageProfile( string $name, string $profile ) Parameters:This function accepts two parameters as mentioned above and described below: $name: It 1 min read PHP | Imagick removeImage() Function The Imagick::removeImage() function is an inbuilt function in PHP which is used to remove an image from the image list. This function removes the current image which is pointed by the cursor. Syntax: bool Imagick::removeImage( void ) Parameters: This function doesnât accepts any parameters. Return V 1 min read PHP | Imagick readImageFile() Function The Imagick::readImageFile() function is an inbuilt function in PHP which is used to read image from open filehandle. Syntax: bool Imagick::readImageFile( resource $filename, string $fileName = NULL ) Parameters:This function accepts two parameters as mentioned above and described below: $filehandle 1 min read PHP | Imagick writeImageFile() Function The Imagick::writeImageFile() function is an inbuilt function in PHP which is used to write the image sequence to an open filehandle. The handle must be opened with fopen. Syntax: bool Imagick::writeImageFile( resource $filehandle, string $format ) Parameters: This function accepts two parameters as 2 min read PHP | Imagick writeImagesFile() Function The Imagick::writeImagesFile() function is an inbuilt function in PHP which is used to writes all image frames into an open filehandle. This method can be used to write animated gifs or other multi-frame images into open filehandle. Syntax:bool Imagick::writeImagesFile( resource $filehandle, string 2 min read Like