RotationMode
class RotationMode extends QualifierMultiValue implements RotationModeInterface
Defines how to rotate an image.
Learn more: Rotate an image
Methods
Rotate image 90 degrees clockwise only if the requested aspect ratio does not match the image's aspect ratio.
Rotate image 90 degrees counterclockwise only if the requested aspect ratio does not match the image's aspect ratio.
Vertical mirror flip of the image.
Horizontal mirror flip of the image.
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.
Details
static RotationModeTrait
autoRight()
Rotate image 90 degrees clockwise only if the requested aspect ratio does not match the image's aspect ratio.
static RotationModeTrait
autoLeft()
Rotate image 90 degrees counterclockwise only if the requested aspect ratio does not match the image's aspect ratio.
static RotationModeTrait
verticalFlip()
Vertical mirror flip of the image.
static RotationModeTrait
horizontalFlip()
Horizontal mirror flip of the image.
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.
static RotationModeTrait
mode(string|RotationMode|array ...$mode)
Rotate an image using the given mode.
Constants
VALUE_DELIMITER |
|
AUTO_RIGHT |
|
AUTO_LEFT |
|
VERTICAL_FLIP |
|
HORIZONTAL_FLIP |
|
IGNORE |
|