class ImgHelper

图像相关操作

Methods

static string
typeFromMime(string $filename)

获取图像类型 x-ms-bmp, gif, png, jpeg, tiff

static array|bool
getImageInfo(string $img)

取得图像信息

static 
buildStr(string $string = 'Duoli', string $type = 'png', int $singleWidth = 10, int $height = 20, string $fontFile = '')

创建字串

Details

at line 18
static string typeFromMime(string $filename)

获取图像类型 x-ms-bmp, gif, png, jpeg, tiff

Parameters

string $filename filename

Return Value

string

at line 33
static array|bool getImageInfo(string $img)

取得图像信息

Parameters

string $img 图像文件名

Return Value

array|bool

at line 59
static buildStr(string $string = 'Duoli', string $type = 'png', int $singleWidth = 10, int $height = 20, string $fontFile = '')

创建字串

Parameters

string $string string
string $type type
int $singleWidth singleWidth
int $height height
string $fontFile fontFile