PHP Class Microweber\Utils\Thumbnailer

from http://www.hardcode.nl/subcategory_4/article_503-thumbnail-class
Datei anzeigen Open project: microweber/microweber

Public Methods

Method Description
__construct ( $image = false )
createThumb ( array $specifications, $outputPath ) * createThumb creates and saves a thumbnail requires an $outputPath including filename to save thumbnail file to; specifications = array(maxLength=>100,width=>100,height=100,mime=>'image/jpeg')
setImage ( $image )

Private Methods

Method Description
LoadGif ( $imgname )
LoadJpeg ( $imgname )
LoadPNG ( $imgname )
imageerror ( )
loadImage ( $imgname, $type )
saveImage ( $image, $imgname, $type )

Method Details

__construct() public method

public __construct ( $image = false )

createThumb() public method

* createThumb creates and saves a thumbnail requires an $outputPath including filename to save thumbnail file to; specifications = array(maxLength=>100,width=>100,height=100,mime=>'image/jpeg')
public createThumb ( array $specifications, $outputPath )
$specifications array

setImage() public method

public setImage ( $image )