Revert "Fix orientation for images added via twig"

This reverts commit 484a34cd92.
This commit is contained in:
Andy Miller
2015-12-21 22:01:38 -07:00
parent 2d3b41c62d
commit 37dd107281

View File

@@ -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;
}