diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Crop.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Crop.php index d0fbecb..fa03ecf 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Crop.php +++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Crop.php @@ -61,7 +61,7 @@ public function prepare(ImageInterface $image, array &$arguments) { * {@inheritdoc} */ public function apply(ImageInterface $image, array $arguments = array()) { - $res = $this->toolkit->createTmp($image, $arguments['width'], $arguments['height']); + $res = $this->toolkit->createTmp($image->getType(), $arguments['width'], $arguments['height']); if (!imagecopyresampled($res, $image->getToolkit()->getResource(), 0, 0, $arguments['x'], $arguments['y'], $arguments['width'], $arguments['height'], $arguments['width'], $arguments['height'])) { return FALSE; diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Resize.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Resize.php index e987ced..663e4e3 100644 --- a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Resize.php +++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/Operation/gd/Resize.php @@ -52,7 +52,7 @@ public function apply(ImageInterface $image, array $arguments = array()) { return FALSE; } - $res = $this->toolkit->createTmp($image, $arguments['width'], $arguments['height']); + $res = $this->toolkit->createTmp($image->getType(), $arguments['width'], $arguments['height']); if (!imagecopyresampled($res, $image->getToolkit()->getResource(), 0, 0, 0, 0, $arguments['width'], $arguments['height'], $image->getWidth(), $image->getHeight())) { return FALSE;