diff --git a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/ScaleAndCrop.php b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/ScaleAndCrop.php index 6b95e29..ac64512 100644 --- a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/ScaleAndCrop.php +++ b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/ScaleAndCrop.php @@ -59,8 +59,8 @@ protected function validateArguments(ImageInterface $image, array $arguments) { * {@inheritdoc} */ protected function execute(ImageInterface $image, array $arguments = array()) { - return $this->getToolkit()->apply('resize', $image, $arguments['resize']) - && $this->getToolkit()->apply('crop', $image, $arguments); + return $this->getToolkit()->apply('resize', $arguments['resize']) + && $this->getToolkit()->apply('crop', $arguments); } } diff --git a/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php b/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php index 5b56734..7348b33 100644 --- a/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php +++ b/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php @@ -153,7 +153,7 @@ public function setType($type) { /** * {@inheritdoc} */ - public function getMimeType(ImageInterface $image) { + public function getMimeType() { return $this->getType() ? image_type_to_mime_type($this->getType()) : ''; }