mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Send correct orientation for exif rotated images
This commit is contained in:
parent
dbb13dfad6
commit
17c657a170
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue