\extcoreImageCrop

Summary

Methods
Properties
Constants
__construct()
crop()
No public properties found
No constants found
No protected methods found
$file
$options
N/A
createImage()
output()
getImgData()
No private properties found
N/A

Properties

$file

$file : 

Type

$options

$options : 

Type

Methods

__construct()

__construct(  $file = '',   $options = array()) 

Parameters

$file
$options

crop()

crop(null|string  $savepath = null,   $opts = array()) : \think\Response

根据参数裁剪图片

Parameters

null|string $savepath
$opts

array

Returns

\think\Response

createImage()

createImage(  $width,   $height) 

Parameters

$width
$height

output()

output(  $image,   $mime = 'image/jpeg',   $savepath = null,   $imgQuality = 80) : \think\Response

输出图片

Parameters

$image
$mime
$savepath
$imgQuality

Returns

\think\Response

getImgData()

getImgData(  $img) : boolean|string

获取文件内容

Parameters

$img

Returns

boolean|string