favicon.ico filesize == 60KB? [英] favicon.ico filesize == 60KB?

查看:149
本文介绍了favicon.ico filesize == 60KB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了今天浪费更多时间,我将.jpg文件转换为.ico并将其放入favicon.ico中。 .jpg小于1KB; .ico文件是** 60KB ** !!,比我正在使用的html页面大。

So as to waste some more time today, I converted a .jpg file to .ico and put it in favicon.ico. The .jpg is less than 1KB big; the .ico file is ** 60KB ** !!, bigger than the html page I'm putting it on.

我在

http://www.coolutils.com/online / image-converter /

60KB不能是图标的合理大小。可以吗?

60KB cannot be a reasonable size for an icon. Can it?

谢谢!

- pete

推荐答案

.ico文件是唯一的,因为它们可以包含多个分辨率图像,并且使用最合适的图像。该网站可能创建了许多分辨率并将它们包含在一个文件中。我认为Windows 7支持最高512x512的图标。当在缩略图与列表视图中使用不同的图标时,您可能已经在Windows中看到了这一点。如果你想要一个网站的图标,那么只需要一个png。所有现代浏览器都支持它,并且尺寸将小得多。希望有所帮助!

.ico files are unique because they can contain multiple resolution images and the most appropriate one is used. The site probably created many resolutions and included them in a single file. Windows 7 supports icons up to 512x512 I think. You may have seen this in windows when a different icon is used for thumbnail vs. listview. If you want an icon for a website then just make a png. All the modern browsers support it and the size will be a lot smaller. Hope that helps!

<link rel="icon" type="image/png" href="http://example.com/myicon.png">

这篇关于favicon.ico filesize == 60KB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆