Свойство | 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 | |
Méthode | 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 |
Méthode | 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 | |
Résultat |
public addConvertOption ( $name, null $value = null ) : |
||
$name | ||
$value | null | |
Résultat |
public addFilter ( $optionName, $filterValue ) | ||
$optionName | ||
$filterValue |
public addOverlayFit ( $image, string $composite = "COMPOSITE_DEFAULT" ) : |
||
$image | ||
$composite | string | |
Résultat |
public applyMask ( $image ) : |
||
$image | ||
Résultat |
protected createTmpImage ( $imagePath, $suffix ) : |
||
$imagePath | ||
$suffix | ||
Résultat |
public crop ( $x, $y, $width, $height ) : |
||
$x | ||
$y | ||
$width | ||
$height | ||
Résultat |
public cropPercent ( $x, $y, $width, $height ) | ||
$x | ||
$y | ||
$width | ||
$height |
public frame ( $width, $height ) : |
||
$width | ||
$height | ||
Résultat |
public gaussianBlur ( integer $radius, float $sigma = 1 ) | ||
$radius | integer | |
$sigma | float |
public generateCanvas ( $width, $height, $color ) : |
||
$width | ||
$height | ||
$color | ||
Résultat |
public getCompositeCommand ( ) : string | ||
Résultat | string |
public getCompositeOptionsAsString ( ) : string | ||
Résultat | string |
public getCompositeScriptPath ( ) : string | ||
Résultat | string |
public getConvertCommand ( ) : string | ||
Résultat | string |
public getConvertFilters ( $optionName ) : array | ||
$optionName | ||
Résultat | array |
public getConvertOptionsAsString ( ) : string | ||
Résultat | string |
public getConvertScriptPath ( ) : string | ||
Résultat | string |
public grayscale ( $method = "Rec601Luma" ) : |
||
Résultat |
public mergeImage ( |
||
$backgroundImage | ||
Résultat |
public mirror ( $mode ) : |
||
$mode | ||
Résultat |
protected processCommand ( $command ) : integer | ||
$command | ||
Résultat | integer |
protected processOverlay ( |
||
$overlayImage | ||
$composite | string | |
Résultat |
public rotate ( $angle ) : |
||
$angle | ||
Résultat |
public roundCorners ( $width, $height ) : |
||
$width | ||
$height | ||
Résultat |
public saveIfRequired ( string $suffix ) | ||
$suffix | string | a thumbnail identifier |
public sepia ( ) : |
||
Résultat |
public setBackgroundColor ( $color ) : |
||
$color | ||
Résultat |
public setBackgroundImage ( $image, null $mode = null, $relativePath = false ) : |
||
$image | ||
$mode | null | |
Résultat |
public setCompositeScriptPath ( $compositeScriptPath ) : |
||
Résultat |
public setConvertScriptPath ( $convertScriptPath ) : |
||
$convertScriptPath | ||
Résultat |
public setForceAlpha ( boolean $forceAlpha ) : |
||
$forceAlpha | boolean | |
Résultat |
public setOutputPath ( $path ) : |
||
$path | ||
Résultat |
protected setTmpPaths ( |
||
$image |
protected array $compositeCommandOptions | ||
Résultat | array |
protected array $convertCommandOptions | ||
Résultat | array |
protected array $convertFilters | ||
Résultat | array |
protected null|Imagick,Pimcore\Image\Adapter $resource | ||
Résultat | null | |