summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimagewriter.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-05-04 13:32:32 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-05-12 09:25:11 +0000
commitba323b04cd78fb43e9e63b891e973d24b08250af (patch)
tree8ad4da1eaf991f061d3e24159a3a5b4fdaf8fbfa /src/gui/image/qimagewriter.h
parent12dd4ff7e7b4fae33fb74def603ce880eee0c16b (diff)
Optionally apply orientation on QImage read
Make it possible to read images with EXIF orientation automatically applied. This was originally implemented without opt-out in Qt 5.4, but reverted. Here it is implemented as opt-in for JPEG, and opt-out for TIFF to keep behavioral consistency. The EXIF support for JPEG was written by Rainer Keller. [ChangeLog][QtGui][Image plugins] An option has been added to QImageReader to enable automatic application of EXIF orientation. This behavior was default in Qt 5.4.1, but reverted in Qt 5.4.2. Task-number: QTBUG-37946 Task-number: QTBUG-43563 Task-number: QTBUG-45552 Task-number: QTBUG-45865 Change-Id: Iaafd2519b63ede66ecc1f8aa4c7118081312b8f5 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/image/qimagewriter.h')
-rw-r--r--src/gui/image/qimagewriter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qimagewriter.h b/src/gui/image/qimagewriter.h
index 96d8f51b3a..7f92595c53 100644
--- a/src/gui/image/qimagewriter.h
+++ b/src/gui/image/qimagewriter.h
@@ -89,6 +89,9 @@ public:
void setProgressiveScanWrite(bool progressive);
bool progressiveScanWrite() const;
+ QImageIOHandler::Transformations transformation() const;
+ void setTransformation(QImageIOHandler::Transformations orientation);
+
// Obsolete as of 4.1
void setDescription(const QString &description);
QString description() const;