summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2022-12-02 18:51:02 -0800
committerVarun Patil <varunpatil@ucla.edu>2022-12-03 07:13:49 -0800
commitb91d6c22cf3b1877f16aa52ce24b346f54dd4ceb (patch)
treef7bd2d0e1a6d9d151a78bbdc0363b53213cd010c /lib/private/Preview
parent9422d80f882b99d56fb9edb3c7bd1f3758e9cb1f (diff)
downloadnextcloud-server-b91d6c22cf3b1877f16aa52ce24b346f54dd4ceb.tar.gz
nextcloud-server-b91d6c22cf3b1877f16aa52ce24b346f54dd4ceb.zip
preview: respect quality in Imaginary
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r--lib/private/Preview/Imaginary.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php
index a9883a1dd9c..e78b9b441f6 100644
--- a/lib/private/Preview/Imaginary.php
+++ b/lib/private/Preview/Imaginary.php
@@ -90,6 +90,8 @@ class Imaginary extends ProviderV2 {
$mimeType = 'jpeg';
}
+ $quality = $this->config->getAppValue('preview', 'jpeg_quality', '80');
+
$operations = [
[
'operation' => 'autorotate',
@@ -102,6 +104,7 @@ class Imaginary extends ProviderV2 {
'stripmeta' => 'true',
'type' => $mimeType,
'norotation' => 'true',
+ 'quality' => $quality,
]
]
];