diff --git a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php index 4e1e8e9..111085d 100644 --- a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php +++ b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitOperationManager.php @@ -92,7 +92,7 @@ function ($definition) use ($toolkit_id, $operation) { // If this image toolkit plugin is a derivative and returns no operation, // try once again with its base plugin. $base_toolkit_id = $toolkit->getBaseId(); - if (!empty($base_toolkit_id)) { + if (($toolkit_id != $base_toolkit_id) && !empty($base_toolkit_id)) { $base_toolkit = $this->toolkitManager->createInstance($base_toolkit_id); return $this->getToolkitOperationPluginId($base_toolkit, $operation);