diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-26 11:26:51 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-04-26 11:26:51 +0200 |
commit | 28adc9dc9b8a0197078830c55f90e1ce81f09b2a (patch) | |
tree | d404db820e94036e69e55d955f006ce757d321b4 /src/Utils.h | |
parent | d94ac86816f9f325cba11f71344a3ca99591130d (diff) |
Respect exif rotation of images
Sometimes thumbnails still have the wrong dimensions, as they are scaled
to fit inside a rectange of the reported size in the image. Not sure,
who is wrong there, the media repo or we.
Diffstat (limited to 'src/Utils.h')
-rw-r--r-- | src/Utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Utils.h b/src/Utils.h index 663d5a38..d3f66246 100644 --- a/src/Utils.h +++ b/src/Utils.h @@ -306,4 +306,8 @@ centerWidget(QWidget *widget, QWidget *parent); void restoreCombobox(QComboBox *combo, const QString &value); + +//! Read image respecting exif orientation +QImage +readImage(QByteArray *data); } |