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');
}
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();