]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6800 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Mar 2024 08:43:40 +0000 (09:43 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Mar 2024 08:43:40 +0000 (09:43 +0100)
app/Fluidbook/Compiler/Images.php

index 5eab88a7942ad551be8ca0a1b75ddfa8820f8e2c..c8c0da3dc4c50cf9e63a393ba5cac926799d4eca 100644 (file)
@@ -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();