PHP | Imagick setImageProperty() Function Last Updated : 31 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::setImageProperty() function is an inbuilt function in PHP which is used to set the image property. The main difference between image properties and image artifacts is that the properties are public whereas artifacts are private. Syntax: bool Imagick::setImageProperty( string $name, string $value ) Parameters: This function accepts two parameters as mentioned above and described below: $name: This parameter holds the name of the property. $value: This parameter holds the value of the property. Return Value: This function returns TRUE on success. Below program illustrates the Imagick::setImageProperty() 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.setimageproperty.php Comment More infoAdvertise with us Next Article PHP | Imagick setImageProperty() 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 setImageOpacity() Function The Imagick::setImageOpacity() function is an inbuilt function in PHP which is used to set the opacity level of an Imagick object. This method is available in ImageMagick 6.3.1 or newer versions. Syntax: bool Imagick::setImageOpacity( $opct ) Parameters: This function accepts single parameter $opct 1 min read PHP | Imagick setImageType() Function The Imagick::setImageType() function is an inbuilt function in PHP which is used to set the image type.Syntax:Â Â bool Imagick::setImageType( int $image_type ) Parameters: This function accepts a single parameter $image_type which contains an integer value corresponding to one of IMGTYPE constants. W 1 min read PHP | Imagick setImageFormat() Function The Imagick::setImageFormat() function is an inbuilt function in PHP which is used to set the format of a particular image in a sequence.Syntax:Â Â bool Imagick::setImageFormat( string $format ) Parameters: This function accepts a single parameter $format which holds a string value of the image forma 1 min read PHP | Imagick setImagePage() Function The Imagick::setImagePage() function is an inbuilt function in PHP which is used to set the image page geometry. Syntax: bool Imagick::setImagePage(int $width, int $height, int $x, int $y ) Parameters: This function accepts four parameters as mentioned above and described below: $width: It specifies 1 min read PHP | Imagick setImageDispose() Function The Imagick::setImageDispose() function is an inbuilt function in PHP which is used to sets the image disposal method. Syntax: bool Imagick::setImageDispose( $dispose ) Parameters: This function accepts single parameter $dispose which specifies the dispose Imagick object to be set. Return Value: Thi 2 min read PHP | Imagick setImageCompose() Function The Imagick::setImageCompose() function is an inbuilt function in PHP which is used to set the composite operator associated with the image. This function is used to specify how to composite the image thumbnail when using the Imagick::montageImage() method. Syntax: bool Imagick::setImageCompose( int 1 min read PHP | Imagick setImageGravity() Function The Imagick::setImageGravity() function is an inbuilt function in PHP which is used to set the gravity property of an image. Difference between setGravity() and setImageGravity() is that the former applies for the whole Imagick object whereas the latter sets the gravity of the current image (in case 1 min read PHP | Imagick setImageRedPrimary() Function The Imagick::setImageRedPrimary() function is an inbuilt function in PHP which is used to set the image chromaticity red primary point. Syntax: bool Imagick::setImageRedPrimary( float $x, float $y ) Parameters: This function accept two parameters as mentioned above and described below: $x: It specif 1 min read PHP | Imagick setImageBluePrimary() Function The Imagick::setImageBluePrimary() function is an inbuilt function in PHP which is used to set the image chromaticity blue primary point. Syntax: bool Imagick::setImageBluePrimary( float $x, float $y ) Parameters: This function accept two parameters as mentioned above and described below: $x: It spe 1 min read Like