QML Camera orientation

asked 2015-07-23 00:26:34 +0200

Luca gravatar image

updated 2015-07-23 10:11:16 +0200

jiit gravatar image

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

edit retag flag offensive close delete