Merge pull request #35566 from pulsejet/patch-imaginary

preview: respect quality in Imaginary
This commit is contained in:
Simon L 2022-12-03 19:06:24 +01:00 committed by GitHub
commit 0662417157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
]
]
];