image resizer exception if imagick not installed.

This commit is contained in:
Mike Macgirvin 2023-04-23 17:19:28 -07:00
parent ca14898973
commit dc9076e73a

View file

@ -17,13 +17,9 @@ class Resizer
public function __construct($converter_path,$getimagesize)
{
if (@file_exists($converter_path)) {
$this->converter_path = $converter_path;
}
if ($getimagesize) {
$this->converter_path = (file_exists($converter_path)) ? $converter_path : '';
$this->getimagesize = $getimagesize;
}
}
private function constructDimension($max): bool|string
{