From c7e2787300d88e9597ee94ca773383fb0410c5a3 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:59:50 +0100 Subject: [PATCH] Default Jpeg quality to 80 See https://sirv.com/help/articles/jpeg-quality-comparison/ Almost 50% of file size (compared to 90) and no visual differences. Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/legacy/OC_Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index 45584b7209a..22098d7643d 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -415,7 +415,7 @@ class OC_Image implements \OCP\IImage { * @return int|null */ protected function getJpegQuality() { - $quality = $this->config->getAppValue('preview', 'jpeg_quality', 90); + $quality = $this->config->getAppValue('preview', 'jpeg_quality', 80); if ($quality !== null) { $quality = min(100, max(10, (int) $quality)); } -- 2.39.5