From 92c7b1cc1d04f460512d6bd00e8cda1dd3697648 Mon Sep 17 00:00:00 2001
From: Kieran Bingham <kieran.bingham@ideasonboard.com>
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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/qcam/main_window.cpp | 1 +
 1 file changed, 1 insertion(+)

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