diff --git a/core/core.services.yml b/core/core.services.yml
index 6a0669c..aaa5592 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -522,6 +522,9 @@ services:
   image.toolkit.manager:
     class: Drupal\system\Plugin\ImageToolkitManager
     arguments: ['@container.namespaces', '@cache.cache', '@language_manager']
+  image.toolkit.operation.manager:
+    class: Drupal\system\Plugin\ImageToolkitOperationManager
+    arguments: ['@container.namespaces', '@cache.cache', '@language_manager']
   image.toolkit:
     class: Drupal\system\Plugin\ImageToolkitInterface
     factory_method: getDefaultToolkit
diff --git a/core/lib/Drupal/Core/Image/Image.php b/core/lib/Drupal/Core/Image/Image.php
index 0f2fc85..f7248c2 100644
--- a/core/lib/Drupal/Core/Image/Image.php
+++ b/core/lib/Drupal/Core/Image/Image.php
@@ -326,7 +326,7 @@ public function crop($x, $y, $width, $height) {
     $width = (int) round($width);
     $height = (int) round($height);
 
-    return $this->toolkit->crop($this, $x, $y, $width, $height);
+    return $this->toolkit->process('crop', $this, array('x' => $x, 'y' => $y, 'width' => $width, 'height' => $height));
   }
 
   /**
@@ -336,21 +336,21 @@ public function resize($width, $height) {
     $width = (int) round($width);
     $height = (int) round($height);
 
-    return $this->toolkit->resize($this, $width, $height);
+    return $this->toolkit->process('resize', $this, array('width' => $width, 'height' => $height));
   }
 
   /**
    * {@inheritdoc}
    */
   public function desaturate() {
-    return $this->toolkit->desaturate($this);
+    return $this->toolkit->process('desaturate', $this);
   }
 
   /**
    * {@inheritdoc}
    */
   public function rotate($degrees, $background = NULL) {
-    return $this->toolkit->rotate($this, $degrees, $background);
+    return $this->toolkit->process('rotate', $this, array('degrees' => $degrees, 'background' => $background));
   }
 
   /**
diff --git a/core/modules/system/lib/Drupal/system/Annotation/ImageToolkitOperation.php b/core/modules/system/lib/Drupal/system/Annotation/ImageToolkitOperation.php
new file mode 100644
index 0000000..d4b1a77
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Annotation/ImageToolkitOperation.php
@@ -0,0 +1,53 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Annotation\ImageToolkitOperation.
+ */
+
+namespace Drupal\system\Annotation;
+
+use Drupal\Component\Annotation\Plugin;
+
+/**
+ * Defines a Plugin annotation object for the image toolkit operation plugin.
+ *
+ * @Annotation
+ *
+ * @see \Drupal\system\Plugin\ImageToolkitOperationManager
+ */
+class ImageToolkitOperation extends Plugin {
+
+  /**
+   * The plugin ID.
+   *
+   * @var string
+   */
+  public $id;
+
+  /**
+   * The label of the image toolkit operation.
+   *
+   * @var string
+   */
+  public $label;
+
+  /**
+   * The description of the image toolkit operation.
+   *
+   * The string should be wrapped in a @Translation().
+   *
+   * @ingroup plugin_translatable
+   *
+   * @var \Drupal\Core\Annotation\Translation
+   */
+  public $description;
+
+  /**
+   * The id of the image toolkit plugin for which the operation is implemented.
+   *
+   * @var \Drupal\system\Plugin\ImageToolkit
+   */
+  public $toolkit;
+
+}
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 cf13884..f6aa276 100644
--- a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkit/GDToolkit.php
@@ -2,7 +2,7 @@
 
 /**
  * @file
- * Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit;.
+ * Contains \Drupal\system\Plugin\ImageToolkit\GDToolkit.
  */
 
 namespace Drupal\system\Plugin\ImageToolkit;
@@ -11,6 +11,7 @@
 use Drupal\system\Annotation\ImageToolkit;
 use Drupal\Core\Annotation\Translation;
 use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Plugin\ImageToolkitBase;
 use Drupal\system\Plugin\ImageToolkitInterface;
 
 /**
@@ -21,7 +22,7 @@
  *   title = @Translation("GD2 image manipulation toolkit")
  * )
  */
-class GDToolkit extends PluginBase implements ImageToolkitInterface {
+class GDToolkit extends ImageToolkitBase implements ImageToolkitInterface {
 
   /**
    * {@inheritdoc}
@@ -51,109 +52,6 @@ public function settingsFormSubmit($form, &$form_state) {
   /**
    * {@inheritdoc}
    */
-  public function resize(ImageInterface $image, $width, $height) {
-    $res = $this->createTmp($image, $width, $height);
-
-    if (!imagecopyresampled($res, $image->getResource(), 0, 0, 0, 0, $width, $height, $image->getWidth(), $image->getHeight())) {
-      return FALSE;
-    }
-
-    imagedestroy($image->getResource());
-    // Update image object.
-    $image
-      ->setResource($res)
-      ->setWidth($width)
-      ->setHeight($height);
-    return TRUE;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function rotate(ImageInterface $image, $degrees, $background = NULL) {
-    // PHP installations using non-bundled GD do not have imagerotate.
-    if (!function_exists('imagerotate')) {
-      watchdog('image', 'The image %file could not be rotated because the imagerotate() function is not available in this PHP installation.', array('%file' => $image->getSource()));
-      return FALSE;
-    }
-
-    // Convert the hexadecimal background value to a color index value.
-    if (isset($background)) {
-      $rgb = array();
-      for ($i = 16; $i >= 0; $i -= 8) {
-        $rgb[] = (($background >> $i) & 0xFF);
-      }
-      $background = imagecolorallocatealpha($image->getResource(), $rgb[0], $rgb[1], $rgb[2], 0);
-    }
-    // Set the background color as transparent if $background is NULL.
-    else {
-      // Get the current transparent color.
-      $background = imagecolortransparent($image->getResource());
-
-      // If no transparent colors, use white.
-      if ($background == 0) {
-        $background = imagecolorallocatealpha($image->getResource(), 255, 255, 255, 0);
-      }
-    }
-
-    // Images are assigned a new color palette when rotating, removing any
-    // transparency flags. For GIF images, keep a record of the transparent color.
-    if ($image->getType() == IMAGETYPE_GIF) {
-      $transparent_index = imagecolortransparent($image->getResource());
-      if ($transparent_index != 0) {
-        $transparent_gif_color = imagecolorsforindex($image->getResource(), $transparent_index);
-      }
-    }
-
-    $image->setResource(imagerotate($image->getResource(), 360 - $degrees, $background));
-
-    // GIFs need to reassign the transparent color after performing the rotate.
-    if (isset($transparent_gif_color)) {
-      $background = imagecolorexactalpha($image->getResource(), $transparent_gif_color['red'], $transparent_gif_color['green'], $transparent_gif_color['blue'], $transparent_gif_color['alpha']);
-      imagecolortransparent($image->getResource(), $background);
-    }
-
-    $image
-      ->setWidth(imagesx($image->getResource()))
-      ->setHeight(imagesy($image->getResource()));
-    return TRUE;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function crop(ImageInterface $image, $x, $y, $width, $height) {
-    $res = $this->createTmp($image, $width, $height);
-
-    if (!imagecopyresampled($res, $image->getResource(), 0, 0, $x, $y, $width, $height, $width, $height)) {
-      return FALSE;
-    }
-
-    // Destroy the original image and return the modified image.
-    imagedestroy($image->getResource());
-    $image
-      ->setResource($res)
-      ->setWidth($width)
-      ->setHeight($height);
-    return TRUE;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function desaturate(ImageInterface $image) {
-    // PHP installations using non-bundled GD do not have imagefilter.
-    if (!function_exists('imagefilter')) {
-      watchdog('image', 'The image %file could not be desaturated because the imagefilter() function is not available in this PHP installation.', array('%file' => $image->getSource()));
-      return FALSE;
-    }
-
-    return imagefilter($image->getResource(), IMG_FILTER_GRAYSCALE);
-  }
-
-  /**
-   * {@inheritdoc}
-   */
   public function load(ImageInterface $image) {
     $function = 'imagecreatefrom' . image_type_to_extension($image->getType(), FALSE);
     if (function_exists($function) && $resource = $function($image->getSource())) {
@@ -161,7 +59,7 @@ public function load(ImageInterface $image) {
       if (!imageistruecolor($resource)) {
         // Convert indexed images to true color, so that filters work
         // correctly and don't result in unnecessary dither.
-        $new_image = $this->createTmp($image, $image->getWidth(), $image->getHeight());
+        $new_image = $this->process('createTmp', $image, array('width' => $image->getWidth(), 'height' => $image->getHeight()));
         imagecopy($new_image, $resource, 0, 0, 0, 0, $image->getWidth(), $image->getHeight());
         imagedestroy($resource);
         $image->setResource($new_image);
@@ -231,50 +129,6 @@ public function getInfo(ImageInterface $image) {
   }
 
   /**
-   * Creates a truecolor image preserving transparency from a provided image.
-   *
-   * @param \Drupal\Core\Image\ImageInterface $image
-   *   An image object.
-   * @param int $width
-   *   The new width of the new image, in pixels.
-   * @param int $height
-   *   The new height of the new image, in pixels.
-   *
-   * @return resource
-   *   A GD image handle.
-   */
-  public function createTmp(ImageInterface $image, $width, $height) {
-    $res = imagecreatetruecolor($width, $height);
-
-    if ($image->getType() == IMAGETYPE_GIF) {
-      // Grab transparent color index from image resource.
-      $transparent = imagecolortransparent($image->getResource());
-
-      if ($transparent >= 0) {
-        // The original must have a transparent color, allocate to the new image.
-        $transparent_color = imagecolorsforindex($image->getResource(), $transparent);
-        $transparent = imagecolorallocate($res, $transparent_color['red'], $transparent_color['green'], $transparent_color['blue']);
-
-        // Flood with our new transparent color.
-        imagefill($res, 0, 0, $transparent);
-        imagecolortransparent($res, $transparent);
-      }
-    }
-    elseif ($image->getType() == IMAGETYPE_PNG) {
-      imagealphablending($res, FALSE);
-      $transparency = imagecolorallocatealpha($res, 0, 0, 0, 127);
-      imagefill($res, 0, 0, $transparency);
-      imagealphablending($res, TRUE);
-      imagesavealpha($res, TRUE);
-    }
-    else {
-      imagefill($res, 0, 0, imagecolorallocate($res, 255, 255, 255));
-    }
-
-    return $res;
-  }
-
-  /**
    * {@inheritdoc}
    */
   public static function isAvailable() {
@@ -293,4 +147,5 @@ public static function isAvailable() {
   public static function supportedTypes() {
     return array(IMAGETYPE_PNG, IMAGETYPE_JPEG, IMAGETYPE_GIF);
   }
+
 }
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitBase.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitBase.php
new file mode 100644
index 0000000..52a113c
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitBase.php
@@ -0,0 +1,75 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitBase.
+ */
+
+namespace Drupal\system\Plugin;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Image\ImageInterface;
+
+/**
+ * Base class implementation of an image toolkit.
+ */
+abstract class ImageToolkitBase extends PluginBase implements ImageToolkitInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsForm() {
+    return array();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsFormSubmit($form, &$form_state) {
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function load(ImageInterface $image) {
+    return FALSE;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function save(ImageInterface $image, $destination) {
+    return FALSE;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getInfo(ImageInterface $image) {
+    return NULL;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function isAvailable() {
+    return FALSE;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function supportedTypes() {
+    return NULL;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function process($operation, ImageInterface $image, array $variables = NULL) {
+    $plugin_id = ($operation == 'createTmp') ? 'gd_create_tmp' : 'gd_' . $operation;
+    $plugin = \Drupal::service('image.toolkit.operation.manager')->createInstance($plugin_id);
+    return $plugin->process($this, $image, $variables);
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitInterface.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitInterface.php
index 5918160..14f66d0 100644
--- a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitInterface.php
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitInterface.php
@@ -60,78 +60,6 @@ public function settingsForm();
   public function settingsFormSubmit($form, &$form_state);
 
   /**
-   * Scales an image to the specified size.
-   *
-   * @param \Drupal\Core\Image\ImageInterface $image
-   *   An image object. The $image->resource, $image->info['width'], and
-   *   $image->info['height'] values will be modified by this call.
-   * @param int $width
-   *   The new width of the resized image, in pixels.
-   * @param int $height
-   *   The new height of the resized image, in pixels.
-   *
-   * @return bool
-   *   TRUE or FALSE, based on success.
-   */
-  public function resize(ImageInterface $image, $width, $height);
-
-  /**
-   * Rotates an image the given number of degrees.
-   *
-   * @param \Drupal\Core\Image\ImageInterface $image
-   *   An image object. The $image->resource, $image->info['width'], and
-   *   $image->info['height'] values will be modified by this call.
-   * @param int $degrees
-   *   The number of (clockwise) degrees to rotate the image.
-   * @param string $background
-   *   (optional) An hexadecimal integer specifying the background color to use
-   *   for the uncovered area of the image after the rotation. E.g. 0x000000 for
-   *   black, 0xff00ff for magenta, and 0xffffff for white. For images that
-   *   support transparency, this will default to transparent. Otherwise it will
-   *   be white.
-   *
-   * @return bool
-   *   TRUE or FALSE, based on success.
-   */
-  public function rotate(ImageInterface $image, $degrees, $background = NULL);
-
-  /**
-   * Crops an image.
-   *
-   * @param \Drupal\Core\Image\ImageInterface $image
-   *   An image object. The $image->resource, $image->info['width'], and
-   *   $image->info['height'] values will be modified by this call.
-   * @param int $x
-   *   The starting x offset at which to start the crop, in pixels.
-   * @param int $y
-   *   The starting y offset at which to start the crop, in pixels.
-   * @param int $width
-   *   The width of the cropped area, in pixels.
-   * @param int $height
-   *   The height of the cropped area, in pixels.
-   *
-   * @return bool
-   *   TRUE or FALSE, based on success.
-   *
-   * @see image_crop()
-   */
-  public function crop(ImageInterface $image, $x, $y, $width, $height);
-
-  /**
-   * Converts an image resource to grayscale.
-   *
-   * Note that transparent GIFs loose transparency when desaturated.
-   *
-   * @param \Drupal\Core\Image\ImageInterface $image
-   *   An image object. The $image->resource value will be modified by this
-   *   call.
-   *
-   * @return bool
-   *   TRUE or FALSE, based on success.
-   */
-  public function desaturate(ImageInterface $image);
-
-  /**
    * Creates an image resource from a file.
    *
    * @param \Drupal\Core\Image\ImageInterface $image
@@ -189,4 +117,19 @@ public static function isAvailable();
    *   IMAGETYPE_* constant (e.g. IMAGETYPE_JPEG, IMAGETYPE_PNG, etc.).
    */
   public static function supportedTypes();
+
+  /**
+   * Processes a toolkit operation.
+   *
+   * @param string $operation
+   *   The toolkit operation to be processed.
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object.
+   * @param array $variables
+   *   An array of variables to be used by the toolkit operation.
+   *
+   * @return bool
+   *   TRUE if the operation is successful, FALSE otherwise.
+   */
+  public function process($operation, ImageInterface $image, array $variables = NULL);
 }
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCreateTmp.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCreateTmp.php
new file mode 100644
index 0000000..e301e21
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCreateTmp.php
@@ -0,0 +1,73 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperation\GDToolkitCreateTmp.
+ */
+
+namespace Drupal\system\Plugin\ImageToolkitOperation;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Annotation\ImageToolkitOperation;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationBase;
+
+/**
+ * Defines GD2 CreateTmp operation.
+ *
+ * @ImageToolkitOperation(
+ *   id = "gd_create_tmp",
+ *   label = "createTmp",
+ *   description = @Translation("GD2 toolkit createTmp"),
+ *   toolkit = "gd"
+ * )
+ */
+class GDToolkitCreateTmp extends ImageToolkitOperationBase {
+
+  /**
+   * Creates a truecolor image preserving transparency from a provided image.
+   *
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object.
+   * @param int $width
+   *   The new width of the new image, in pixels.
+   * @param int $height
+   *   The new height of the new image, in pixels.
+   *
+   * @return resource
+   *   A GD image handle.
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    $res = imagecreatetruecolor($variables['width'], $variables['height']);
+
+    if ($image->getType() == IMAGETYPE_GIF) {
+      // Grab transparent color index from image resource.
+      $transparent = imagecolortransparent($image->getResource());
+
+      if ($transparent >= 0) {
+        // The original must have a transparent color, allocate to the new image.
+        $transparent_color = imagecolorsforindex($image->getResource(), $transparent);
+        $transparent = imagecolorallocate($res, $transparent_color['red'], $transparent_color['green'], $transparent_color['blue']);
+
+        // Flood with our new transparent color.
+        imagefill($res, 0, 0, $transparent);
+        imagecolortransparent($res, $transparent);
+      }
+    }
+    elseif ($image->getType() == IMAGETYPE_PNG) {
+      imagealphablending($res, FALSE);
+      $transparency = imagecolorallocatealpha($res, 0, 0, 0, 127);
+      imagefill($res, 0, 0, $transparency);
+      imagealphablending($res, TRUE);
+      imagesavealpha($res, TRUE);
+    }
+    else {
+      imagefill($res, 0, 0, imagecolorallocate($res, 255, 255, 255));
+    }
+
+    return $res;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCrop.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCrop.php
new file mode 100644
index 0000000..7f7d887
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitCrop.php
@@ -0,0 +1,65 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperation\GDToolkitCrop.
+ */
+
+namespace Drupal\system\Plugin\ImageToolkitOperation;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Annotation\ImageToolkitOperation;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationBase;
+
+/**
+ * Defines GD2 Crop operation.
+ *
+ * @ImageToolkitOperation(
+ *   id = "gd_crop",
+ *   label = "crop",
+ *   description = @Translation("GD2 toolkit crop"),
+ *   toolkit = "gd"
+ * )
+ */
+class GDToolkitCrop extends ImageToolkitOperationBase {
+
+  /**
+   * Crops an image.
+   *
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object. The $image->resource, $image->info['width'], and
+   *   $image->info['height'] values will be modified by this call.
+   * @param int $x
+   *   The starting x offset at which to start the crop, in pixels.
+   * @param int $y
+   *   The starting y offset at which to start the crop, in pixels.
+   * @param int $width
+   *   The width of the cropped area, in pixels.
+   * @param int $height
+   *   The height of the cropped area, in pixels.
+   *
+   * @return bool
+   *   TRUE or FALSE, based on success.
+   *
+   * @see image_crop()
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    $res = $toolkit->process('createTmp', $image, array('width' => $variables['width'], 'height' => $variables['height']));
+
+    if (!imagecopyresampled($res, $image->getResource(), 0, 0, $variables['x'], $variables['y'], $variables['width'], $variables['height'], $variables['width'], $variables['height'])) {
+      return FALSE;
+    }
+
+    // Destroy the original image and return the modified image.
+    imagedestroy($image->getResource());
+    $image
+      ->setResource($res)
+      ->setWidth($variables['width'])
+      ->setHeight($variables['height']);
+    return TRUE;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitDesaturate.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitDesaturate.php
new file mode 100644
index 0000000..fd96215
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitDesaturate.php
@@ -0,0 +1,51 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperation\GDToolkitDesaturate.
+ */
+
+namespace Drupal\system\Plugin\ImageToolkitOperation;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Annotation\ImageToolkitOperation;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationBase;
+
+/**
+ * Defines GD2 Desaturate operation.
+ *
+ * @ImageToolkitOperation(
+ *   id = "gd_desaturate",
+ *   label = "desaturate",
+ *   description = @Translation("GD2 toolkit desaturate"),
+ *   toolkit = "gd"
+ * )
+ */
+class GDToolkitDesaturate extends ImageToolkitOperationBase {
+
+  /**
+   * Converts an image resource to grayscale.
+   *
+   * Note that transparent GIFs loose transparency when desaturated.
+   *
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object. The $image->resource value will be modified by this
+   *   call.
+   *
+   * @return bool
+   *   TRUE or FALSE, based on success.
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    // PHP installations using non-bundled GD do not have imagefilter.
+    if (!function_exists('imagefilter')) {
+      watchdog('image', 'The image %file could not be desaturated because the imagefilter() function is not available in this PHP installation.', array('%file' => $image->getSource()));
+      return FALSE;
+    }
+
+    return imagefilter($image->getResource(), IMG_FILTER_GRAYSCALE);
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitResize.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitResize.php
new file mode 100644
index 0000000..1fa4195
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitResize.php
@@ -0,0 +1,59 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperation\GDToolkitResize.
+ */
+
+namespace Drupal\system\Plugin\ImageToolkitOperation;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Annotation\ImageToolkitOperation;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationBase;
+
+/**
+ * Defines GD2 resize operation.
+ *
+ * @ImageToolkitOperation(
+ *   id = "gd_resize",
+ *   label = "resize",
+ *   description = @Translation("GD2 toolkit resize"),
+ *   toolkit = "gd"
+ * )
+ */
+class GDToolkitResize extends ImageToolkitOperationBase {
+
+  /**
+   * Scales an image to the specified size.
+   *
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object. The $image->resource, $image->info['width'], and
+   *   $image->info['height'] values will be modified by this call.
+   * @param int $width
+   *   The new width of the resized image, in pixels.
+   * @param int $height
+   *   The new height of the resized image, in pixels.
+   *
+   * @return bool
+   *   TRUE or FALSE, based on success.
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    $res = $toolkit->process('createTmp', $image, array('width' => $variables['width'], 'height' => $variables['height']));
+
+    if (!imagecopyresampled($res, $image->getResource(), 0, 0, 0, 0, $variables['width'], $variables['height'], $image->getWidth(), $image->getHeight())) {
+      return FALSE;
+    }
+
+    imagedestroy($image->getResource());
+    // Update image object.
+    $image
+      ->setResource($res)
+      ->setWidth($variables['width'])
+      ->setHeight($variables['height']);
+    return TRUE;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitRotate.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitRotate.php
new file mode 100644
index 0000000..321cb86
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperation/GDToolkitRotate.php
@@ -0,0 +1,99 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperation\GDToolkitRotate.
+ */
+
+namespace Drupal\system\Plugin\ImageToolkitOperation;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Annotation\ImageToolkitOperation;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationBase;
+
+/**
+ * Defines GD2 rotate operation.
+ *
+ * @ImageToolkitOperation(
+ *   id = "gd_rotate",
+ *   label = "rotate",
+ *   description = @Translation("GD2 toolkit rotate"),
+ *   toolkit = "gd"
+ * )
+ */
+class GDToolkitRotate extends ImageToolkitOperationBase {
+
+  /**
+   * Rotates an image the given number of degrees.
+   *
+   * @param \Drupal\Core\Image\ImageInterface $image
+   *   An image object. The $image->resource, $image->info['width'], and
+   *   $image->info['height'] values will be modified by this call.
+   * @param int $degrees
+   *   The number of (clockwise) degrees to rotate the image.
+   * @param string $background
+   *   (optional) An hexadecimal integer specifying the background color to use
+   *   for the uncovered area of the image after the rotation. E.g. 0x000000 for
+   *   black, 0xff00ff for magenta, and 0xffffff for white. For images that
+   *   support transparency, this will default to transparent. Otherwise it will
+   *   be white.
+   *
+   * @return bool
+   *   TRUE or FALSE, based on success.
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    // Ensure background variable is set.
+    $variables['background'] = isset($variables['background']) ? $variables['background'] : NULL;
+
+    // PHP installations using non-bundled GD do not have imagerotate.
+    if (!function_exists('imagerotate')) {
+      watchdog('image', 'The image %file could not be rotated because the imagerotate() function is not available in this PHP installation.', array('%file' => $image->getSource()));
+      return FALSE;
+    }
+
+    // Convert the hexadecimal background value to a color index value.
+    if (!empty($variables['background'])) {
+      $rgb = array();
+      for ($i = 16; $i >= 0; $i -= 8) {
+        $rgb[] = (($variables['background'] >> $i) & 0xFF);
+      }
+      $variables['background'] = imagecolorallocatealpha($image->getResource(), $rgb[0], $rgb[1], $rgb[2], 0);
+    }
+    // Set the background color as transparent if $variables['background'] is NULL.
+    else {
+      // Get the current transparent color.
+      $variables['background'] = imagecolortransparent($image->getResource());
+
+      // If no transparent colors, use white.
+      if ($variables['background'] == 0) {
+        $variables['background'] = imagecolorallocatealpha($image->getResource(), 255, 255, 255, 0);
+      }
+    }
+
+    // Images are assigned a new color palette when rotating, removing any
+    // transparency flags. For GIF images, keep a record of the transparent color.
+    if ($image->getType() == IMAGETYPE_GIF) {
+      $transparent_index = imagecolortransparent($image->getResource());
+      if ($transparent_index != 0) {
+        $transparent_gif_color = imagecolorsforindex($image->getResource(), $transparent_index);
+      }
+    }
+
+    $image->setResource(imagerotate($image->getResource(), 360 - $variables['degrees'], $variables['background']));
+
+    // GIFs need to reassign the transparent color after performing the rotate.
+    if (isset($transparent_gif_color)) {
+      $variables['background'] = imagecolorexactalpha($image->getResource(), $transparent_gif_color['red'], $transparent_gif_color['green'], $transparent_gif_color['blue'], $transparent_gif_color['alpha']);
+      imagecolortransparent($image->getResource(), $variables['background']);
+    }
+
+    $image
+      ->setWidth(imagesx($image->getResource()))
+      ->setHeight(imagesy($image->getResource()));
+    return TRUE;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationBase.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationBase.php
new file mode 100644
index 0000000..473bf07
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationBase.php
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperationBase.
+ */
+
+namespace Drupal\system\Plugin;
+
+use Drupal\Core\Plugin\PluginBase;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Plugin\ImageToolkitInterface;
+use Drupal\system\Plugin\ImageToolkitOperationInterface;
+
+/**
+ * Base class implementation of a image toolkit operation.
+ */
+abstract class ImageToolkitOperationBase extends PluginBase implements ImageToolkitOperationInterface {
+
+  /**
+   * @todo
+   */
+//  protected $toolkit;
+
+  /**
+   * {@inheritdoc}
+   */
+/*  public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    $this->toolkit = \Drupal::service('plugin.manager.image.toolkit')->createInstance($plugin_definition['toolkit']);
+  }*/
+
+  /**
+   * {@inheritdoc}
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL) {
+    return FALSE;
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationInterface.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationInterface.php
new file mode 100644
index 0000000..c1b0358
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationInterface.php
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperationInterface.
+ */
+
+namespace Drupal\system\Plugin;
+
+use Drupal\Component\Plugin\PluginInspectionInterface;
+use Drupal\Core\Image\ImageInterface;
+use Drupal\system\Plugin\ImageToolkitInterface;
+
+/**
+ * @todo
+ */
+
+/**
+ * Defines an interface for image toolkit operations.
+ *
+ * An image toolkit operation provides image manipulations like scaling,
+ * cropping, rotating, etc.
+ */
+interface ImageToolkitOperationInterface extends PluginInspectionInterface {
+
+  /**
+   * @todo
+   */
+  public function process(ImageToolkitInterface $toolkit, ImageInterface $image, array $variables = NULL);
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationManager.php b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationManager.php
new file mode 100644
index 0000000..4a4e09f
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/ImageToolkitOperationManager.php
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\ImageToolkitOperationManager.
+ */
+
+namespace Drupal\system\Plugin;
+
+use Drupal\Core\Cache\CacheBackendInterface;
+use Drupal\Core\Language\LanguageManager;
+use Drupal\Core\Plugin\DefaultPluginManager;
+use Drupal\Core\Plugin\Discovery\AlterDecorator;
+
+/**
+ * Manages toolkit operation plugins.
+ */
+class ImageToolkitOperationManager extends DefaultPluginManager {
+
+  /**
+   * Constructs the ImageToolkitOperationManager object.
+   *
+   * @param \Traversable $namespaces
+   *   An object that implements \Traversable which contains the root paths
+   *   keyed by the corresponding namespace to look for plugin implementations.
+   * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
+   *   Cache backend instance to use.
+   * @param \Drupal\Core\Language\LanguageManager $language_manager
+   *   The language manager.
+   */
+  public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, LanguageManager $language_manager) {
+    parent::__construct('Plugin/ImageToolkitOperation', $namespaces, 'Drupal\system\Annotation\ImageToolkitOperation');
+    $this->discovery = new AlterDecorator($this->discovery, 'image_toolkit_operation');
+    $this->setCacheBackend($cache_backend, $language_manager, 'image_toolkit_operation');
+  }
+
+}
