Свойство | 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 |
Méthode | 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 |
Méthode | 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 | ||
Résultat | void |
protected readWMImage ( string $path = '' ) : void | ||
$path | string | path/filename of picture |
Résultat | void |
protected readWMImageData ( string $path = '' ) : void | ||
$path | string | path/filename of picture |
Résultat | void |
public returnThumbnail ( string $format = 'png' ) : mixed | ||
$format | string | gif, jpg, png, wbmp |
Résultat | mixed |
protected string $wm_image_path | ||
Résultat | string |
protected int $wm_image_type | ||
Résultat | integer |