PHP | Imagick swirlImage() Function Improve Improve Like Article Like Save Share Report The Imagick::swirlImage() function is an inbuilt function in PHP which is used to swirl the pixels about the center of the image. The degree indicates the sweep of the arc to move each pixel. Syntax: bool Imagick::swirlImage( float $degrees ) Parameters: This function accepts single parameter $degrees which defines the tightness of the swirling effect. Return Value: This function returns TRUE on success. Exceptions: This function throws ImagickException on error. Below program illustrates the Imagick::swirlImage() function in PHP: Program: <?php // Create a Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Swirl the image $imagick->swirlImage(350); header('Content-type: image/png'); // Display the output image echo $imagick; ?> Output: Reference: https://www.php.net/manual/en/imagick.swirlimage.php Last Updated : 27 Sep, 2019 Like Article Save Article Previous PHP | ImagickKernel fromBuiltIn() Function Next PHP | ArrayObject unserialize() Function Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads PHP | Gmagick swirlimage() Function PHP | Imagick floodFillPaintImage() Function PHP | Imagick adaptiveSharpenImage() Function PHP | Imagick flopImage() Function PHP | Imagick setImageExtent() Function PHP | Imagick getImageWhitePoint() Function PHP | Imagick getCompressionQuality() Function PHP | Imagick clear() Function PHP | Imagick annotateImage() Function PHP | Imagick adaptiveResizeImage() Function Like gurrrung Follow Article Tags : PHP-function PHP-Imagick PHP Web Technologies