Ignore images that can't be processed by the resizer
This commit is contained in:
parent
ed06a6f1ac
commit
618e2b58ab
|
|
@ -612,7 +612,7 @@ class ImageResizer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$disk || !$path || !$selectedSource) {
|
if (!$disk || !$path || !$selectedSource || (!in_array(FileHelper::extension($path), ['jpg', 'jpeg', 'png', 'webp', 'gif']))) {
|
||||||
if (is_object($image)) {
|
if (is_object($image)) {
|
||||||
$image = get_class($image);
|
$image = get_class($image);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue