diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php index c34c4e8..b58939e 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php +++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php @@ -195,6 +195,8 @@ public function scaleAndCrop(ImageInterface $image, $width, $height) { if ($this->resize($image, $image->getWidth() * $scale, $image->getHeight() * $scale)) { return $this->crop($image, $x, $y, $width, $height); } + + return FALSE; } /**