PHP 클래스 BxDolImageResize, dolphin.pro

상속: extends BxDol, implements iBxDolSingleton
파일 보기 프로젝트 열기: boonex/dolphin.pro 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_iJpegQuality
$_isAutoCrop < size of destination image
$_isSquareResize < jpeg quality
$_isUseGD < use smart resize, destination image will be exact Width x Height size
$_oManager < use GD library or command line ImagMagic utilites
$_sError < Intervention Image Manager
$h
$w

공개 메소드들

메소드 설명
__clone ( ) Prevent cloning the instance
__construct ( ) < Intervention Image Manager error string
_applyWatermark ( $sSrcImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 )
_getImageSize ( $sPath )
_grayscale ( $sSrcImage, $sDstImage = '' ) private functions are below -------------------------------
_resize ( $sSrcImage, $sDstImage = '' )
applyWatermark ( $mixedImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 )
crop ( $iScaledWidth, $iScaledHeight, $x, $y, $iCroppedWidth, $iCroppedHeight, $iRotation, $sSrcImage, $sDstImage = '' ) : true Crop image
getAverageColor ( $sSrcImage )
getError ( )
getExifInfo ( $sSrcImage, $bCreateLocalFileIfUrl = true )
getImageSize ( $sPath )
getManager ( )
grayscale ( $mixedImage, $sDstImage = '' )
instance ( ) Get singleton instance of the class
isAllowedImage ( $sSrcImage )
isUsedGD ( )
removeCropOptions ( )
resize ( $mixedImage, $sDstImage = '' )
setAutoCrop ( $b ) Crop image to destination size with filling whole area of destination size
setJpegOutput ( $b )
setJpegQuality ( $i )
setSize ( $w, $h )
setSquareResize ( $b )

메소드 상세

__clone() 공개 메소드

Prevent cloning the instance
public __clone ( )

__construct() 공개 메소드

< Intervention Image Manager error string
public __construct ( )

_applyWatermark() 공개 메소드

public _applyWatermark ( $sSrcImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 )

_getImageSize() 공개 메소드

public _getImageSize ( $sPath )

_grayscale() 공개 메소드

private functions are below -------------------------------
public _grayscale ( $sSrcImage, $sDstImage = '' )

_resize() 공개 메소드

public _resize ( $sSrcImage, $sDstImage = '' )

applyWatermark() 공개 메소드

public applyWatermark ( $mixedImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 )

crop() 공개 메소드

Crop image
public crop ( $iScaledWidth, $iScaledHeight, $x, $y, $iCroppedWidth, $iCroppedHeight, $iRotation, $sSrcImage, $sDstImage = '' ) : true
$iScaledWidth - scaled img width
$iScaledHeight - scaled img height
$x - cropped area coord
$y - cropped area coord
$iCroppedWidth - cropped area width
$iCroppedHeight - cropped area height
$iRotation - img rotation
$sSrcImage - source image
$sDstImage - destination image, leave empty to overwrite $sSrcImage
리턴 true on success, false on error

getAverageColor() 공개 메소드

public getAverageColor ( $sSrcImage )

getError() 공개 메소드

public getError ( )

getExifInfo() 공개 메소드

public getExifInfo ( $sSrcImage, $bCreateLocalFileIfUrl = true )

getImageSize() 정적인 공개 메소드

static public getImageSize ( $sPath )

getManager() 공개 메소드

public getManager ( )

grayscale() 공개 메소드

public grayscale ( $mixedImage, $sDstImage = '' )

instance() 공개 정적인 메소드

Get singleton instance of the class
public static instance ( )

isAllowedImage() 공개 메소드

public isAllowedImage ( $sSrcImage )

isUsedGD() 공개 메소드

public isUsedGD ( )

removeCropOptions() 공개 메소드

public removeCropOptions ( )

resize() 공개 메소드

public resize ( $mixedImage, $sDstImage = '' )

setAutoCrop() 공개 메소드

Crop image to destination size with filling whole area of destination size
public setAutoCrop ( $b )

setJpegOutput() 공개 메소드

public setJpegOutput ( $b )

setJpegQuality() 공개 메소드

public setJpegQuality ( $i )

setSize() 공개 메소드

public setSize ( $w, $h )

setSquareResize() 공개 메소드

public setSquareResize ( $b )

프로퍼티 상세

$_iJpegQuality 보호되어 있는 프로퍼티

protected $_iJpegQuality

$_isAutoCrop 보호되어 있는 프로퍼티

< size of destination image
protected $_isAutoCrop

$_isSquareResize 보호되어 있는 프로퍼티

< jpeg quality
protected $_isSquareResize

$_isUseGD 보호되어 있는 프로퍼티

< use smart resize, destination image will be exact Width x Height size
protected $_isUseGD

$_oManager 보호되어 있는 프로퍼티

< use GD library or command line ImagMagic utilites
protected $_oManager

$_sError 보호되어 있는 프로퍼티

< Intervention Image Manager
protected $_sError

$h 보호되어 있는 프로퍼티

protected $h

$w 보호되어 있는 프로퍼티

protected $w