diff options
-rw-r--r-- | lib/private/preview/image.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/image.php b/lib/private/preview/image.php index b377f0e855d..3ea99d6963a 100644 --- a/lib/private/preview/image.php +++ b/lib/private/preview/image.php @@ -53,10 +53,10 @@ abstract class Image extends Provider { $fileName = $fileview->getLocalFile($path); } $image->loadFromFile($fileName); + $image->fixOrientation(); if ($useTempFile) { unlink($fileName); } - $image->fixOrientation(); if ($image->valid()) { $image->scaleDownToFit($maxX, $maxY); |