프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 bool $quality_thumb | ||
리턴 | boolean |
protected int $thumb_max_height | ||
리턴 | integer |
protected int $thumb_max_width | ||
리턴 | integer |