Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.3.0 Beta1
-
None
-
Windows 7 64bits
Qt Android for Windows 32-bit 5.3.0-beta1 (Enterprise)
Device : Samsung Galaxy S3 (4.3)
Description
From the declarative-camera example, the images from onImageCaptured and onImageSaved have different orientations, and so onImageCaptured cannot be used as a preview without modification(or retrieve special data) on onImageCaptured.
Replace PhotoPreview.qml by:
import QtQuick 2.0 import QtMultimedia 5.0 Item { id: g_mainItem property alias source : preview.source property alias sourceFile : previewFile.source signal closed Image { id: preview anchors.top: parent.top anchors.topMargin: 0 anchors.right: parent.right anchors.bottom: parent.bottom anchors.bottomMargin:g_mainItem.height/2 anchors.left: parent.left fillMode: Image.PreserveAspectFit smooth: true } Image { id: previewFile anchors.top: preview.bottom anchors.topMargin: 0 anchors.right: parent.right anchors.bottom: parent.bottom anchors.left: parent.left fillMode: Image.PreserveAspectFit smooth: true } MouseArea { anchors.fill: parent onClicked: { parent.closed(); } } }
in declarative-camera.qml:
Camera { id: camera captureMode: Camera.CaptureStillImage imageCapture { onImageSaved: { photoPreview.sourceFile = "file://"+path; } onImageCaptured: { photoPreview.source = preview stillControls.previewAvailable = true cameraUI.state = "PhotoPreview" } } videoRecorder { resolution: "640x480" frameRate: 15 } }
Attachments
Issue Links
- relates to
-
QTBUG-37946 QImage doesn't support EXIF orientation on JPEG files
- Closed