mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #9554 from owncloud/fix_preview_orientation
fix orientation in image-backend, not in preview system itself
This commit is contained in:
commit
ef0a0f5f87
2 changed files with 1 additions and 2 deletions
|
|
@ -567,8 +567,6 @@ class Preview {
|
|||
return;
|
||||
}
|
||||
|
||||
$image->fixOrientation();
|
||||
|
||||
$realX = (int)$image->width();
|
||||
$realY = (int)$image->height();
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class Image extends Provider {
|
|||
$fileName = $fileview->getLocalFile($path);
|
||||
}
|
||||
$image->loadFromFile($fileName);
|
||||
$image->fixOrientation();
|
||||
|
||||
return $image->valid() ? $image : false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue