From: Vincent Vanwaelscappel Date: Tue, 21 Dec 2021 11:21:25 +0000 (+0100) Subject: wip #4969 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a697dbef99c8a30962929c4cbdc8cc7d4dcb2b70;p=fluidbook_tools.git wip #4969 @0.25 --- diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index 94d9a09..9808852 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -188,7 +188,9 @@ class Compiler implements ShouldQueue, ShouldBeUnique { public function compileContents() { for ($i = 1; $i <= $this->getPageCount(); $i++) { - $this->vdir->copy($this->getProcessFile('back150', $i)->getPath(), 'data/background/150/p' . $i . '.jpg'); + foreach ($this->resolutions as $resolution) { + $this->vdir->copy($this->getProcessFile('back' . $resolution, $i)->getPath(), 'data/background/' . $resolution . '/p' . $i . '.jpg'); + } $this->vdir->copy($this->getProcessFile('text', $i)->getPath(), 'data/contents/p' . $i . '.svg'); $this->vdir->copy($this->getProcessFile('thumb', $i)->getPath(), 'data/thumbnails/p' . $i . '.jpg'); } @@ -223,7 +225,7 @@ class Compiler implements ShouldQueue, ShouldBeUnique { public function compileConfig() { $settings = mb_substr(file_get_contents($this->stub . '/data/datas.js'), 13, -2); $this->config = json_decode($settings, false, 512, JSON_THROW_ON_ERROR); - $this->config->maxResolution = 150; + $this->config->maxResolution = 300; $this->compileDimensions(); $this->compilePageNumbers();