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:
@@ -360,6 +360,7 @@ void MainWindow::saveImageAs()
|
||||
return;
|
||||
|
||||
QImageWriter writer(filename);
|
||||
writer.setQuality(95);
|
||||
writer.write(image);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user