From 426c0341ffff262f58d1b7f031de4f0c53c8bec5 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Wed, 5 Apr 2023 12:50:08 +0200 Subject: Use typed version of IConfig::getSystemValue as much as possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/private/Preview/Imaginary.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Preview') diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index ca46383e58b..962e5663b39 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -61,7 +61,7 @@ class Imaginary extends ProviderV2 { } public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop): ?IImage { - $maxSizeForImages = $this->config->getSystemValue('preview_max_filesize_image', 50); + $maxSizeForImages = $this->config->getSystemValueInt('preview_max_filesize_image', 50); $size = $file->getSize(); @@ -105,7 +105,7 @@ class Imaginary extends ProviderV2 { default: $mimeType = 'jpeg'; } - + $operations = []; if ($convert) { -- cgit v1.2.3