ReshapeTrait
trait ReshapeTrait
Trait ReshapeTrait
Methods
Distorts the image to a new shape by adjusting its corners to achieve perception warping.
Distorts the image to an arc shape.
Removes the edges of the image based on the color of the corner pixels.
Skews the image according to the two specified values in degrees.
Trims pixels according to the transparency levels of a given overlay image.
Details
static Distort
distort(array ...$args)
Distorts the image to a new shape by adjusting its corners to achieve perception warping.
Specify four PointValue objects, representing the new coordinates for each of the image's four corners, in clockwise order from the top-left corner. For examples, see the Image Transformations guide.
static EffectAction
distortArc(float|string|mixed $degree)
Distorts the image to an arc shape.
For examples, see the Image Transformations guide.
static TrimEffect
trim(int $tolerance = null)
Removes the edges of the image based on the color of the corner pixels.
Specify a color other than the color of the corner pixels using the colorOverride() method of the \Cloudinary\Transformation\TrimEffect class.
static Shear
shear(float $skewX = null, float $skewY = null)
Skews the image according to the two specified values in degrees.
static CutByImage
cutByImage(string|BaseSource $source, Position|AbsolutePosition $position = null)
Trims pixels according to the transparency levels of a given overlay image.