PHP | Imagick shearImage() function Last Updated : 26 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::shearImage() function is an inbuilt function in PHP which is used to creating a parallelogram. The X-direction shear slides an edge along the X-axis, while a Y direction shear slides an edge along the Y-axis. The amount of the shear is controlled by a shear angle. Syntax: bool Imagick::shearImage( $background, $x_shear, $y_shear ) Parameters: This function accepts three parameters as mentioned above and described below: $background: This parameter is used to set the background color. $x_shear: This parameter is used to set the number of degrees to shear on the x axis. $y_shear: This parameter is used to set the number of degrees to shear on the y axis. Return Value: This function returns True on success. Below program illustrates the Imagick::shearImage() function in PHP: Program: php <?php // Create an Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Use shearimage function $imagick->shearimage('rgb(127, 127, 127)', 15, 5); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick getImageHeight() Function PHP | Imagick getImageWidth() Function Reference: http://php.net/manual/en/imagick.shearimage.php Comment More infoAdvertise with us Next Article PHP | Imagick shearImage() function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-Imagick +1 More Practice Tags : Misc Similar Reads PHP | Gmagick shearimage() Function The Gmagick::shearimage() function is an inbuilt function in PHP which is used to slide one edge of an image along the X or Y axis to create a parallelogram. The X-direction shear slides an edge along the X-axis, while a Y direction shear slides an edge along the Y-axis. The shear angle is used to s 2 min read PHP | Imagick::shaveImage() Function The Imagick::shaveImage() function is an inbuilt function in PHP which is used to shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. Syntax: bool Imagick::shaveImage( $columns, $rows ) Parameters: This function ac 1 min read PHP | Imagick shadeImage() Function The Imagick::shadeImage() function is an inbuilt function in PHP which is used to creates a 3D effect of a given image. Shines a distant light on an image to create a three-dimensional effect. The azimuth is measured in degrees of x-axis and elevation is measured in pixels above the z-axis. Syntax: 1 min read PHP | Imagick sharpenImage() Function The Imagick::sharpenImage() function is an inbuilt function in PHP which is used to sharpen an image. This function convolves the image with a Gaussian operator of the given radius and standard deviation. Syntax: bool Imagick::sharpenImage( $radius, $sigma, $channel ) Parameters: This function acce 1 min read PHP | Imagick readImage() Function The Imagick::readImage() function is an inbuilt function in PHP which is used to read an image from filename. Syntax: bool Imagick::readImage( string $filename ) Parameters:This function accepts a single parameter $filename which holds the name of the file. It can also accept URL of the file. Return 1 min read Like