diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2022-11-16 10:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 10:59:50 +0100 |
commit | c7e2787300d88e9597ee94ca773383fb0410c5a3 (patch) | |
tree | 9ef199c74855e9a08e55a23346becc68d40424a6 /lib | |
parent | 62919ac81eb856a15c0131f3cf948bb11b2a5b1f (diff) | |
download | nextcloud-server-c7e2787300d88e9597ee94ca773383fb0410c5a3.tar.gz nextcloud-server-c7e2787300d88e9597ee94ca773383fb0410c5a3.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/OC_Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |