Property | Type | Description | |
---|---|---|---|
$compositeCommandOptions | array | Options used by the composite script | |
$compositeScriptPath | string | ||
$convertCommandOptions | array | Options used by the convert script | |
$convertFilters | array | Array with filters used with options | |
$convertScriptPath | string | ||
$forceAlpha | null | ||
$imagePath | null | string | The base image path | |
$outputPath | null | string | ||
$resource | null | |
Method | Description | |
---|---|---|
addCompositeOption ( $name, null $value = null ) : |
Add option available in the composite tool | |
addConvertOption ( $name, null $value = null ) : |
Add option to the command | |
addFilter ( $optionName, $filterValue ) | Add a filter to the convert command | |
addOverlay ( string $image, integer $x, integer $y, integer $alpha = 100, string $composite = "COMPOSITE_DEFAULT", string $origin = 'top-left' ) : |
||
addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) : |
||
applyMask ( $image ) : |
Add mask to the image | |
brightnessSaturation ( integer $brightness = 100, integer $saturation = 100, integer $hue = 100 ) : |
Brightness, saturation and hue setting of the image. | |
crop ( $x, $y, $width, $height ) : |
Cuts out a box of the image starting at the given X,Y coordinates and using the width and height. | |
cropPercent ( $x, $y, $width, $height ) | Cuts out a box of the image starting at the given X,Y coordinates and using percentage values of width and height. | |
frame ( $width, $height ) : |
Adds frame which cause that the image gets exactly the entered dimensions by adding borders. | |
gaussianBlur ( integer $radius, float $sigma = 1 ) | Blur the image. | |
generateCanvas ( $width, $height, $color ) : |
It generates a basic canvas file with specified size and color | |
getCompositeCommand ( ) : string | Return the composite command as a string | |
getCompositeOptionsAsString ( ) : string | Returns the composite options as a string | |
getCompositeScriptPath ( ) : string | Returns the composite cli script path. | |
getConvertCommand ( ) : string | Return the command without an output file path | |
getConvertFilters ( $optionName ) : array | Returns the filters array | |
getConvertOptionsAsString ( ) : string | Returns options parameter for the convert command | |
getConvertScriptPath ( ) : string | Returns the convert cli script path. | |
getForceAlpha ( ) : boolean | ||
getOutputPath ( ) : null | string | ||
grayscale ( $method = "Rec601Luma" ) : |
Converts the image into a linear-grayscale image. | |
load ( $imagePath, array $options = [] ) : |
loads the image by the specified path | |
mergeImage ( |
Merges the image specified as the argument into the main picture. | |
mirror ( $mode ) : |
Creates vertical or horizontal mirror of the image. | |
resize ( $width, $height ) | Resize the image | |
rotate ( $angle ) : |
Rotates the image with the given angle. | |
roundCorners ( $width, $height ) : |
Rounds the corners to the given width/height. | |
save ( $path, null $format = null, null $quality = null ) | Save the modified image output in the specified path as the first argument. | |
saveIfRequired ( string $suffix ) | ||
sepia ( ) : |
Applies the sepia effect into the image. | |
setBackgroundColor ( $color ) : |
Set the background color of the image. | |
setBackgroundImage ( $image, null $mode = null, $relativePath = false ) : |
Set the image background | |
setCompositeScriptPath ( $compositeScriptPath ) : |
Composite script path, as a default the adapter is just using 'composite'. | |
setConvertScriptPath ( $convertScriptPath ) : |
Convert script path, as a default the adapter is just using 'convert'. | |
setForceAlpha ( boolean $forceAlpha ) : |
||
setOutputPath ( $path ) : |
||
sharpen ( integer $radius, float $sigma = 1, float $amount = 1, float $threshold = 0.05 ) : |
Sharpen the image. | |
trim ( integer $tolerance ) : |
Trims edges |
Method | Description | |
---|---|---|
createTmpImage ( $imagePath, $suffix ) : |
Creates the tmp image, that image will be automatically deleted when the process finishes. | |
destroy ( ) : |
||
initResource ( ) : |
||
processCommand ( $command ) : integer | ||
processOverlay ( |
||
setTmpPaths ( |
public addCompositeOption ( $name, null $value = null ) : |
||
$name | ||
$value | null | |
return |
public addConvertOption ( $name, null $value = null ) : |
||
$name | ||
$value | null | |
return |
public addFilter ( $optionName, $filterValue ) | ||
$optionName | ||
$filterValue |
public addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) : |
||
$image | ||
$composite | string | |
return |
public applyMask ( $image ) : |
||
$image | ||
return |
protected createTmpImage ( $imagePath, $suffix ) : |
||
$imagePath | ||
$suffix | ||
return |
public crop ( $x, $y, $width, $height ) : |
||
$x | ||
$y | ||
$width | ||
$height | ||
return |
public cropPercent ( $x, $y, $width, $height ) | ||
$x | ||
$y | ||
$width | ||
$height |
public frame ( $width, $height ) : |
||
$width | ||
$height | ||
return |
public gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
$radius | integer | |
$sigma | float |
public generateCanvas ( $width, $height, $color ) : |
||
$width | ||
$height | ||
$color | ||
return |
public getCompositeCommand ( ) : string | ||
return | string |
public getCompositeOptionsAsString ( ) : string | ||
return | string |
public getCompositeScriptPath ( ) : string | ||
return | string |
public getConvertCommand ( ) : string | ||
return | string |
public getConvertFilters ( $optionName ) : array | ||
$optionName | ||
return | array |
public getConvertOptionsAsString ( ) : string | ||
return | string |
public getConvertScriptPath ( ) : string | ||
return | string |
public grayscale ( $method = "Rec601Luma" ) : |
||
return |
public mergeImage ( |
||
$backgroundImage | ||
return |
public mirror ( $mode ) : |
||
$mode | ||
return |
protected processCommand ( $command ) : integer | ||
$command | ||
return | integer |
protected processOverlay ( |
||
$overlayImage | ||
$composite | string | |
return |
public rotate ( $angle ) : |
||
$angle | ||
return |
public roundCorners ( $width, $height ) : |
||
$width | ||
$height | ||
return |
public saveIfRequired ( string $suffix ) | ||
$suffix | string | a thumbnail identifier |
public sepia ( ) : |
||
return |
public setBackgroundColor ( $color ) : |
||
$color | ||
return |
public setBackgroundImage ( $image, null $mode = null, $relativePath = false ) : |
||
$image | ||
$mode | null | |
return |
public setCompositeScriptPath ( $compositeScriptPath ) : |
||
return |
public setConvertScriptPath ( $convertScriptPath ) : |
||
$convertScriptPath | ||
return |
public setForceAlpha ( boolean $forceAlpha ) : |
||
$forceAlpha | boolean | |
return |
protected setTmpPaths ( |
||
$image |
protected array $compositeCommandOptions | ||
return | array |
protected array $convertCommandOptions | ||
return | array |
protected array $convertFilters | ||
return | array |
protected null|Imagick,Pimcore\Image\Adapter $resource | ||
return | null | |