qml change the resolution before camera image capture
<p>I want to capture image with the specific resolution.
I used this code but the image captured from camera with last resolution and the resolution of image captured does not change to size(1280, 720). I want to change the resolution before capturing the image.</p>

<pre><code>imageCapture {
 resolution: Qt.size(1280, 720)
 onImageCaptured: {
 photoPreview.source = preview  
 }
</code></pre>