| 1 | <?php |
||
| 8 | class GlideImage |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string The path to the input image. |
||
| 12 | */ |
||
| 13 | protected $sourceFile; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array The modification the need to be made on the image. |
||
| 17 | * Take a look at Glide's image API to see which parameters are possible. |
||
| 18 | * http://glide.thephpleague.com/1.0/api/quick-reference/ |
||
| 19 | */ |
||
| 20 | protected $modificationParameters = []; |
||
| 21 | |||
| 22 | public static function create(string $sourceFile) : GlideImage |
||
| 26 | |||
| 27 | public function setSourceFile(string $sourceFile) : GlideImage |
||
| 37 | |||
| 38 | public function modify(array $modificationParameters) : GlideImage |
||
| 44 | |||
| 45 | public function save(string $outputFile) : string |
||
| 63 | } |
||
| 64 |