class Autorotate implements FilterInterface

Rotates an image automatically based on exif information.

Your attention please: This filter requires the use of the ExifMetadataReader to work.

Constants

FLIP_VERTICALLY

Image transformation: flip vertically.

FLIP_HORIZONTALLY

Image transformation: flip horizontally.

Methods

__construct(string|array|ColorInterface $color = '000000')

No description

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

array
getTransformations(ImageInterface $image)

Get the transformations.

Details

at line 50
__construct(string|array|ColorInterface $color = '000000')

Parameters

string|array|ColorInterface $color A color

at line 60
ImageInterface apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Parameters

ImageInterface $image

Return Value

ImageInterface returns the processed ImageInterface instance

See also

FilterInterface::apply

at line 82
array getTransformations(ImageInterface $image)

Get the transformations.

Parameters

ImageInterface $image

Return Value

array an array containing Autorotate::FLIP_VERTICALLY, Autorotate::FLIP_HORIZONTALLY, rotation degrees