The Imagick::deskewImage() function is an inbuilt function in PHP, which is used to De-Skew an image or remove Skew from an image. This function is available if Imagick compiled against Imagick version 6.4.5 or newer. The Skew method is an issue occurs when the camera is misaligned or the paper is not placed on a flat surface.
bool Imagick::deskewImage( $threshold )
Parameters: This function accepts single parameter $threshold which holds the value of deskew threshold.
Return Value: This function returns a boolean value.
Below program illustrates the Imagick::deskewImage() function in PHP:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.