PHP | Imagick setImageRenderingIntent() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::setImageRenderingIntent() function is an inbuilt function in PHP which is used to sets the image rendering intent. Syntax: bool Imagick::setImageRenderingIntent( $rend_intent ) Parameters: This function accepts single parameter $rend_intent which specifies the rendering intent of image. Return Value: This function returns True on success. Below programs illustrate the Imagick::setImageRenderingIntent() function in PHP: Original Image: Program 1: php <?php // Create new Imagick object $im = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-15.png'); // Using getImageRenderingIntent function $res = $im->getImageRenderingIntent(); echo "Before: " . $res ."</br>"; // setImageRenderingIntent function $im->setImageRenderingIntent(17); // using getImageRenderingIntent function $res = $im->getImageRenderingIntent(); // Display result echo "After: " . $res; ?> Output: Before: 2 After: 17 Original Image: Program 2: php <?php $string = "Computer Science portal for Geeks!"; // creating new image of above String // and add color $im = new Imagick(); $draw = new ImagickDraw(); // Fill the color in image $draw->setFillColor(new ImagickPixel('green')); // Set the text font size $draw->setFontSize(50); $metrix = $im->queryFontMetrics($draw, $string); $draw->annotation(0, 40, $string); $im->newImage($metrix['textWidth'], $metrix['textHeight'], new ImagickPixel('white')); // Draw the image $im->drawImage($draw); $im->setImageFormat('jpeg'); // using getImageRenderingIntent function $res = $im->getImageRenderingIntent(); echo "Before: " . $res ."</br>"; // setImageRenderingIntent function $im->setImageRenderingIntent(10); // using getImageRenderingIntent function $res = $im->getImageRenderingIntent(); // Display result echo "After: " . $res; ?> Output: Before: 2 After: 10 Reference: http://php.net/manual/en/imagick.setimagerenderingintent.php Comment More infoAdvertise with us Next Article PHP | Imagick setImageRenderingIntent() Function R R_Raj Follow Improve Article Tags : Web Technologies PHP Image-Processing PHP-function PHP-Imagick +1 More Similar Reads PHP | Gmagick setimagerenderingintent() Function The Gmagick::setimagerenderingintent() function is an inbuilt function in PHP which is used to set the image rendering intent.Syntax:Â Â Gmagick Gmagick::setimagerenderingintent( $rend_intent ) Parameters: This function accepts a single parameter $rend_intent which specifies the rendering intent of i 2 min read PHP | Imagick setImageExtent() Function The Imagick::setImageExtent() function is an inbuilt function in PHP which is used to set the image size. This function doesn't scales the image but crops the unwanted parts. Syntax: bool Imagick::setImageExtent( int $columns, int $rows ) Parameters: This function accepts two parameters as mentioned 1 min read PHP | Imagick setImageScene() Function The Imagick::setImageScene() function is an inbuilt function in PHP which is used to set the image scene. The value of scene contains an integer value. Syntax: bool Imagick::setImageScene( int $scene ) Parameters: This function accepts a single parameter $scene which holds the scene. Return Value: T 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 setImageIndex() Function The Imagick::setImageIndex() function is an inbuilt function in PHP which is used to set the iterator position. Syntax: bool Imagick::setImageIndex( int $index ) Parameters: This function accepts a single parameter $index which holds the index. Return Value: This function returns TRUE on success. Ex 1 min read Like