Skip to content
Snippets Groups Projects
Commit ef0a0f5f authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #9554 from owncloud/fix_preview_orientation

fix orientation in image-backend, not in preview system itself
parents c88d517e 380aacdf
Branches
No related tags found
No related merge requests found
...@@ -567,8 +567,6 @@ class Preview { ...@@ -567,8 +567,6 @@ class Preview {
return; return;
} }
$image->fixOrientation();
$realX = (int)$image->width(); $realX = (int)$image->width();
$realY = (int)$image->height(); $realY = (int)$image->height();
......
...@@ -29,6 +29,7 @@ class Image extends Provider { ...@@ -29,6 +29,7 @@ class Image extends Provider {
$fileName = $fileview->getLocalFile($path); $fileName = $fileview->getLocalFile($path);
} }
$image->loadFromFile($fileName); $image->loadFromFile($fileName);
$image->fixOrientation();
return $image->valid() ? $image : false; return $image->valid() ? $image : false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment