From 28adc9dc9b8a0197078830c55f90e1ce81f09b2a Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 26 Apr 2020 11:26:51 +0200 Subject: 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. --- src/Utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Utils.h') 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); } -- cgit 1.5.1