Shear effect
e:shear
Shearing an object slants, or skews the object along the horizontal or vertical axis, or in a specified angle that’s relative to a specified axis.
Aliases
e:shr
Parameters
- in the case of one parameter:
- X direction: integer, min -89°, max 89°
- in the case of two parameters:
- X direction: integer, min -89°, max 89°
- Y direction: integer, min -89°, max 89°
Limitations
- Applicable only to images smaller than 25 mega pixels.
Dependencies
- This transformation does not have any dependencies.
Examples
See the following examples about the possible ways of usage.
Set the width to 200 px and shear the image
w:200_e:shear:10,30
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->shear(10, 30);