Wallogit.com
2017 © Pedro Pelรกez
Image watermark plugin for CKFinder 3
This is an official CKFinder 3 plugin that adds a watermark to images uploaded with CKFinder., (*1)
Supported image extensions: jpg, jpeg, gif, png., (*2)
See the Plugin Installation and Configuration documentation., (*3)
To set a custom image to use as a watermark add the following option to the main CKFinder configuration file (usually named config.php):, (*4)
// ...
$config['ImageWatermark'] = [
'imagePath' => __DIR__ . '/custom/image/path/stamp.png'
];
Note: Make sure that your image path is absolute, and use a transparent png image for best results., (*5)
To change the default watermark position you need to add the position option in the plugin configuration node:, (*6)
// ...
$config['ImageWatermark'] = [
'imagePath' => __DIR__ . '/custom/image/path/stamp.png', // Also use a custom image.
'position' => [
'right' => 0,
'bottom' => 0
]
];
The position option takes two arguments corresponding to image borders., (*7)
Possible position key values are: top, right, bottom, left., (*8)
Suboptions top-bottom and left-right are mutually exclusive, and cannot be used together., (*9)
Each position suboption can take an integer as a value. This integer denotes the distance to the selected border measured in
pixels. Alternatively, you can use the 'center' string to make the watermark centered between the current and the opposite border., (*10)
Here are a few examples of the watermark (โฃ) position for the following position options used:, (*11)
$config['ImageWatermark'] = [ โโโโโโโโโโโโโโโโโโ
'position' => [ โ โ
'right' => 0, โ โ
'bottom' => 0 โ โฃ โ
] โโโโโโโโโโโโโโโโโโ
];
$config['ImageWatermark'] = [ โโโโโโโโโโโโโโโโโโ
'position' => [ โ โ
'right' => 'center', โ โ
'bottom' => 0 โ โฃ โ
] โโโโโโโโโโโโโโโโโโ
];
$config['ImageWatermark'] = [ โโโโโโโโโโโโโโโโโโ
'position' => [ โ โ
'right' => 0, โ โฃโ
'bottom' => 'center' โ โ
] โโโโโโโโโโโโโโโโโโ
];
Copyright (c) 2007-2016, CKSource - Frederico Knabben. All rights reserved. For license details see: LICENSE.md., (*12)