]> _ Git - cubeextranet.git/commitdiff
wait #3967 @0:10
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Oct 2020 14:58:21 +0000 (14:58 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 19 Oct 2020 14:58:21 +0000 (14:58 +0000)
inc/ws/Util/html5/master/class.ws.html5.compiler.php

index 971aea72e23c9887127f87a0a2e40fb3d26d5e97..9629c92b13f5325fa370a524f3a88c83a1763813 100644 (file)
@@ -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;