|
| __construct () |
|
| __clone () |
|
| getManager () |
|
| getError () |
|
| isAllowedImage ($sSrcImage) |
|
| resize ($mixedImage, $sDstImage='') |
|
| applyWatermark ($mixedImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition='bottom-right', $sPositionOffsetX=0, $sPositionOffsetY=0, $sScaleFactor=0.2) |
|
| grayscale ($mixedImage, $sDstImage='') |
|
| setSize ($w, $h) |
|
| removeCropOptions () |
|
| setAutoCrop ($b) |
|
| setJpegOutput ($b) |
|
| setJpegQuality ($i) |
|
| setSquareResize ($b) |
|
| isUsedGD () |
|
| _getImageSize ($sPath) |
|
| getExifInfo ($sSrcImage, $bCreateLocalFileIfUrl=true) |
|
| getAverageColor ($sSrcImage) |
|
| crop ($iScaledWidth, $iScaledHeight, $x, $y, $iCroppedWidth, $iCroppedHeight, $iRotation, $sSrcImage, $sDstImage='') |
|
| _grayscale ($sSrcImage, $sDstImage='') |
|
| _resize ($sSrcImage, $sDstImage='') |
|
| _applyWatermark ( $sSrcImage, $sDstImage, $sWtrImage, $iTransparency, $sPosition='bottom-right', $sPositionOffsetX=0, $sPositionOffsetY=0, $sScaleFactor=0.2) |
|
Definition at line 28 of file ChWsbImageResize.php.
◆ __construct()
ChWsbImageResize::__construct |
( |
| ) |
|
◆ __clone()
ChWsbImageResize::__clone |
( |
| ) |
|
◆ _applyWatermark()
ChWsbImageResize::_applyWatermark |
( |
|
$sSrcImage, |
|
|
|
$sDstImage, |
|
|
|
$sWtrImage, |
|
|
|
$iTransparency, |
|
|
|
$sPosition = 'bottom-right' , |
|
|
|
$sPositionOffsetX = 0 , |
|
|
|
$sPositionOffsetY = 0 , |
|
|
|
$sScaleFactor = 0.2 |
|
) |
| |
◆ _getImageSize()
ChWsbImageResize::_getImageSize |
( |
|
$sPath | ) |
|
◆ _grayscale()
ChWsbImageResize::_grayscale |
( |
|
$sSrcImage, |
|
|
|
$sDstImage = '' |
|
) |
| |
◆ _resize()
ChWsbImageResize::_resize |
( |
|
$sSrcImage, |
|
|
|
$sDstImage = '' |
|
) |
| |
◆ applyWatermark()
ChWsbImageResize::applyWatermark |
( |
|
$mixedImage, |
|
|
|
$sDstImage, |
|
|
|
$sWtrImage, |
|
|
|
$iTransparency, |
|
|
|
$sPosition = 'bottom-right' , |
|
|
|
$sPositionOffsetX = 0 , |
|
|
|
$sPositionOffsetY = 0 , |
|
|
|
$sScaleFactor = 0.2 |
|
) |
| |
◆ crop()
ChWsbImageResize::crop |
( |
|
$iScaledWidth, |
|
|
|
$iScaledHeight, |
|
|
|
$x, |
|
|
|
$y, |
|
|
|
$iCroppedWidth, |
|
|
|
$iCroppedHeight, |
|
|
|
$iRotation, |
|
|
|
$sSrcImage, |
|
|
|
$sDstImage = '' |
|
) |
| |
Crop image
- Parameters
-
$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 |
- Returns
- true on success, false on error
Definition at line 242 of file ChWsbImageResize.php.
◆ getAverageColor()
ChWsbImageResize::getAverageColor |
( |
|
$sSrcImage | ) |
|
◆ getError()
ChWsbImageResize::getError |
( |
| ) |
|
◆ getExifInfo()
ChWsbImageResize::getExifInfo |
( |
|
$sSrcImage, |
|
|
|
$bCreateLocalFileIfUrl = true |
|
) |
| |
◆ getImageSize()
static ChWsbImageResize::getImageSize |
( |
|
$sPath | ) |
|
|
static |
◆ getManager()
ChWsbImageResize::getManager |
( |
| ) |
|
◆ grayscale()
ChWsbImageResize::grayscale |
( |
|
$mixedImage, |
|
|
|
$sDstImage = '' |
|
) |
| |
◆ instance()
static ChWsbImageResize::instance |
( |
| ) |
|
|
static |
◆ isAllowedImage()
ChWsbImageResize::isAllowedImage |
( |
|
$sSrcImage | ) |
|
◆ isUsedGD()
ChWsbImageResize::isUsedGD |
( |
| ) |
|
◆ removeCropOptions()
ChWsbImageResize::removeCropOptions |
( |
| ) |
|
◆ resize()
ChWsbImageResize::resize |
( |
|
$mixedImage, |
|
|
|
$sDstImage = '' |
|
) |
| |
◆ setAutoCrop()
ChWsbImageResize::setAutoCrop |
( |
|
$b | ) |
|
Crop image to destination size with filling whole area of destination size
Definition at line 142 of file ChWsbImageResize.php.
◆ setJpegOutput()
ChWsbImageResize::setJpegOutput |
( |
|
$b | ) |
|
◆ setJpegQuality()
ChWsbImageResize::setJpegQuality |
( |
|
$i | ) |
|
◆ setSize()
ChWsbImageResize::setSize |
( |
|
$w, |
|
|
|
$h |
|
) |
| |
◆ setSquareResize()
ChWsbImageResize::setSquareResize |
( |
|
$b | ) |
|
◆ $_iJpegQuality
ChWsbImageResize::$_iJpegQuality = 90 |
|
protected |
◆ $_isAutoCrop
ChWsbImageResize::$_isAutoCrop = false |
|
protected |
◆ $_isSquareResize
ChWsbImageResize::$_isSquareResize = false |
|
protected |
use smart resize, destination image will be exact Width x Height size
Definition at line 33 of file ChWsbImageResize.php.
◆ $_isUseGD
ChWsbImageResize::$_isUseGD |
|
protected |
◆ $_oManager
ChWsbImageResize::$_oManager |
|
protected |
◆ $_sError
ChWsbImageResize::$_sError |
|
protected |
◆ $h
ChWsbImageResize::$h = 64 |
◆ $w
ChWsbImageResize::$w = 64 |
|
protected |
The documentation for this class was generated from the following file: