summary refs log tree commit diff
path: root/src/Utils.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-04-04 00:15:08 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-04-04 00:15:08 +0200
commit007ee38b042bb6d9e424428b031818ce51f3e242 (patch)
tree514bae99917e032d190a125c8f479342b61d0da5 /src/Utils.cpp
parentFix qtlabs platform in windows packages (diff)
downloadnheko-007ee38b042bb6d9e424428b031818ce51f3e242.tar.xz
Fix exif rotation in unencrypted rooms
Diffstat (limited to 'src/Utils.cpp')
-rw-r--r--src/Utils.cpp7
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;