1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Images;
13
14 class SaveOperation extends \Icybee\Modules\Files\SaveOperation
15 {
16 protected $accept = [ '.gif', '.png', '.jpg', '.jpeg' ];
17
18 protected function control(array $controls)
19 {
20 $request = $this->request;
21
22 unset($request[Image::WIDTH]);
23 unset($request[Image::HEIGHT]);
24
25 return parent::control($controls);
26 }
27 }