PHP | Imagick getImageProperty() Function Last Updated : 31 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::getImageProperty() function is an inbuilt function in PHP which is used to get the image property. The main difference between image properties and image artifacts is that the properties are public whereas artifacts are private. Syntax: string Imagick::getImageProperty( string $name ) Parameters: This function accepts single parameter $name which holds the name of property. Return Value: This function returns the property value on success. Below program illustrates the Imagick::getImageProperty() function in PHP: Program: php <?php // Create a new Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Apply the setImageProperty() function $imagick->setImageProperty("property_name", "property_value"); // Apply the getImageProperty() function $property_name = $imagick->getImageProperty("property_name"); echo $property_name; ?> Output: property_value Reference: https://www.php.net/manual/en/imagick.getimageproperty.php Comment More infoAdvertise with us Next Article PHP | Imagick getImageProperty() Function gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick getImageProperties() Function The Imagick::getImageProperties() function is an inbuilt function in PHP which is used to get the image properties.Syntax:Â Â array Imagick::getImageProperties( string $pattern, string $includes_values ) Parameters: This function accepts two parameters as mentioned above and described below:Â Â $patte 2 min read 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 | Imagick getImageType() Function The Imagick::getImageType() function is an inbuilt function in PHP which is used to get the potential image type. Syntax: int Imagick::getImageType( void ) Parameters: This function doesnât accepts any parameter. Return Value: This function returns an integer value corresponding to one of IMGTYPE co 1 min read PHP | Imagick getImageGeometry() Function The Imagick::getImageGeometry() function is an inbuilt function in PHP which is used to get the width and height as an associative array. Syntax: array Imagick::getImageGeometry( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns the width and height 1 min read Like