diff --git a/src/models/ImgproxyTransform.php b/src/models/ImgproxyTransform.php index 9686455..eedbccd 100644 --- a/src/models/ImgproxyTransform.php +++ b/src/models/ImgproxyTransform.php @@ -160,8 +160,7 @@ public function transform(array $params): Url $url->options()->withResizingType($resizeType); // focal point - if ($this->source instanceof Asset) { - $fp = $this->source->getFocalPoint(); + if ($this->source instanceof Asset && $fp = $this->source->getFocalPoint()) { $url->options()->withGravity(Gravity::FOCUS_POINT, $fp['x'], $fp['y']); }