]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6910 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 May 2024 15:17:57 +0000 (17:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 14 May 2024 15:17:57 +0000 (17:17 +0200)
app/Fluidbook/Compiler/Images.php

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