ImageEditorTransformerInterface ​
- Type
- Interface
- Namespace
- craft\base\imagetransforms
- Implemented by
- craft\imagetransforms\ImageTransformer
- Since
- 4.0.0
ImageEditorTransformerInterface defines the common interface to be implemented by image drivers that support the Image Editor
Public Methods ​
| Method | Description |
|---|---|
| cancelImageEditing() | Aborts the image editing process and returns the location of a temporary file that was created. |
| crop() | Crops the image. |
| finishImageEditing() | Completes an image editing process and returns the file location of the resulting image; |
| flipImage() | Flips the image. |
| getEditedImageHeight() | Returns the current height of the edited image. |
| getEditedImageWidth() | Returns the current width of the edited image. |
| rotateImage() | Rotates the image. |
| scaleImage() | Scales the image. |
| startImageEditing() | Begins an image editing process. |
cancelImageEditing() ​
Aborts the image editing process and returns the location of a temporary file that was created.
Returns ​
crop() ​
Crops the image.
Arguments ​
finishImageEditing() ​
Completes an image editing process and returns the file location of the resulting image;
Returns ​
flipImage() ​
Flips the image.
Arguments ​
getEditedImageHeight() ​
Returns the current height of the edited image.
Returns ​
integer – $height
getEditedImageWidth() ​
Returns the current width of the edited image.
Returns ​
integer – $width
rotateImage() ​
Rotates the image.
Arguments ​
$degrees(float)
scaleImage() ​
Scales the image.
Arguments ​
startImageEditing() ​
Begins an image editing process.
Arguments ​
$asset(craft\elements\Asset)