Метод |
Описание |
|
addFilter ( ) |
Append a filter, e.g. ->addFilter('brightness', 42) |
|
crop ( $topLeftX, $topLeftY, $bottomRightX, $bottomRightY ) |
Manually specify crop window. |
|
fitIn ( $width, $height ) |
Resize the image to fit in a box of the specified dimensions. Overrides
any previous call to fullFitIn, fitIn or resize. |
|
fullFitIn ( $width, $height ) |
Resize the image to fit by smallest side in a box of the specified dimensions. |
|
halign ( string $halign ) |
Specify horizontal alignment used if width is altered due to cropping |
|
metadataOnly ( boolean $metadataOnly ) |
Specify that JSON metadata should be returned instead of the thumbnailed
image. |
|
resize ( $width, $height ) |
Resize the image to the specified dimensions. Overrides any previous call
to fullFitIn, fitIn or resize. |
|
smartCrop ( boolean $smartCrop ) |
Specify that smart cropping should be used (overrides halign/valign). |
|
toArray ( ) |
Stringify and return commands as an array. |
|
trim ( $colourSource = null, $tolerance = null ) |
Trim surrounding space from the thumbnail. The top-left corner of the
image is assumed to contain the background colour. To specify otherwise,
pass either 'top-left' or 'bottom-right' as the $colourSource argument. |
|
valign ( string $valign ) |
Specify vertical alignment used if height is altered due to cropping |
|