summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimageiohandler.h
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2015-01-02 09:48:44 -0500
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-01-09 10:36:08 +0100
commit163af2cf53d3441b453744b99254c07a175af5de (patch)
tree43f126bf95d3c776041c1c5df5d15666fa3bdaed /src/gui/image/qimageiohandler.h
parentfc5e6b37a1c49d150886543f87d6fc1817060534 (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.h')
-rw-r--r--src/gui/image/qimageiohandler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/image/qimageiohandler.h b/src/gui/image/qimageiohandler.h
index 3b3c410e0c..1c906436fe 100644
--- a/src/gui/image/qimageiohandler.h
+++ b/src/gui/image/qimageiohandler.h
@@ -84,7 +84,9 @@ public:
Animation,
BackgroundColor,
ImageFormat,
- SupportedSubTypes
+ SupportedSubTypes,
+ OptimizedWrite,
+ ProgressiveScanWrite
};
virtual QVariant option(ImageOption option) const;
virtual void setOption(ImageOption option, const QVariant &value);