]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix orientation in image-backend, not in preview system itself
authorGeorg Ehrke <developer@georgehrke.com>
Wed, 9 Jul 2014 21:07:58 +0000 (23:07 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Wed, 9 Jul 2014 21:07:58 +0000 (23:07 +0200)
lib/private/preview.php
lib/private/preview/image.php

index 8089379bde5ba20d195baf329543c96800b0c3f9..5a6e9829afee454bb221427562d3f059e5d00445 100755 (executable)
@@ -556,8 +556,6 @@ class Preview {
                        return;
                }
 
-               $image->fixOrientation();
-
                $realX = (int)$image->width();
                $realY = (int)$image->height();
 
index cec5d7c0170182d17cf15e1c95ac75f4f8b96420..ec5b87befea0d5e1724848794778c82bdb85ea30 100644 (file)
@@ -29,6 +29,7 @@ class Image extends Provider {
                        $fileName = $fileview->getLocalFile($path);
                }
                $image->loadFromFile($fileName);
+               $image->fixOrientation();
 
                return $image->valid() ? $image : false;
        }