diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-03-18 15:13:05 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-03-19 13:22:41 +0000 |
commit | 92c7b1cc1d04f460512d6bd00e8cda1dd3697648 (patch) | |
tree | 71816f68c1269b20f410bc2dc4c7e5643d97f352 | |
parent | a69414529f463ba1d2f0fa4a9e80538193f9b099 (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>
-rw-r--r-- | src/qcam/main_window.cpp | 1 |
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); } |