需要使用 Ruby 将 .ico 文件转换为 .png —我在 Google 中没有看到任何隐藏的宝石吗?
我们目前有一个 PHP 脚本来做这件事,但它经常失败,所以我正在寻找 Ruby 的解决方案。基本上,我们正在收集网站图标,并且需要将 .ico 格式的所有图标转换为 .png 格式。
请不要提供任何托管服务的链接来执行此操作...我们可能已经尝试过所有这些服务并放弃了它们(包括 Google 和 Yahoo);)
We currently have a PHP script doing this, but it fails constantly, so I'm looking for a solution in Ruby. Basically we are collecting favicons and need to convert any that are in the .ico format into a .png format.
Please do not provide links to any hosted services to do this... we've probably already tried them all and abandoned them (this includes Google and Yahoo) ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 ImageMagick 或 GraphicsMagick,两者都可以作为 PHP 模块使用(并且非常相似);在 Ruby 中使用 RMagick 接口。
Use ImageMagick or GraphicsMagick, both available as PHP modules (and very similar); in Ruby use the RMagick interface.
尝试Ruby 接口之一到ImageMagick。
Try one of the Ruby interfaces to ImageMagick.