PHP Class Imageresizer

Show file Open project: baserproject/basercms Class Usage Examples

Public Methods

Method Description
_copyAndResize ( $srcImage, $newImage, $srcWidth, $srcHeight, $newWidth, $newHeight, $trimming = false ) : Image ファイルをコピーし、リサイズする
_createBaseImange ( $width, $height ) : Image ベース画像を作成する
resize ( $imgPath, $savePath = null, $newWidth = null, $newHeight = null, $trimming = false ) : boolean 画像をリサイズする

Method Details

_copyAndResize() public method

ファイルをコピーし、リサイズする
public _copyAndResize ( $srcImage, $newImage, $srcWidth, $srcHeight, $newWidth, $newHeight, $trimming = false ) : Image
return Image 新しいイメージオブジェクト

_createBaseImange() public method

ベース画像を作成する
public _createBaseImange ( $width, $height ) : Image
return Image イメージオブジェクト

resize() public method

画像をリサイズする
public resize ( $imgPath, $savePath = null, $newWidth = null, $newHeight = null, $trimming = false ) : boolean
return boolean