summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-27 08:56:56 +0200
committerGitHub <noreply@github.com>2016-10-27 08:56:56 +0200
commit7cae758ef9fc2963fa8889dc448e54c1e2d1e71a (patch)
tree2c44e2c8fc47edfef110baf0cb6dfa4ab60fece8 /core
parent9984eba7278685d5bb0017e971751af4130aa875 (diff)
parentb05fe45d520a8df309897626ad109a4daf64ed83 (diff)
downloadnextcloud-server-7cae758ef9fc2963fa8889dc448e54c1e2d1e71a.tar.gz
nextcloud-server-7cae758ef9fc2963fa8889dc448e54c1e2d1e71a.zip
Merge pull request #1930 from nextcloud/fix_avatars_exif
Fix avatar on exif rotated images
Diffstat (limited to 'core')
-rw-r--r--core/Controller/AvatarController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index c6f320dd0fe..5e3d563cf2c 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -237,6 +237,7 @@ class AvatarController extends Controller {
try {
$image = new \OC_Image();
$image->loadFromData($content);
+ $image->readExif($content);
$image->fixOrientation();
if ($image->valid()) {