From a87772e26cd4a78923c5e483abf7d25942c0113a Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 14 May 2024 17:17:57 +0200 Subject: [PATCH] wait #6910 @1 --- app/Fluidbook/Compiler/Images.php | 33 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/app/Fluidbook/Compiler/Images.php b/app/Fluidbook/Compiler/Images.php index c8c0da3dc..0a0c3a6c1 100644 --- a/app/Fluidbook/Compiler/Images.php +++ b/app/Fluidbook/Compiler/Images.php @@ -39,25 +39,24 @@ trait Images if ($this->fluidbookSettings->svgToCanvas == 2) { $this->addPDFJSPageRenderer(); - $this->backgroundsPrefix = [false]; - $this->svg = false; - } else { - switch ($this->fluidbookSettings->mobileVersion) { - case 'html5-desktop': - $this->backgroundsPrefix = [true, false]; - $this->svg = true; - break; - case 'html5-images': - $this->backgroundsPrefix = [true]; - $this->svg = false; - break; - default: - $this->backgroundsPrefix = [false]; - $this->svg = true; - break; - } } + switch ($this->fluidbookSettings->mobileVersion) { + case 'html5-desktop': + $this->backgroundsPrefix = [true, false]; + $this->svg = true; + break; + case 'html5-images': + $this->backgroundsPrefix = [true]; + $this->svg = false; + break; + default: + $this->backgroundsPrefix = [false]; + $this->svg = true; + break; + } + + $resolutions = $this->getResolutions(); $cacheKey = 'imagesToCopy_' . $this->imageFormat . '_' . md5(json_encode($resolutions)); $cacheKey .= '-' . $this->config->JPEGQuality; -- 2.39.5