Imageresizer
in package
Table of Contents
- _copyAndResize() : Image
- ファイルをコピーし、リサイズする
- _createBaseImange() : Image
- ベース画像を作成する
- resize() : bool
- 画像をリサイズする
Methods
_copyAndResize()
ファイルをコピーし、リサイズする
public
_copyAndResize(mixed $srcImage, mixed $newImage, mixed $srcWidth, mixed $srcHeight, mixed $newWidth, mixed $newHeight[, mixed $trimming = false ]) : Image
Parameters
- $srcImage : mixed
- $newImage : mixed
- $srcWidth : mixed
- $srcHeight : mixed
- $newWidth : mixed
- $newHeight : mixed
- $trimming : mixed = false
Return values
Image —新しいイメージオブジェクト
_createBaseImange()
ベース画像を作成する
public
_createBaseImange(mixed $width, mixed $height) : Image
Parameters
- $width : mixed
- $height : mixed
Return values
Image —イメージオブジェクト
resize()
画像をリサイズする
public
resize(mixed $imgPath[, mixed $savePath = null ][, mixed $newWidth = null ][, mixed $newHeight = null ][, mixed $trimming = false ][, mixed $quality = [] ]) : bool
Parameters
- $imgPath : mixed
- $savePath : mixed = null
- $newWidth : mixed = null
- $newHeight : mixed = null
- $trimming : mixed = false
- $quality : mixed = []