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.
This commit is contained in:
Daniel Novomeský 2022-10-12 15:33:08 +02:00
parent 8af9a0f9d9
commit b1f3a87896

View File

@ -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;