Download the PHP package ckfinder/ckfinder-plugin-imagewatermark-php without Composer
On this page you can find all versions of the php package ckfinder/ckfinder-plugin-imagewatermark-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ckfinder/ckfinder-plugin-imagewatermark-php
More information about ckfinder/ckfinder-plugin-imagewatermark-php
Files in ckfinder/ckfinder-plugin-imagewatermark-php
Package ckfinder-plugin-imagewatermark-php
Short Description Image watermark plugin for CKFinder 3
License MIT
Informations about the package ckfinder-plugin-imagewatermark-php
CKFinder 3 ImageWatermark Plugin
This is an official CKFinder 3 plugin that adds a watermark to images uploaded with CKFinder.
Supported image extensions: jpg
, jpeg
, gif
, png
.
Plugin Installation
See the Plugin Installation and Configuration documentation.
Configuration Options
To set a custom image to use as a watermark add the following option to the main CKFinder configuration file (usually named config.php
):
Note: Make sure that your image path is absolute, and use a transparent png
image for best results.
To change the default watermark position you need to add the position
option in the plugin configuration node:
The position
option takes two arguments corresponding to image borders.
Possible position
key values are: top
, right
, bottom
, left
.
Suboptions top
-bottom
and left
-right
are mutually exclusive, and cannot be used together.
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.
Here are a few examples of the watermark (▣) position for the following position
options used:
License
Copyright (c) 2007-2016, CKSource - Frederico Knabben. All rights reserved. For license details see: LICENSE.md.