Class elFinderPluginWatermark
elFinder Plugin Watermark Print watermark on file upload. ex. binding, configure on connector options $opts = array( 'bind' => array( 'upload.presave' => array( 'Plugin.Watermark.onUpLoadPreSave' ) ), // global configure (optional) 'plugin' => array( 'Watermark' => array( 'enable' => true, // For control by volume driver 'source' => 'logo.png', // Path to Water mark image 'ratio' => 0.2, // Ratio to original image (ratio > 0 and ratio <= 1) 'position' => 'RB', // Position L(eft)/C(enter)/R(ight) and T(op)/M(edium)/B(ottom) 'marginX' => 5, // Margin horizontal pixel 'marginY' => 5, // Margin vertical pixel 'quality' => 95, // JPEG image save quality 'transparency' => 70, // Water mark image transparency ( other than PNG ) 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) 'targetMinPixel' => 200, // Target image minimum pixel size 'interlace' => IMG_GIF|IMG_JPG, // Set interlacebit image formats ( bit-field ) '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( 'Watermark' => array( 'enable' => true, // For control by volume driver 'source' => 'logo.png', // Path to Water mark image 'ratio' => 0.2, // Ratio to original image (ratio > 0 and ratio <= 1) 'position' => 'RB', // Position L(eft)/C(enter)/R(ight) and T(op)/M(edium)/B(ottom) 'marginX' => 5, // Margin horizontal pixel 'marginY' => 5, // Margin vertical pixel 'quality' => 95, // JPEG image save quality 'transparency' => 70, // Water mark image transparency ( other than PNG ) 'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field ) 'targetMinPixel' => 200, // Target image minimum pixel size 'interlace' => IMG_GIF|IMG_JPG, // Set interlacebit image formats ( bit-field ) '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 ) ) ) ) );
- elFinderPlugin
- elFinderPluginWatermark
License: BSD
Author: Naoki Sawada
Located at zp-extensions/elFinder/php/plugins/Watermark/plugin.php
public
|
|
public
|
getCurrentOpts(),
iaEnabled()
|
$opts
|