diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-04 00:15:08 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-04 00:15:08 +0200 |
commit | 007ee38b042bb6d9e424428b031818ce51f3e242 (patch) | |
tree | 514bae99917e032d190a125c8f479342b61d0da5 /src/Utils.cpp | |
parent | Fix qtlabs platform in windows packages (diff) | |
download | nheko-007ee38b042bb6d9e424428b031818ce51f3e242.tar.xz |
Fix exif rotation in unencrypted rooms
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r-- | src/Utils.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index bf9a8449..ca2d3adc 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -803,6 +803,13 @@ utils::restoreCombobox(QComboBox *combo, const QString &value) } QImage +utils::readImageFromFile(const QString &filename) +{ + QImageReader reader(filename); + reader.setAutoTransform(true); + return reader.read(); +} +QImage utils::readImage(const QByteArray &data) { QBuffer buf; |