Class Image
Namespace: application\core\utils
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Image.php
Copyright: Copyright © 2012-2013 IBOS Inc
Author: banyanCheung banyan@ibos.com.cn
Located at system/core/utils/Image.php
Methods summary
public static
mixed
|
|
public static
|
#
water( string $source, string $water, string $saveName = null, integer $pos = 0, string $alpha = 80, integer $quality = 100 )
为图片添加水印 |
public static
|
#
thumb( string $image, string $thumbName, string $maxWidth = 200, string $maxHeight = 50, integer $quality = 100, string $type = '', boolean $interlace = true )
生成缩略图 |
public static
|
#
thumb2( string $image, string $thumbname, string $type = '', string $maxWidth = 200, string $maxHeight = 50, boolean $interlace = true )
生成特定尺寸缩略图 解决原版缩略图不能满足特定尺寸的问题 PS:会裁掉图片不符合缩略图比例的部分 |
public static
|
#
waterMarkString( string $string, integer $size, string $source, string $saveName = null, integer $pos = 0, integer $quality = 100, array $rgb = array(), string $fontPath = '' )
根据给定的字符串生成水印 |