10 Commits

Author SHA1 Message Date
nao-pon 54bea258f7 [plugin:AutoResize,Watermark] fix notice error 2016-01-24 00:11:03 +09:00
nao-pon aa58030bf7 [php] fix #1162 to set false to second param of class_exists() 2015-12-11 21:57:14 +09:00
nao-pon ceef1b6813 [plugin:Watermark] use elFinder::isAnimationGif() 2015-07-22 17:19:59 +09:00
nao-pon dd31b3d236 [php:plugin:Watermark] It isn't applied to Animation GIF 2015-07-21 22:02:54 +09:00
nao-pon 6cb76dbfd2 [php.plugin] add usage comments (AutoResize,Watermark) 2014-11-24 09:33:25 +09:00
nao-pon 34a97ead72 [plugin:Watermark] support class "Imagick" 2013-07-15 21:21:21 +09:00
nao-pon 3c4cbbee2c [plugin:Watermark] fix volume driver options plugin-Watermark-source 2013-07-14 18:29:41 +09:00
nao-pon afcc1e11b7 [plugin:Watermark] support volume driver option "plugin"
# Connector configuration options

$opts = array(
    'roots'  => array(
         array(
            'driver' => 'LocalFileSystem',
            'path'   => '/path/to/files/',
            'URL'    => 'http://localhost/to/files/',
            'plugin' => array(
                /* optional, this volume values are */
                'Watermark' => array(
                    'enable'         => true,       // For control by volume driver
                    'source'         => 'logo.png', // Path to Water mark image
                    'marginRight'    => 5,          // Margin right pixel
                    'marginBottom'   => 5,          // Margin bottom pixel
                    'quality'        => 90,         // JPEG image save quality
                    'transparency'   => 90, // 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
                ),
            ),
    ),
    'bind'   => array(
        /* regist action, require */
        'upload.presave' => 'Plugin.Watermark.onUpLoadPreSave',
    ),
    'plugin' => array(
        /* optional, All volume's default values are */
        'Watermark' => array(
            'enable'         => true,       // For control by volume driver
            'source'         => 'logo.png', // Path to Water mark image
            'marginRight'    => 5,          // Margin right pixel
            'marginBottom'   => 5,          // Margin bottom pixel
            'quality'        => 90,         // JPEG image save quality
            'transparency'   => 90, // 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
        ),
    ),
);
$connector = new elFinderConnector(new xelFinder($opts), true);
$connector->run();
2013-07-14 16:18:55 +09:00
nao-pon 99b968a0d3 [plugin:Watermark] fix PNG blending 2013-07-14 01:51:12 +09:00
nao-pon 04d55c87a5 add watermark plugin
# Connector configuration options

$opts = array(
	'roots'  => array(...),
	'bind'   => array(
		/* regist action, require */
		'upload.presave' => 'Plugin.Watermark.onUpLoadPreSave',
	),
	'plugin' => array(
		/* optional, default values are */
		'Watermark' => array(
			'source'         => 'logo.png', // Path to Water mark image
			'marginRight'    => 5,          // Margin right pixel
			'marginBottom'   => 5,          // Margin bottom pixel
			'quality'        => 90,         // JPEG image save quality
			'transparency'   => 90, // 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
		),
	),
);
$connector = new elFinderConnector(new xelFinder($opts), true);
$connector->run();
2013-07-13 20:32:43 +09:00