| 1 |
<?php |
| 2 |
|
| 3 |
namespace Depicter\Media\Image; |
| 4 |
|
| 5 |
|
| 6 |
interface FileEditInterface |
| 7 |
{ |
| 8 |
/** |
| 9 |
* Shorthand method for calling resize and crop methods. |
| 10 |
* |
| 11 |
* @param int $resizeW Resize width |
| 12 |
* @param int $resizeH Resize height |
| 13 |
* @param int $cropW Crop with |
| 14 |
* @param int $cropH Crop height |
| 15 |
* @param array $args Resizing options |
| 16 |
* |
| 17 |
* @return mixed |
| 18 |
*/ |
| 19 |
public function process( $resizeW = null, $resizeH = null, $cropW = null, $cropH = null, $args = [] ); |
| 20 |
|
| 21 |
|
| 22 |
/** |
| 23 |
* Resize the current image. |
| 24 |
* |
| 25 |
* @param int $width Resize width |
| 26 |
* @param int $height Resize height |
| 27 |
* @param array $args Resizing options |
| 28 |
* |
| 29 |
* @return mixed |
| 30 |
*/ |
| 31 |
public function resize( $width = null, $height = null, $args = [] ); |
| 32 |
|
| 33 |
|
| 34 |
/** |
| 35 |
* Crops the images |
| 36 |
* |
| 37 |
* @param int $width Width to crop |
| 38 |
* @param int $height Height to crop |
| 39 |
* @param array $args Cropping options |
| 40 |
* |
| 41 |
* @return mixed |
| 42 |
*/ |
| 43 |
public function crop( $width = null, $height = null, $args = [] ); |
| 44 |
} |
| 45 |
|