Метод | Описание | |
---|---|---|
__destruct ( ) | ||
addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : self | ||
addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) | ||
applyMask ( $image ) : self | ||
brightnessSaturation ( integer $brightness = 100, integer $saturation = 100, integer $hue = 100 ) | ||
colorhex2colorarray ( $colorhex ) : array | ||
contain ( $width, $height ) : self | ||
cover ( $width, $height, string $orientation = "center", $doNotScaleUp = true ) : self | ||
crop ( $x, $y, $width, $height ) : self | ||
cropPercent ( $width, $height, $x, $y ) : self | ||
frame ( $width, $height ) | ||
gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
getHeight ( ) : integer | ||
getModified ( ) : boolean | ||
getUseContentOptimizedFormat ( ) : boolean | ||
getVectorRasterDimensions ( ) : array | ||
getWidth ( ) : integer | ||
grayscale ( ) : self | ||
isPreserveColor ( ) : boolean | ||
isPreserveMetaData ( ) : boolean | ||
isVectorGraphic ( ) : boolean | ||
load ( $imagePath, $options = [] ) : self | ||
mirror ( $mode ) : self | ||
postModify ( ) | ||
preModify ( ) | ||
resize ( $width, $height ) : self | ||
rotate ( $angle ) | ||
roundCorners ( $width, $height ) | ||
save ( $path, null $format = null, null $quality = null ) : mixed | ||
scaleByHeight ( $height, $forceResize = false ) : self | ||
scaleByWidth ( $width, $forceResize = false ) : self | ||
sepia ( ) : self | ||
setBackgroundColor ( $color ) : self | ||
setBackgroundImage ( $image ) : self | ||
setColorspace ( string $type = "RGB" ) | ||
setHeight ( $height ) | ||
setIsAlphaPossible ( boolean $value ) | ||
setModified ( boolean $modified ) | ||
setPreserveColor ( boolean $preserveColor ) | ||
setPreserveMetaData ( boolean $preserveMetaData ) | ||
setUseContentOptimizedFormat ( boolean $useContentOptimizedFormat ) | ||
setWidth ( $width ) | ||
sharpen ( ) : self | ||
trim ( integer $tolerance ) : self |
Метод | Описание | |
---|---|---|
destroy ( ) : void | ||
reinitializeImage ( ) : void | ||
removeTmpFiles ( ) : void |
public addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : self | ||
$image | string | |
$x | integer | |
$y | integer | |
$alpha | integer | |
$origin | string | Origin of the X and Y coordinates (top-left, top-right, bottom-left, bottom-right or center) |
Результат | self |
public addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) | ||
$image | ||
$composite | string |
public colorhex2colorarray ( $colorhex ) : array | ||
$colorhex | ||
Результат | array |
public crop ( $x, $y, $width, $height ) : self | ||
$x | ||
$y | ||
$width | ||
$height | ||
Результат | self |
public cropPercent ( $width, $height, $x, $y ) : self | ||
$width | ||
$height | ||
$x | ||
$y | ||
Результат | self |
public gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
$radius | integer | |
$sigma | float |
public getUseContentOptimizedFormat ( ) : boolean | ||
Результат | boolean |
public getVectorRasterDimensions ( ) : array | ||
Результат | array |
abstract public load ( $imagePath, $options = [] ) : self | ||
$imagePath | ||
Результат | self |
public scaleByHeight ( $height, $forceResize = false ) : self | ||
$height | ||
Результат | self |
public scaleByWidth ( $width, $forceResize = false ) : self | ||
$width | ||
Результат | self |
public setBackgroundColor ( $color ) : self | ||
$color | ||
Результат | self |
public setBackgroundImage ( $image ) : self | ||
$image | ||
Результат | self |
public setPreserveColor ( boolean $preserveColor ) | ||
$preserveColor | boolean |
public setPreserveMetaData ( boolean $preserveMetaData ) | ||
$preserveMetaData | boolean |
public setUseContentOptimizedFormat ( boolean $useContentOptimizedFormat ) | ||
$useContentOptimizedFormat | boolean |
protected bool $useContentOptimizedFormat | ||
Результат | boolean |