}
$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');
}
$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);
$res = cubeFiles::tempnam() . '.jpg';
- $convert = new cubeCommandLine('composite');
+ $convert = new CubeIT_CommandLine('composite');
$cmd = '-compose Multiply ';
$cmd .= $tmp . ' ' . $orig . ' ';
$cmd .= $res;