From 300cf37466b32663df9b76378aa0f44a5e6cf40c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 21 Mar 2024 09:43:40 +0100 Subject: [PATCH] wip #6800 @0.5 --- app/Fluidbook/Compiler/Images.php | 34 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/app/Fluidbook/Compiler/Images.php b/app/Fluidbook/Compiler/Images.php index 5eab88a79..c8c0da3dc 100644 --- a/app/Fluidbook/Compiler/Images.php +++ b/app/Fluidbook/Compiler/Images.php @@ -35,25 +35,27 @@ trait Images protected function writeImages() { $compositionCached = $this->compositionCached(); + set_time_limit(0); if ($this->fluidbookSettings->svgToCanvas == 2) { $this->addPDFJSPageRenderer(); - } - - set_time_limit(0); - 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; + $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; + } } $resolutions = $this->getResolutions(); -- 2.39.5