From b1f3a87896e0a98716b2f76d2cb3f2348f36fddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Novomesk=C3=BD?= Date: Wed, 12 Oct 2022 15:33:08 +0200 Subject: [PATCH] Auto-rotate input images in readtest Currently, there is no difference in the tests but in the future we will add images with various transformations defined. --- autotests/readtest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autotests/readtest.cpp b/autotests/readtest.cpp index 09b39a4..bf0fb07 100644 --- a/autotests/readtest.cpp +++ b/autotests/readtest.cpp @@ -174,6 +174,9 @@ int main(int argc, char **argv) QImage inputImage; QImage expImage; + // inputImage is auto-rotated to final orientation + inputReader.setAutoTransform(true); + if (!expReader.read(&expImage)) { QTextStream(stdout) << "ERROR: " << fi.fileName() << ": could not load " << expfilename << ": " << expReader.errorString() << "\n"; ++failed;