Свойство | Тип | Описание | |
---|---|---|---|
$formats | array | possible image formats | |
$image | resource | ||
$image_height | integer | ||
$image_path | string | path/filename of imagefile | |
$image_type | integer | image format of source | |
$image_width | integer | ||
$quality_thumb | boolean | quality or speed when generating the thumbnail | |
$thumb_max_height | integer | maximal height of the generated thumbnail | |
$thumb_max_width | integer | maximal width of the generated thumbnail | |
$thumbnail | resource | ||
$thumbnail_height | integer | ||
$thumbnail_type | integer | image format of the thumbnail | |
$thumbnail_width | integer |
Метод | Описание | |
---|---|---|
__construct ( string $file = '' ) : void | Constructor | |
getPictureName ( ) : integer | returns the width of the thumbnail | |
getThumbHeight ( ) : integer | returns the height of the thumbnail | |
getThumbWidth ( ) : integer | returns the width of the thumbnail | |
outputThumbnail ( string $format = 'png', integer $quality = 75 ) : void | outputs the thumbnail to the browser | |
returnThumbnail ( ) : mixed | returns the variable with the thumbnail image | |
setMaxHeight ( integer $height ) : boolean | sets the max. height of the thumbnail | |
setMaxSize ( integer $width, integer $height ) : boolean | sets the max. width and height of the thumbnail | |
setMaxWidth ( integer $width ) : boolean | sets the max. width of the thumbnail | |
setOutputFormat ( string $format = 'png' ) : void | sets the output type of the thumbnail | |
setQualityOutput ( boolean $boolean = TRUE ) : void | whether to create thumbs fast or with good quality |
Метод | Описание | |
---|---|---|
createThumbnail ( ) : void | creates the thumbnail and saves it to a variable | |
readSourceImage ( ) : void | reads the source image into a variable | |
readSourceImageData ( ) : void | reads metadata of the source image | |
setThumbnailSize ( ) : void | sets the actual width and height of the thumbnail based on the source image size and the max limits for the thumbnail |
public __construct ( string $file = '' ) : void | ||
$file | string | path/filename of picture or stream from a DB field |
Результат | void |
protected createThumbnail ( ) : void | ||
Результат | void |
public getPictureName ( ) : integer | ||
Результат | integer |
public getThumbHeight ( ) : integer | ||
Результат | integer |
public getThumbWidth ( ) : integer | ||
Результат | integer |
protected readSourceImage ( ) : void | ||
Результат | void |
protected readSourceImageData ( ) : void | ||
Результат | void |
public returnThumbnail ( ) : mixed | ||
Результат | mixed |
public setMaxHeight ( integer $height ) : boolean | ||
$height | integer | |
Результат | boolean |
public setMaxWidth ( integer $width ) : boolean | ||
$width | integer | |
Результат | boolean |
public setOutputFormat ( string $format = 'png' ) : void | ||
$format | string | gif, jpg, png, wbmp |
Результат | void |
public setQualityOutput ( boolean $boolean = TRUE ) : void | ||
$boolean | boolean | |
Результат | void |
protected setThumbnailSize ( ) : void | ||
Результат | void |
protected string $image_path | ||
Результат | string |
protected bool $quality_thumb | ||
Результат | boolean |
protected int $thumb_max_height | ||
Результат | integer |
protected int $thumb_max_width | ||
Результат | integer |
protected int $thumbnail_type | ||
Результат | integer |