mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -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 inputImage;
|
||||||
QImage expImage;
|
QImage expImage;
|
||||||
|
|
||||||
|
// inputImage is auto-rotated to final orientation
|
||||||
|
inputReader.setAutoTransform(true);
|
||||||
|
|
||||||
if (!expReader.read(&expImage)) {
|
if (!expReader.read(&expImage)) {
|
||||||
QTextStream(stdout) << "ERROR: " << fi.fileName() << ": could not load " << expfilename << ": " << expReader.errorString() << "\n";
|
QTextStream(stdout) << "ERROR: " << fi.fileName() << ": could not load " << expfilename << ": " << expReader.errorString() << "\n";
|
||||||
++failed;
|
++failed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user