qcam: saveImageAs: Set image quality explicitly

The QImageWriter defaults to an image quality value of 75 which can lead
to perceivable visual artefacts.

Improve the quality of the output by explicitly setting the image
quality to 95.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham
2020-03-18 15:13:05 +00:00
parent a69414529f
commit 92c7b1cc1d
+1
View File
@@ -360,6 +360,7 @@ void MainWindow::saveImageAs()
return;
QImageWriter writer(filename);
writer.setQuality(95);
writer.write(image);
}