This commit is contained in:
make
2026-01-10 20:20:09 +08:00
parent f680c97559
commit 7c274497aa
2 changed files with 13 additions and 14 deletions

View File

@@ -2669,20 +2669,18 @@ class SiteStyle
// 持久化 svg便于排查、也便于后续升级
@file_put_contents($svgFile, $svg);
// 转 ico16 / 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);
// 转 ico16 / 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;
}