summaryrefslogtreecommitdiffstats
path: root/tests/auto/tiff/tst_qtiff.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-04-05 01:08:15 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2024-04-08 08:36:57 +0200
commite4c8cd1f09d0a32af17beab69c5f746e27291255 (patch)
tree72e82d0cc82213c64a805020eb28ace4db6e05ed /tests/auto/tiff/tst_qtiff.cpp
parent3cf129582ba6bee6fc00784e57e99c95d594786d (diff)
TIFF: add an autotest for CMYK images
This work has been kindly sponsored by the QGIS project (https://qgis.org/). Change-Id: I09cf744f1b8c907a296a8525ec11a4980282d743 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/tiff/tst_qtiff.cpp')
-rw-r--r--tests/auto/tiff/tst_qtiff.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp
index 94d20fa..c5083f3 100644
--- a/tests/auto/tiff/tst_qtiff.cpp
+++ b/tests/auto/tiff/tst_qtiff.cpp
@@ -141,6 +141,7 @@ void tst_qtiff::readImage_data()
QTest::newRow("rgb_orientation_7") << QString("rgb_orientation_7.tiff") << QSize(64, 64);
QTest::newRow("rgb_orientation_8") << QString("rgb_orientation_8.tiff") << QSize(64, 64);
QTest::newRow("teapot") << QString("teapot.tiff") << QSize(256, 256);
+ QTest::newRow("teapot_cmyk") << QString("teapot_cmyk.tiff") << QSize(256, 256);
QTest::newRow("oddsize_grayscale") << QString("oddsize_grayscale.tiff") << QSize(59, 71);
QTest::newRow("oddsize_mono") << QString("oddsize_mono.tiff") << QSize(59, 71);
QTest::newRow("tiled_rgb") << QString("tiled_rgb.tiff") << QSize(64, 64);
@@ -396,6 +397,9 @@ void tst_qtiff::readWriteNonDestructive_data()
QTest::newRow("tiff rgba32fpx4pm") << QImage::Format_RGBA32FPx4_Premultiplied
<< QImage::Format_RGBA32FPx4_Premultiplied
<< QImageIOHandler::TransformationNone;
+ QTest::newRow("tiff cmyk") << QImage::Format_CMYK8888
+ << QImage::Format_CMYK8888
+ << QImageIOHandler::TransformationNone;
}
void tst_qtiff::readWriteNonDestructive()