diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-10 10:46:00 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-02-11 09:29:17 +0000 |
commit | 58f19cf8d51e06f1781f3142e6d872e5feb0690e (patch) | |
tree | 30e6ae841e3e4d22f17e6aa43f19f4a89f681747 /tests/auto | |
parent | e4af63c68fa91d126ee3f8489058b14c9ee127a3 (diff) |
Improve interpretation of undefined alpha-channels
Libtiff does not process the alpha-channel if its definition is not
specified. However to match how Qt used to save TIFF images and how
tested image viewers interpret them, we need to treat unspecified alpha
channels as unpremultiplied.
Task-number: QTBUG-50902
Change-Id: Id72218ed5bf702b54ffa3b5b47d6230facbfa0c4
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/tiff/tst_qtiff.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp index a77a735..d309c8d 100644 --- a/tests/auto/tiff/tst_qtiff.cpp +++ b/tests/auto/tiff/tst_qtiff.cpp @@ -346,6 +346,7 @@ void tst_qtiff::writeImage() QImageWriter writer(&buf, format); QVERIFY(writer.write(image)); } + image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied); QImage image2; { |