From 95a517ee618829f98a086ebb8d6484af260da9c1 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 3 Apr 2019 15:13:45 +0000 Subject: [PATCH] wip #2656 @0.5 --- inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php index a206118ff..26ca03a98 100644 --- a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php @@ -1609,7 +1609,7 @@ class wsHTML5Compiler } if ($r == 150 && file_exists($source)) { $d = getimagesize($source); - $this->config->pagesDimensions[$page] = array($d[0], $d[1]); + $this->config->pagesDimensions[$page] = array($this->cssWidth, $d[1] * ($this->cssWidth / $d[0])); } $ok = $this->vdir->copy($source, 'data/background/' . $r . '/' . $backgroundsPrefix . $page . '.jpg'); if (!$ok && $r = 300) { -- 2.39.5