Class Watermark
The Watermark class. It extends Image class so you can do anything you can do for images to your watermarks.
- Elboletaire\Watimage\Image
-
Elboletaire\Watimage\Watermark
Copyright: 2015 Òscar Casajuana
License: MIT
Author: Òscar Casajuana Alonso elboletaire@underave.net
Link: https://github.com/elboletaire/Watimage
Located at Watermark.php
Methods summary
public
|
#
__construct( string $file = null, array $options = [] )
Constructor method. You can pass a filename to be loaded by default or load it later with load('filename.ext') |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
array
|
|
protected
|
Methods inherited from Elboletaire\Watimage\Image
__destruct(),
autoOrientate(),
blur(),
brightness(),
calculateCropMeasures(),
classicCrop(),
classicResize(),
color(),
colorize(),
contrast(),
convenienceFlip(),
create(),
createResourceImage(),
crop(),
edgeDetection(),
emboss(),
fill(),
flip(),
fromString(),
generate(),
getImage(),
getMetadata(),
getMetadataForImage(),
getMetadataFromFile(),
getMimeFromExtension(),
grayscale(),
imagecopy(),
imagecreate(),
load(),
meanRemove(),
negate(),
pixelate(),
reduce(),
resize(),
resizeCrop(),
resizeMin(),
rotate(),
save(),
sepia(),
setCompression(),
setImage(),
setQuality(),
smooth(),
toString(),
updateMetadata(),
updateSize(),
vignette(),
vignetteEffect()
Constants summary
Constants inherited from Elboletaire\Watimage\Image
Properties summary
protected
mixed
|
$size
Size param, used to resize the watermark. |
|
protected
array
|
$margin
Watermark margin. |
#
[0, 0]
|
protected
mixed
|
$position
Position for the watermark. |
Properties inherited from Elboletaire\Watimage\Image
$compression,
$filename,
$height,
$image,
$metadata,
$quality,
$width