diff --git a/core/lib/Drupal/Component/Utility/Rectangle.php b/core/lib/Drupal/Component/Utility/Rectangle.php
index 46a08c958d..f4917572ff 100644
--- a/core/lib/Drupal/Component/Utility/Rectangle.php
+++ b/core/lib/Drupal/Component/Utility/Rectangle.php
@@ -81,11 +81,6 @@ public function __construct($width, $height) {
    * @return $this
    */
   public function rotate($angle) {
-    // PHP 5.5 GD bug: https://bugs.php.net/bug.php?id=65148: To prevent buggy
-    // behavior on negative multiples of 30 degrees we convert any negative
-    // angle to a positive one between 0 and 360 degrees.
-    $angle -= floor($angle / 360) * 360;
-
     // For some rotations that are multiple of 30 degrees, we need to correct
     // an imprecision between GD that uses C floats internally, and PHP that
     // uses C doubles. Also, for rotations that are not multiple of 90 degrees,
diff --git a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
index db20c726cf..23c8b7dff4 100644
--- a/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
+++ b/core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Rotate.php
@@ -37,11 +37,6 @@ protected function arguments() {
    * {@inheritdoc}
    */
   protected function validateArguments(array $arguments) {
-    // PHP 5.5 GD bug: https://bugs.php.net/bug.php?id=65148: To prevent buggy
-    // behavior on negative multiples of 90 degrees we convert any negative
-    // angle to a positive one between 0 and 360 degrees.
-    $arguments['degrees'] -= floor($arguments['degrees'] / 360) * 360;
-
     // Validate or set background color argument.
     if (!empty($arguments['background'])) {
       // Validate the background color: Color::hexToRgb does so for us.
