Property | Type | Description | |
---|---|---|---|
$_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 |
Method | Description | |
---|---|---|
__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 ) |
public _applyWatermark ( $sSrcImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 ) |
public _grayscale ( $sSrcImage, $sDstImage = '' ) |
public applyWatermark ( $mixedImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition = 'bottom-right', $sPositionOffsetX, $sPositionOffsetY, $sScaleFactor = 0.2 ) |
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 | |
return | true | on success, false on error |
public setAutoCrop ( $b ) |
protected $_isUseGD |
protected $_oManager |