Property | Type | Description | |
---|---|---|---|
$logos | array | holds all logos/watermarks | |
$wm_image | resource | ||
$wm_image_height | integer | ||
$wm_image_path | string | path/filename of logo / watermark | |
$wm_image_type | integer | image format of logo | |
$wm_image_width | integer |
Method | Description | |
---|---|---|
__construct ( string $file = '', integer $seconds ) : void | Constructor | |
addLogo ( string $logo = '', integer $position = 3, integer $margin = 1 ) : void | sets the position of the logo /watermark | |
outputThumbnail ( string $format = 'png', integer $quality = 75 ) : mixed | outputs the thumbnail to the browser | |
returnThumbnail ( string $format = 'png' ) : mixed | returns the variable with the thumbnail image |
Method | Description | |
---|---|---|
createThumbnail ( ) : void | creates the thumbnail and saves it to a variable | |
readWMImage ( string $path = '' ) : void | reads the logo pic into a variable | |
readWMImageData ( string $path = '' ) : void | reads metadata of the logo image |
protected createThumbnail ( ) : void | ||
return | void |
protected readWMImage ( string $path = '' ) : void | ||
$path | string | path/filename of picture |
return | void |
protected readWMImageData ( string $path = '' ) : void | ||
$path | string | path/filename of picture |
return | void |
public returnThumbnail ( string $format = 'png' ) : mixed | ||
$format | string | gif, jpg, png, wbmp |
return | mixed |
protected string $wm_image_path | ||
return | string |