PHP图像转换JPG/GIF/PNG到BMP/ICO
我想知道如何将 JPG、GIF 和 PNG 图像转换为真正的 .ICO。我这么说是因为很多脚本只是重命名文件,这不会改变文件的二进制结构,从而产生一个浏览器无法识别的无效 ico,例如功能性图标的目的。 从我到目前为止阅读和发现的所有内容来看
,PHP 可以很好地处理 GIF、JPG 和 PNG,但是当涉及到 BMP(移植到 ICO 之前需要获得的格式)时,仅本机支持 WBMP(WMPB)是一种蹩脚的单色格式,与真正的 BMP 完全不同)。
stackoverflow 中的其他线程指向 wbmp,而不是 bmp...所以我在这里
干杯 G
I am wondering how do you convert JPG,GIF and PNG images into real .ICO's. I say this because lots of scripts out there just rename the file which does nothing to change the binary structure of the file which as a result yields an invalid ico that browsers don't pick up on for say, the purpose of a functional favicon.ico
From all I've read and found so far, PHP handles GIF, JPG AND PNG very well, but when it comes to BMP (the format you need to get to before porting over to ICO) - only WBMP is natively supported (WMPB is a crappy monochrome format which is nothing like the real BMP).
The other threads in stackoverflow point to wbmp, not bmp...so here I am
Cheers
G
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知 ImageMagick 可以进行此转换(而且是免费的)
As far as I know ImageMagick can do this conversion (and it's free)