trait RotationModeTrait

Trait AngleTrait

Methods

autoRight()

Rotate image 90 degrees clockwise only if the requested aspect ratio does not match the image's aspect ratio.

autoLeft()

Rotate image 90 degrees counterclockwise only if the requested aspect ratio does not match the image's aspect ratio.

verticalFlip()

Vertical mirror flip of the image.

horizontalFlip()

Horizontal mirror flip of the image.

ignore()

By default, the image is automatically rotated according to the EXIF data stored by the camera when the image was taken. Set the angle to 'ignore' if you do not want the image to be automatically rotated.

mode(string|RotationMode|array ...$mode)

Rotate an image using the given mode.

Details

static RotationModeTrait autoRight()

Rotate image 90 degrees clockwise only if the requested aspect ratio does not match the image's aspect ratio.

Return Value

RotationModeTrait

static RotationModeTrait autoLeft()

Rotate image 90 degrees counterclockwise only if the requested aspect ratio does not match the image's aspect ratio.

Return Value

RotationModeTrait

static RotationModeTrait verticalFlip()

Vertical mirror flip of the image.

Return Value

RotationModeTrait

static RotationModeTrait horizontalFlip()

Horizontal mirror flip of the image.

Return Value

RotationModeTrait

static RotationModeTrait ignore()

By default, the image is automatically rotated according to the EXIF data stored by the camera when the image was taken. Set the angle to 'ignore' if you do not want the image to be automatically rotated.

Return Value

RotationModeTrait

static RotationModeTrait mode(string|RotationMode|array ...$mode)

Rotate an image using the given mode.

Parameters

Name Type Description
...$mode string|RotationMode|array Given rotation mode.

Return Value

RotationModeTrait