summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2020-03-18 15:13:05 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-03-19 13:22:41 +0000
commit92c7b1cc1d04f460512d6bd00e8cda1dd3697648 (patch)
tree71816f68c1269b20f410bc2dc4c7e5643d97f352 /src/qcam/main_window.cpp
parenta69414529f463ba1d2f0fa4a9e80538193f9b099 (diff)
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>
Diffstat (limited to 'src/qcam/main_window.cpp')
-rw-r--r--src/qcam/main_window.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}