mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
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:
parent
8af9a0f9d9
commit
b1f3a87896
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user