diff --git a/wire/core/Pageimage.php b/wire/core/Pageimage.php index 31c76ba5..068e878e 100644 --- a/wire/core/Pageimage.php +++ b/wire/core/Pageimage.php @@ -1659,9 +1659,13 @@ class Pageimage extends Pagefile { $height = 0; } $options['webpAdd'] = true; - $original->size($width, $height, $options); - $error = $this->error; + try { + $original->size($width, $height, $options); + } catch(\Exception $e) { + $this->error = ($this->error ? "$this->error - " : "") . $e->getMessage(); + } + $error = $this->error; $event->return = empty($error); }