PHP | Gmagick getimageprofile() Function Last Updated : 21 Jan, 2020 Comments Improve Suggest changes Like Article Like Report The Gmagick::getimageprofile() function is an inbuilt function in PHP which is used to get the named image profile. Syntax: string Gmagick::getimageprofile( string $name ) Parameters: This function accepts a single parameter $name which holds the name of the profile. Return Value: This function returns a string value containing the value of profile. Exceptions: This function throws GmagickException on error. Below given programs illustrate the Gmagick::getimageprofile() function in PHP: Used Image: Program 1: php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Set the image profile $gmagick->setimageprofile('profile_name', 'profile_value'); // Get the image profile $profile = $gmagick->getimageprofile("profile_name"); echo $profile; ?> Output: profile_value Program 2: php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Set the blur using image profile $gmagick->setImageProfile('blur', '10'); // Use the image profile $gmagick->blurimage($gmagick->getImageProfile('blur'), 9); // Display the image header("Content-Type: image/png"); echo $gmagick->getImageBlob(); ?> Output: Reference: https://www.php.net/manual/en/gmagick.getimageprofile.php Comment More infoAdvertise with us Next Article PHP | Gmagick getimageprofile() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Gmagick Similar Reads PHP | Imagick getImageProfile() Function The Imagick::getImageProfile() function is an inbuilt function in PHP which is used to return the named image profile. Syntax: string Imagick::getImageProfile( string $name ) Parameters: This function accepts a single parameter $name which holds the name of profile. Return Value: This function retur 1 min read PHP | Imagick getImageProfiles() Function The Imagick::getImageProfiles() function is an inbuilt function in PHP which is used to get the image profiles. Syntax: array Imagick::getImageProfiles( string $pattern = "*", bool $include_values = TRUE ) Parameters: This function accepts two parameters as mentioned above and described below: $patt 2 min read PHP | Gmagick getimagefilename() Function The Gmagick::getimagefilename() function is an inbuilt function in PHP which is used to get the filename of a particular image in a sequence. Syntax: string Gmagick::getimagefilename( void ) Parameters: This function doesnât accept any parameter. Return Value: This function returns an string value c 1 min read PHP | Gmagick getimagetype() Function The Gmagick::getimagetype() function is an inbuilt function in PHP which is used to get the image type. Syntax: int Gmagick::getimagetype( void ) Parameters: This function doesnât accept any parameters. Return Value: This function returns an integer value corresponding to one of the IMGTYPE constant 1 min read PHP | Gmagick getImageDispose() Function The Gmagick::getImageDispose() function is an inbuilt function in PHP which is used to return the image disposal method. Syntax: int Gmagick::getImageDispose( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the dispose method on success. Below prog 1 min read Like