diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-26 21:36:33 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-26 21:37:11 +0200 |
commit | b05fe45d520a8df309897626ad109a4daf64ed83 (patch) | |
tree | db1dde9e86038503142af2888fffa37adfa6561c /core | |
parent | b98dfaccd96fb9b0da13bc59f55ed9b61cbbd528 (diff) | |
download | nextcloud-server-b05fe45d520a8df309897626ad109a4daf64ed83.tar.gz nextcloud-server-b05fe45d520a8df309897626ad109a4daf64ed83.zip |
Fix avatar on exif rotated images
Fixes #1928
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/AvatarController.php | 1 |
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()) { |