diff options
author | Andy Maloney <asmaloney@gmail.com> | 2015-01-02 09:48:44 -0500 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-01-09 10:36:08 +0100 |
commit | 163af2cf53d3441b453744b99254c07a175af5de (patch) | |
tree | 43f126bf95d3c776041c1c5df5d15666fa3bdaed /src/gui/image/qimageiohandler.cpp | |
parent | fc5e6b37a1c49d150886543f87d6fc1817060534 (diff) |
Add OptimizedWrite & ProgressiveScanWrite options to QImageIOHandler and use for JPEG writing
Exposes two options from libjpeg: the optimize option and progressive scan option.
These are both lossless operations, so they do not change the image's quality.
Using these switches can result in smaller jpeg files.
Task-number: QTBUG-20075
Change-Id: I8d0bd6a712b8a365265b7bd517e136b0755b90cb
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'src/gui/image/qimageiohandler.cpp')
-rw-r--r-- | src/gui/image/qimageiohandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/image/qimageiohandler.cpp b/src/gui/image/qimageiohandler.cpp index 1ecf445d57..7e7f3295e9 100644 --- a/src/gui/image/qimageiohandler.cpp +++ b/src/gui/image/qimageiohandler.cpp @@ -153,6 +153,12 @@ \value SupportedSubTypes Image formats that support different saving variants should return a list of supported variant names (QList<QByteArray>) in this option. + + \value OptimizedWrite. A handler which supports this option + is expected to turn on optimization flags when writing. + + \value ProgressiveScanWrite. A handler which supports + this option is expected to write the image as a progressive scan image. */ /*! |