Autorotate
in package
implements
FilterInterface
Rotates an image automatically based on exif information.
Your attention please: This filter requires the use of the ExifMetadataReader to work.
Tags
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Constants
- FLIP_HORIZONTALLY = 'H'
- Image transformation: flip horizontally.
- FLIP_VERTICALLY = 'V'
- Image transformation: flip vertically.
Properties
- $color : string|array<string|int, mixed>|ColorInterface
Methods
- __construct() : mixed
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
- getTransformations() : array<string|int, mixed>
- Get the transformations.
- getColor() : ColorInterface
Constants
FLIP_HORIZONTALLY
Image transformation: flip horizontally.
public
string
FLIP_HORIZONTALLY
= 'H'
FLIP_VERTICALLY
Image transformation: flip vertically.
public
string
FLIP_VERTICALLY
= 'V'
Properties
$color
private
string|array<string|int, mixed>|ColorInterface
$color
Methods
__construct()
public
__construct([string|array<string|int, mixed>|ColorInterface $color = '000000' ]) : mixed
Parameters
- $color : string|array<string|int, mixed>|ColorInterface = '000000'
-
A color
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance
getTransformations()
Get the transformations.
public
getTransformations(ImageInterface $image) : array<string|int, mixed>
Parameters
- $image : ImageInterface
Return values
array<string|int, mixed> —an array containing Autorotate::FLIP_VERTICALLY, Autorotate::FLIP_HORIZONTALLY, rotation degrees
getColor()
private
getColor(ImageInterface $image) : ColorInterface
Parameters
- $image : ImageInterface