Add default width parameter to resizer
This commit is contained in:
parent
1aa76cb053
commit
9de91033ba
@ -12,7 +12,7 @@ class ResizeParams
|
|||||||
|
|
||||||
public function __construct(array $params)
|
public function __construct(array $params)
|
||||||
{
|
{
|
||||||
$this->width = intval($params['width']) ?: null;
|
$this->width = intval($params['width']) ?: intval($_ENV["DEFAULT_WIDTH"]);
|
||||||
$this->height = intval($params['height']) ?: null;
|
$this->height = intval($params['height']) ?: null;
|
||||||
$this->quality = isset($params['quality']) ? intval($params['quality']) : null;
|
$this->quality = isset($params['quality']) ? intval($params['quality']) : null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user