ImageIm
class ImageIm extends Image
Constants
BRANDING_TOP |
|
BRANDING_TOP_RIGHT |
|
BRANDING_RIGHT |
|
BRANDING_BOTTOM_RIGHT |
|
BRANDING_BOTTOM |
|
BRANDING_BOTTOM_LEFT |
|
BRANDING_LEFT |
|
BRANDING_TOP_LEFT |
|
BRANDING_CENTER |
|
Properties
protected | $_image | from Image | |
protected | $_isResized | from Image | |
protected | $_isBranded | from Image | |
$name | from Image | ||
$path | from Image | ||
$extension | from Image | ||
$filepath | from Image | ||
$imageinfos | from Image | ||
$newWidth | from Image | ||
$newHeight | from Image | ||
$mainWidth | from Image | ||
$mainHeight | from Image | ||
$quality | from Image |
Methods
__construct($filepath)
No description
multitype:number
_calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)
Calculates the Watermark position
from Image
multitype:number
_calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)
Calculates the Watermark offset
from Image
__destruct()
No description
resize(int $width, int $height, boolean $useContainer = false, string $backgroundColor = null, int $quality = 80)
(non-PHPdoc)
watermark(string $filepath, int $position, int $percent = 30, float $opacity = 1.0, int $padding)
(non-PHPdoc)
save(string $newFilepath)
(non-PHPdoc)
destroy()
(non-PHPdoc)
Details
at line 13
__construct($filepath)
in Image at line 74
protected multitype:number
_calcWatermarkPosition(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $position, int $padding)
Calculates the Watermark position
in Image at line 135
protected multitype:number
_calcWatermarkOffset(int $image_width, int $image_height, int $watermark_width, int $watermark_height, int $percent = 30)
Calculates the Watermark offset
at line 29
__destruct()
at line 38
resize(int $width, int $height, boolean $useContainer = false, string $backgroundColor = null, int $quality = 80)
(non-PHPdoc)
at line 87
watermark(string $filepath, int $position, int $percent = 30, float $opacity = 1.0, int $padding)
(non-PHPdoc)
at line 124
save(string $newFilepath)
(non-PHPdoc)
at line 141
destroy()
(non-PHPdoc)