From 92c7b1cc1d04f460512d6bd00e8cda1dd3697648 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 18 Mar 2020 15:13:05 +0000 Subject: 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 Signed-off-by: Kieran Bingham --- src/qcam/main_window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qcam/main_window.cpp') diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index 47d37c3e..6f4f1cd7 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -360,6 +360,7 @@ void MainWindow::saveImageAs() return; QImageWriter writer(filename); + writer.setQuality(95); writer.write(image); } -- cgit v1.2.1