I used the following code to rotate and flip. I find huge data loss in .tiff and .jpeg images of larger size.
Is there any approach in QT or any other external QT/ C++ library to over come the issue.
////////rotate/////////
QTransform myTransform;
myTransform.rotate(90);
myImage = myImage.transformed(myTransform);
bool ret = myImage.save(currentFile);
QImage myImage(currentFile);
QTransform myTransform;
myTransform.rotate(90);
myImage = myImage.transformed(myTransform);
bool ret = myImage.save(currentFile);
To copy to clipboard, switch view to plain text mode
////////////////flip////////////
myImage = myImage.mirrored();
bool ret = myImage.save(currentFile);
QImage myImage(currentFile);
myImage = myImage.mirrored();
bool ret = myImage.save(currentFile);
To copy to clipboard, switch view to plain text mode
thank you
Bookmarks