PHP | Imagick cycleColormapImage( ) Function Last Updated : 20 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::cycleColormapImage() function is an inbuilt function in PHP which is used to displace the colormap (It is a m × 3 matrix containing real numbers between 0.0 and 1.0. Each row of the matrix is an RGB vector that defines one color.) of the image by a given number of positions. If you cycle the colormap number of times then it can produce a psychedelic effect. Syntax: bool Imagick::cycleColormapImage( $displace ) Parameters: This function accepts single parameter $displace which holds the amount to displace the colormap (in integer). Return Value: This function returns true on success. Below program illustrates the Imagick::cycleColormapImage() function in PHP: Program: php <?php // Declare an Imagick object $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-6.png'); // Use Imagick::cycleColormapImage() function $image->cycleColormapImage (8); header("Content-Type: image/jpg"); // Display the output image echo $image->getImageBlob(); ?> Output: Reference: https://www.php.net/manual/en/imagick.cyclecolormapimage.php Comment More infoAdvertise with us Next Article PHP | Imagick colorizeImage() Function P piyush25pv Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Gmagick cyclecolormapimage() Function The Gmagick::cyclecolormapimage() function is an inbuilt function in PHP which is used to displace an image colormap by a given number of positions. If you cycle the colormap a number of times you can produce a psychedelic effect. Syntax: Gmagick Gmagick::cyclecolormapimage( int $displace ) Paramet 1 min read PHP | Imagick colorMatrixImage() Function The Imagick::colorMatrixImage() function is an inbuilt function in PHP which is used to apply color transformation to the images. This function induces saturation changes, hue rotation, luminance to alpha, and various other effects. This function uses variable-size transformation matrices i.e. 5x5 m 2 min read PHP | Imagick colorizeImage() Function The Imagick::colorizeImage() function is an inbuilt function in PHP which is used to blends the fill color with each pixel in the image with a specified opacity. Syntax: bool Imagick::colorizeImage( mixed $colorize, mixed $opacity, bool $legacy = FALSE ) Parameters: This function accepts three param 2 min read PHP | Imagick charcoalImage() Function The Imagick::charcoalImage() function is an inbuilt function in PHP which is used to simulate a charcoal drawing of an image. Syntax: bool Imagick::charcoalImage( $radius, $sigma ) Parameters: This function accepts two parameters as mentioned above and described below: $radius: This parameter stores 1 min read PHP | Imagick clutImage() Function The Imagick::clutImage() function is an inbuilt function in PHP which is used to replace the colors in the image. The second parameter of this function replaces the color in a specific channel. Syntax: bool Imagick::clutImage( $lookup_table, $channel = Imagick::CHANNEL_DEFAULT ) Parameters: This f 1 min read PHP | Imagick drawImage() Function The Imagick::drawImage() function is an inbuilt function in PHP which is used to render the ImagickDraw object on the Imagick object. It is used to draw the image on the Imagick instance. We set an image matrix, parameters and the borders of the drawn image with the help of ImagickDraw methods and t 2 min read Like