deg
This commit is contained in:
@@ -2669,20 +2669,18 @@ class SiteStyle
|
||||
// 持久化 svg(便于排查、也便于后续升级)
|
||||
@file_put_contents($svgFile, $svg);
|
||||
|
||||
// 转 ico(16 / 32)
|
||||
$bin = 'magick';
|
||||
if (!shell_exec('which magick')) {
|
||||
$bin = 'convert';
|
||||
}
|
||||
|
||||
$cmd = sprintf(
|
||||
'%s %s -background none -define icon:auto-resize=16,32 %s',
|
||||
$bin,
|
||||
escapeshellarg($svgFile),
|
||||
escapeshellarg($icoFile)
|
||||
);
|
||||
|
||||
@exec($cmd);
|
||||
// 转 ico(16 / 32)目前不使用ico
|
||||
// $bin = 'magick';
|
||||
// if (!shell_exec('which magick')) {
|
||||
// $bin = 'convert';
|
||||
// }
|
||||
// $cmd = sprintf(
|
||||
// '%s %s -background none -define icon:auto-resize=16,32 %s',
|
||||
// $bin,
|
||||
// escapeshellarg($svgFile),
|
||||
// escapeshellarg($icoFile)
|
||||
// );
|
||||
// @exec($cmd);
|
||||
|
||||
return $strTmpSvgDir;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ location / {
|
||||
- 4. 上传logo 等图片到img public/statics/img/*
|
||||
- 5. 初始化数据库 `php think db:manage init`
|
||||
- 5. 初始化数据库 `php think mongo:manag migrate`
|
||||
yum install ImageMagick
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user