HumHub Documentation (unofficial)

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
see
https://imagine.readthedocs.org/en/latest/usage/metadata.html

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

Methods

__construct()

public __construct([string|array<string|int, mixed>|ColorInterface $color = '000000' ]) : mixed
Parameters
$color : string|array<string|int, mixed>|ColorInterface = '000000'

A color

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


        
On this page

Search results