if ($optimize) {
- $cmd = "timeout -s 1 10 /usr/local/bin/svgcleaner --allow-bigger-file --paths-coordinates-precision 3 --copy-on-error --stdout $original";
+ $cmd = "timeout -s 1 20 /usr/local/bin/svgcleaner --allow-bigger-file --paths-coordinates-precision 3 --copy-on-error --stdout $original";
$svg = `$cmd`;
if ($svg == '') {
$svg = file_get_contents($original);
class wsHTML5Compiler
{
public static $resolutions = array(150, 300);
- public $maxRes = 300;
public $jsFiles = array(
'js/libs/modernizr/modernizr.min.js',
$this->daoBook = new wsDAOBook($core->con);
$this->book = $this->daoBook->selectById($book_id);
$this->pages = $this->daoBook->getPagesOfBook($book_id);
+ $this->maxRes = min(300, $this->book->parametres->maxResolution);
$daoTheme = new wsDAOTheme($core->con);
}
-
public function unzipFile($file, $moveAssets = false, $baseDir = null)
{
$fdir = is_null($baseDir) ? 'data/links/' . str_replace('.', '_', $file) : $baseDir;