ZenphotoCMS 1.6.5

elFinderPluginAutoRotate extends elFinderPlugin
in package

elFinder Plugin AutoRotate Auto rotation on file upload of JPEG file by EXIF Orientation.

ex. binding, configure on connector options $opts = array( 'bind' => array( 'upload.presave' => array( 'Plugin.AutoRotate.onUpLoadPreSave' ) ), // global configure (optional) 'plugin' => array( 'AutoRotate' => array( 'enable' => true, // For control by volume driver 'quality' => 95, // JPEG image save quality 'offDropWith' => null, // Enabled by default. To disable it if it is dropped with pressing the meta key // Alt: 8, Ctrl: 4, Meta: 2, Shift: 1 - sum of each value // In case of using any key, specify it as an array 'onDropWith' => null // Disabled by default. To enable it if it is dropped with pressing the meta key // Alt: 8, Ctrl: 4, Meta: 2, Shift: 1 - sum of each value // In case of using any key, specify it as an array ) ), // each volume configure (optional) 'roots' => array( array( 'driver' => 'LocalFileSystem', 'path' => '/path/to/files/', 'URL' => 'http://localhost/to/files/' 'plugin' => array( 'AutoRotate' => array( 'enable' => true, // For control by volume driver 'quality' => 95, // JPEG image save quality 'offDropWith' => null, // Enabled by default. To disable it if it is dropped with pressing the meta key // Alt: 8, Ctrl: 4, Meta: 2, Shift: 1 - sum of each value // In case of using any key, specify it as an array 'onDropWith' => null // Disabled by default. To enable it if it is dropped with pressing the meta key // Alt: 8, Ctrl: 4, Meta: 2, Shift: 1 - sum of each value // In case of using any key, specify it as an array ) ) ) ) );

Tags
author

Naoki Sawada

license

New BSD

Table of Contents

Properties

$opts  : array<string|int, mixed>
This plugin's options

Methods

__construct()  : mixed
onUpLoadPreSave()  : mixed
getCurrentOpts()  : array<string|int, mixed>
Get current volume's options
iaEnabled()  : bool
Is enabled with options
rotate()  : mixed

Properties

$opts

This plugin's options

protected array<string|int, mixed> $opts = array()

Methods

__construct()

public __construct(mixed $opts) : mixed
Parameters
$opts : mixed

onUpLoadPreSave()

public onUpLoadPreSave(mixed &$thash, mixed &$name, mixed $src, mixed $elfinder, mixed $volume) : mixed
Parameters
$thash : mixed
$name : mixed
$src : mixed
$elfinder : mixed
$volume : mixed

getCurrentOpts()

Get current volume's options

protected getCurrentOpts(object $volume) : array<string|int, mixed>
Parameters
$volume : object
Return values
array<string|int, mixed>

options

iaEnabled()

Is enabled with options

protected iaEnabled(array<string|int, mixed> $opts[, elFinder $elfinder = null ]) : bool
Parameters
$opts : array<string|int, mixed>
$elfinder : elFinder = null
Return values
bool

rotate()

private rotate(mixed $volume, mixed $src, mixed $srcImgInfo, mixed $quality) : mixed
Parameters
$volume : mixed
$src : mixed
$srcImgInfo : mixed
$quality : mixed

        
On this page

Search results