diff --git a/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php b/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
index 2adc45a..1ee6489 100644
--- a/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
+++ b/core/modules/system/src/Plugin/ImageToolkit/GDToolkit.php
@@ -99,10 +99,16 @@ public function resize(ImageInterface $image, $width, $height) {
 
     $res = $this->createTmp($this->getType(), $width, $height);
 
+    $gamma_corrected = imagegammacorrect($this->getResource(), 2.2, 1.0);
+
     if (!imagecopyresampled($res, $this->getResource(), 0, 0, 0, 0, $width, $height, $this->getWidth($image), $this->getHeight($image))) {
       return FALSE;
     }
 
+    if ($gamma_corrected) {
+      imagegammacorrect($res, 1.0, 2.2);
+    }
+
     imagedestroy($this->getResource());
     // Update image object.
     $this->setResource($res);
