From: vincent@cubedesigners.com Date: Mon, 19 Oct 2020 14:58:21 +0000 (+0000) Subject: wait #3967 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=997cf1eaa83fb5ebc24f53e70b20e320f8965eef;p=cubeextranet.git wait #3967 @0:10 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 971aea72e..9629c92b1 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1836,16 +1836,13 @@ class wsHTML5Compiler } $this->vdir->copy($this->book->getFile($page, $this->imageFormat, 'thumb', true, true, 'html'), 'data/thumbnails/p' . $page . '.' . $this->imageFormat); - - if ($page == 1) { - $this->_makeCover($docdir . 'html/t36-' . $infos['document_page'] . '.jpg'); - } - if ($page % 10 == 0) { $this->log('Copied image ' . $page); } } + $this->_makeCover($this->book->getFile(1, 'jpg', 150, true, true)); + $this->log('Made thumbnails'); } @@ -1857,7 +1854,7 @@ class wsHTML5Compiler $tmp = cubeFiles::tempnam() . '.png'; - $c = new cubeCommandLine('convert'); + $c = new CubeIT_CommandLine('convert'); $c->setArg(null, ROOT . '/images/ws/shade-cover-app.png'); $c->setManualArg('-resize ' . round($w / 3) . 'x' . $h); $c->setArg(null, $tmp); @@ -1865,7 +1862,7 @@ class wsHTML5Compiler $res = cubeFiles::tempnam() . '.jpg'; - $convert = new cubeCommandLine('composite'); + $convert = new CubeIT_CommandLine('composite'); $cmd = '-compose Multiply '; $cmd .= $tmp . ' ' . $orig . ' '; $cmd .= $res;