Commit Graph

8 Commits

Author SHA1 Message Date
nao-pon f3c1ef2a1d [php:plugins] fix notice error 2016-07-28 17:35:17 +09:00
nao-pon e88048a205 [php] add PHP error handler and remove @ error-control operator 2016-05-13 17:13:31 +09:00
nao-pon ace042da88 [php:plugin:AutoResize] use elFinderVolumeDriver::imageUtil() 2016-04-30 15:51:02 +09:00
nao-pon 54bea258f7 [plugin:AutoResize,Watermark] fix notice error 2016-01-24 00:11:03 +09:00
nao-pon 53abae10c8 [php:plugin:AutoResize] fix #1175 and new option preserveExif
`preserveExif`: Preserve EXIF data (Imagick only). default is `false`
2016-01-04 23:35:00 +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 6cb76dbfd2 [php.plugin] add usage comments (AutoResize,Watermark) 2014-11-24 09:33:25 +09:00
nao-pon fe5489eec8 [plugin:AutoResize] add new plugin "AutoResize"
# Connector configuration options

```php
$opts = array(
	'roots'	 => array(
		 array(
			'driver' => 'LocalFileSystem',
			'path'	 => '/path/to/files/',
			'URL'	 => 'http://localhost/to/files/',
			'plugin' => array(
				/* optional, this volume values are */
				'AutoResize' => array(
					'enable'		 => true,		// For control by volume driver
					'maxWidth'		 => 1024,		// Path to Water mark image
					'maxHeight'		 => 1024,		// Margin right pixel
					'quality'		 => 95,			// JPEG image save quality
					'targetType'	 => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP
											   // Target image formats ( bit-field )
				),
			),
	),
	'bind'	 => array(
		/* regist action, require */
		'upload.presave' => array(
			'Plugin.AutoResize.onUpLoadPreSave'
		),
	),
	'plugin' => array(
		/* optional, All volume's default values are */
		'AutoResize' => array(
			'enable'		 => true,		// For control by volume driver
			'maxWidth'		 => 1024,		// Path to Water mark image
			'maxHeight'		 => 1024,		// Margin right pixel
			'quality'		 => 95,			// JPEG image save quality
			'targetType'	 => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP
									   // Target image formats ( bit-field )
		),
	),
);
$connector = new elFinderConnector(new xelFinder($opts), true);
$connector->run();
```

# Connector configuration options(enable AutoResize & Watermark with default)

```php
$opts = array(
	'roots'	 => array(
		 array(
			'driver' => 'LocalFileSystem',
			'path'	 => '/path/to/files/',
			'URL'	 => 'http://localhost/to/files/',
	),
	'bind'	 => array(
		/* regist action, require */
		'upload.presave' => array(
			'Plugin.AutoResize.onUpLoadPreSave', // Do 1st
			'Plugin.Watermark.onUpLoadPreSave'   // Do 2nd
		),
	),
);
$connector = new elFinderConnector(new xelFinder($opts), true);
$connector->run();
```
2013-07-15 21:32:27 +09:00