From 74398cde5b395f2d63794f1b793c78be8efb0056 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 3 Apr 2019 12:24:11 +0000 Subject: [PATCH] wip #2656 @0.5 --- inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php | 5 +++++ 1 file changed, 5 insertions(+) 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 0e857c47f..a206118ff 100644 --- a/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/mobilefirst/class.ws.html5.compiler.php @@ -1583,6 +1583,7 @@ class wsHTML5Compiler } $rasterizePages = $this->config->rasterizePages; + $this->config->pagesDimensions = []; $thumbs = array(); foreach ($this->pages as $page => $infos) { @@ -1606,6 +1607,10 @@ class wsHTML5Compiler } $doc->makeHTML5Files($infos['document_page']); } + if ($r == 150 && file_exists($source)) { + $d = getimagesize($source); + $this->config->pagesDimensions[$page] = array($d[0], $d[1]); + } $ok = $this->vdir->copy($source, 'data/background/' . $r . '/' . $backgroundsPrefix . $page . '.jpg'); if (!$ok && $r = 300) { $this->maxRes = 150; -- 2.39.5