PHP | Gmagick profileimage() Function Last Updated : 21 Jan, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The Gmagick::profileimage() function is an inbuilt function in PHP which is used to add or remove a profile from an image. Syntax: Gmagick Gmagick::profileimage( float $name, float $profile ) Parameters: This function accept two parameters as mentioned above and described below: $name: It specifies the name of the profile. $profile: It specifies the value of the profile. Return Value: This function returns the Gmagick object with profile. Exceptions: This function throws GmagickException on error. Below given programs illustrate the Gmagick::profileimage() function in PHP: Used Image: Program 1 (Add profile): php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Add profile to the image $gmagick->profileimage('my_profile_name', 'my_profile_value'); // Output the image echo $gmagick->getimageprofile('my_profile_name'); ?> Output: my_profile_value Program 2 (Remove profiles): php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Add profile to the image $gmagick->profileimage('my_profile_name', 'my_profile_value'); // Remove all profiles $gmagick->profileimage('*', NULL); try { $profileValue = $gmagick->getimageprofile('my_profile_name'); } catch (\Throwable $e) { echo "No such profile exists"; } ?> Output: No such profile exists Reference: https://www.php.net/manual/en/gmagick.profileimage.php Comment More infoAdvertise with us Next Article PHP | Gmagick profileimage() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Gmagick Similar Reads PHP | Gmagick rollimage() Function The Gmagick::rollimage() function is an inbuilt function in PHP which is used to roll an image.Syntax:Â Â Gmagick Gmagick::rollimage( $x, $y ) Parameters: This function accepts two parameters as mentioned above and described below:Â Â $x: This parameter stores the value of the X offset.$y: This parame 1 min read PHP | Gmagick writeimage() Function The Gmagick::writeimage() function is an inbuilt function in PHP which is used to write an image to the specified filename. Syntax: Gmagick Gmagick::writeimage( string $filename, bool $all_frames ) Parameters:This function accepts two parameters as mentioned above and described below: $filename: It 2 min read PHP | Gmagick raiseimage() Function The Gmagick::raiseimage() function is an inbuilt function in PHP which is used to create a simulated three-dimensional button-like effect by creating the lightning and darkening the edges of the image. The width and height of raise_info define the width of the vertical and horizontal edge of the eff 2 min read PHP | Gmagick trimimage() function The Gmagick::trimimage() function is an inbuilt function in PHP which is used to remove edges that are the background color from the image. Syntax: Gmagick Gmagick::trimimage( float $fuzz ) Parameters:This function accepts a single parameter $fuzz which holds the fuzz. Return Value: This function re 1 min read PHP | Gmagick resizeimage() Function The Gmagick::resizeimage() function is an inbuilt function in PHP which is used to scale an image in given dimensions with a filter.Syntax:Â Â Gmagick Gmagick::resizeimage( $width, $height, $filter, $blur) Parameters: This function accepts four parameters as mentioned above and described below:Â Â $wi 2 min read Like