如何使用PHP 在线转换 ico 至 PNG 呢。。求高手解答。
呀。。求高手解答
有方法就行(不要太抽象。。稍微描述下。)。。 如果有源代码就更好啦
------解决方案--------------------
嘿嘿。。坐等源码。
------解决方案--------------------
有一个类,不过...
使用方法
require 'class.ico.<a style="color:#f60; text-decoration:underline;" title="php" href="https://www.php.cn/zt/15714.html" target="_blank">php</a>';
$o = new Ico("favicon.ico"); //需要转换的图片
$index = "nsize";
foreach ($o->formats as $key => $val) {
if ($val['header']['Width'] == 32 and $val['header']['Height'] == 64) {
$index = $key;
break;
}
}
if ($index === "nsize") {
print_r("没有相应的尺寸");
die;
} else {
imagegif($o->GetIcon($index), "favicon.png");
}
<br><font color="#e78608">------解决方案--------------------</font><br>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号