QML Camera orientation
Hi all, I'm writing an app that acquire images from Jolla back camera using the following simple code:
Camera {
id: camera
captureMode: Camera.CaptureStillImage
flash.mode: Camera.FlashOff
imageCapture {
onImageSaved: {
pageStack.push(Qt.resolvedUrl("SecondPage.qml"), {"imagePath": path})
console.log("saved " + path)
}
}
VideoOutput {
source: camera
anchors.fill: parent
focus : visible
MouseArea{
anchors.fill: parent
onClicked: {
console.log("clicked")
camera.captureMode = Camera.CaptureStillImage
camera.imageCapture.capture()
}
}
}
With that code I can acquire the image but when I open it in Gallery or any other viewer it is in the wrong orientation.
Where do i wrong?
Thanks
Luca