diff --git a/wire/core/ImageInspector.php b/wire/core/ImageInspector.php index 8fb104a2..2582dd8e 100644 --- a/wire/core/ImageInspector.php +++ b/wire/core/ImageInspector.php @@ -169,10 +169,10 @@ class ImageInspector extends WireData { '2' => array(0, 1), '3' => array(180, 0), '4' => array(0, 2), - '5' => array(270, 1), - '6' => array(270, 0), - '7' => array(90, 1), - '8' => array(90, 0) + '5' => array(90, 1), // OLD: 270 + '6' => array(90, 0), // OLD: 270 + '7' => array(270, 1), // OLD: 90 + '8' => array(270, 0) // OLD: 90 ); $result = array('orientation' => 0, 'rotate' => 0, 'flip' => 0); $supportedExifMimeTypes = array('image/jpeg', 'image/tiff'); // hardcoded by PHP diff --git a/wire/core/ImageSizer.php b/wire/core/ImageSizer.php index 324c9ce1..2f31839f 100755 --- a/wire/core/ImageSizer.php +++ b/wire/core/ImageSizer.php @@ -563,10 +563,10 @@ class ImageSizer extends Wire { '2' => array(0, 1), '3' => array(180, 0), '4' => array(0, 2), - '5' => array(270, 1), - '6' => array(270, 0), - '7' => array(90, 1), - '8' => array(90, 0) + '5' => array(90, 1), // OLD: 270 + '6' => array(90, 0), // OLD: 270 + '7' => array(270, 1), // OLD: 90 + '8' => array(270, 0) // OLD: 90 ); if(!function_exists('exif_read_data')) return null; $exif = @exif_read_data($filename, 'IFD0'); diff --git a/wire/core/ImageSizerEngine.php b/wire/core/ImageSizerEngine.php index 0f7fddf6..821f831a 100755 --- a/wire/core/ImageSizerEngine.php +++ b/wire/core/ImageSizerEngine.php @@ -1533,10 +1533,10 @@ abstract class ImageSizerEngine extends WireData implements Module, Configurable '2' => array(0, 1), '3' => array(180, 0), '4' => array(0, 2), - '5' => array(270, 1), - '6' => array(270, 0), - '7' => array(90, 1), - '8' => array(90, 0) + '5' => array(90, 1), // OLD: 270 + '6' => array(90, 0), // OLD: 270 + '7' => array(270, 1), // OLD: 90 + '8' => array(270, 0) // OLD: 90 ); if(!isset($this->info['orientation']) || !isset($corrections[strval($this->info['orientation'])])) {