Property | Type | Description | |
---|---|---|---|
$CMYKColorProfile | string | ||
$RGBColorProfile | string | ||
$imagePath | string | ||
$resource |
Method | Description | |
---|---|---|
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 ) | ||
crop ( $x, $y, $width, $height ) : self | ||
frame ( $width, $height ) | ||
gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
getCMYKColorProfile ( ) : string | ||
getDimensions ( ) : array | ||
getRGBColorProfile ( ) : string | ||
getVectorFormatEmbeddedRasterDimensions ( ) : array | null | ||
getVectorRasterDimensions ( ) : array | ||
grayscale ( ) : self | ||
isVectorGraphic ( null $imagePath = null ) : boolean | ||
load ( $imagePath, array $options = [] ) | ||
mirror ( $mode ) | ||
resize ( $width, $height ) : self | ||
rotate ( $angle ) | ||
roundCorners ( $width, $height ) | ||
save ( $path, null $format = null, null $quality = null ) | ||
sepia ( ) : self | ||
setBackgroundColor ( $color ) : self | ||
setBackgroundImage ( $image, null | string $mode = null ) | ||
setCMYKColorProfile ( string $CMYKColorProfile ) | ||
setColorspaceToRGB ( ) | ||
setRGBColorProfile ( string $RGBColorProfile ) | ||
sharpen ( integer $radius, float $sigma = 1, float $amount = 1, float $threshold = 0.05 ) | ||
trim ( $tolerance ) : self |
Method | Description | |
---|---|---|
createImage ( $width, $height, $color = "transparent" ) : |
||
destroy ( ) : void | ||
hasAlphaChannel ( ) : boolean |
public addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : self | ||
$image | string | |
$x | integer | Amount of horizontal pixels the overlay should be offset from the origin |
$y | integer | Amount of vertical pixels the overlay should be offset from the origin |
$alpha | integer | Opacity in a scale of 0 (transparent) to 100 (opaque) |
$origin | string | Origin of the X and Y coordinates (top-left, top-right, bottom-left, bottom-right or center) |
return | self |
public addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) | ||
$image | ||
$composite | string |
protected createImage ( $width, $height, $color = "transparent" ) : |
||
$width | ||
$height | ||
return |
public crop ( $x, $y, $width, $height ) : self | ||
$x | ||
$y | ||
$width | ||
$height | ||
return | self |
public gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
$radius | integer | |
$sigma | float |
public static getCMYKColorProfile ( ) : string | ||
return | string |
public static getRGBColorProfile ( ) : string | ||
return | string |
public getVectorFormatEmbeddedRasterDimensions ( ) : array | null | ||
return | array | null |
public isVectorGraphic ( null $imagePath = null ) : boolean | ||
$imagePath | null | |
return | boolean |
public setBackgroundImage ( $image, null | string $mode = null ) | ||
$image | ||
$mode | null | string |
public static setCMYKColorProfile ( string $CMYKColorProfile ) | ||
$CMYKColorProfile | string |
public static setRGBColorProfile ( string $RGBColorProfile ) | ||
$RGBColorProfile | string |