From 674fdb4fcbf6f896de92ef2ddca5a3eaa29b2b93 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:59:38 -0700 Subject: [PATCH] Correct an invalid jpeg quality parameter. With our new libjpeg_turbo library, a quality of 150 doesn't seem to be valid, so I'm changing this to 95. I chose 95 over 100 because the libjpeg_turbo project uses a quality of 95 for all testing and benchmarking shown in their documentation, and notes that a quality of 95 "has been determined to be perceptually lossless under most viewing conditions". --- src/RageSurface_Save_JPEG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RageSurface_Save_JPEG.cpp b/src/RageSurface_Save_JPEG.cpp index 6222ecb2cd..e81f23b1e5 100644 --- a/src/RageSurface_Save_JPEG.cpp +++ b/src/RageSurface_Save_JPEG.cpp @@ -117,7 +117,7 @@ bool RageSurfaceUtils::SaveJPEG( RageSurface *surface, RageFile &f, bool bHighQu jpeg::jpeg_set_defaults(&cinfo); if( bHighQual ) - jpeg::jpeg_set_quality( &cinfo, 150, TRUE ); + jpeg::jpeg_set_quality( &cinfo, 95, TRUE ); else jpeg::jpeg_set_quality( &cinfo, 70, TRUE );