Send correct orientation for exif rotated images

pull/183/head
Nicolas Werner 5 years ago
parent dbb13dfad6
commit 17c657a170
  1. 4
      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);

Loading…
Cancel
Save