diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-26 11:41:30 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-26 11:41:30 +0200 |
commit | 17c657a170b6aa21f29ad468f19abeee9d12d876 (patch) | |
tree | 442df06c06c5f6e72f1c874891c82625233d65fc | |
parent | Update Changelog (diff) | |
download | nheko-17c657a170b6aa21f29ad468f19abeee9d12d876.tar.xz |
Send correct orientation for exif rotated images
-rw-r--r-- | src/ChatPage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index 37d1354b..981e6b80 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -325,8 +325,8 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent) QSize dimensions; QString blurhash; if (mimeClass == "image") { - QImage img; - img.loadFromData(bin); + QImage img = utils::readImage(&bin); + dimensions = img.size(); if (img.height() > 200 && img.width() > 360) img = img.scaled(360, 200, Qt::KeepAspectRatioByExpanding); |