From 37dd107281ae447c451b28fa303a4a32566ae8d4 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 21 Dec 2015 22:01:38 -0700 Subject: [PATCH] Revert "Fix orientation for images added via twig" This reverts commit 484a34cd92e2cbfb0122b9ed15227aaf14eaf7b0. --- system/src/Grav/Common/Page/Medium/ImageMedium.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/src/Grav/Common/Page/Medium/ImageMedium.php b/system/src/Grav/Common/Page/Medium/ImageMedium.php index 6da85af45..3db039643 100644 --- a/system/src/Grav/Common/Page/Medium/ImageMedium.php +++ b/system/src/Grav/Common/Page/Medium/ImageMedium.php @@ -41,8 +41,7 @@ class ImageMedium extends Medium public static $magic_actions = [ 'resize', 'forceResize', 'cropResize', 'crop', 'zoomCrop', 'negate', 'brightness', 'contrast', 'grayscale', 'emboss', - 'smooth', 'sharp', 'edge', 'colorize', 'sepia', 'enableProgressive', - 'fixOrientation' + 'smooth', 'sharp', 'edge', 'colorize', 'sepia', 'enableProgressive' ]; /** @@ -261,7 +260,6 @@ class ImageMedium extends Medium if ($this->image) { $this->image(); $this->image->clearOperations(); // Clear previously applied operations - $this->fixOrientation(); $this->filter(); } @@ -471,7 +469,6 @@ class ImageMedium extends Medium ->setPrettyName(basename($this->get('basename'))); $this->filter(); - $this->fixOrientation(); return $this; }