PHP Class Pommo_Filesystem_Image, poMMo

Inheritance: extends Pommo_Filesystem_File
Show file Open project: soonick/poMMo Class Usage Examples

Public Methods

Method Description
__construct ( string $filePath )
resize ( integer $width, integer $height, boolean $smallerOnly = false ) : mixed
save ( string $savePath, integer $quality = 90 ) Saves the stored image to a new file

Private Methods

Method Description
_create ( string $filePath ) : resource

Method Details

__construct() public method

public __construct ( string $filePath )
$filePath string

resize() public method

public resize ( integer $width, integer $height, boolean $smallerOnly = false ) : mixed
$width integer
$height integer
$smallerOnly boolean
return mixed

save() public method

Saves the stored image to a new file
public save ( string $savePath, integer $quality = 90 )
$savePath string
$quality integer