Hello, attached there is the code I used for rotating the image. It comes from a commercial project, so I removed all parts cannot share.
The method that did the trick is scaleAndRotateImage, the rest of the code is for selecting an image or for taking an image using native iOS controllers instead of Qt provided ones.
I’m sorry but this code needs that you know objective-C, iOS SDK and how to integrate them into a Qt app.
Ciao, Gianluca.
|
backend_ios.mm
Description: Binary data
Thanks that would be awesome, I don't know any Obj-C!
I got the same problem on iOS when I capture an image.
The problem arise on iOS because iOS do not rotate the image but it store into EXIF metadata how it should be rotated and orientated the image for visualising it.
But the Image item of QML (in my case) ignore the EXIF metadata for orientation and hence you see the image rotated.
My trick was to rotate the image using iOS api.
I’m sorry, I don’t have the code here. Later during the code I’ll send you my function for doing that.
Ciao,
Gianluca.
Not sure if it's related, but the autoOrientation for VideoOutput didn't work well for me either.
I'm waiting for the 5.5 release as I'd other problems with video capture on IOS to test it again.
Not sure if it's related, but the autoOrientation for VideoOutput didn't work well for me either.
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest
|
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest