如何创建 Windows 应用程序图标
Windows 要求 7 种不同的图标大小。一个 .ico 可以容纳所有这些。
4 分钟阅读
检查任何网站上的网站图标
安装 FetchFavicon Chrome 扩展程序,即时提取、预览和验证网站图标。
Windows 图标大小矩阵
Microsoft 建议将 16、24、32、48、64、128 和 256 捆绑在一个 .ico 中。操作系统会为每个表面选择正确的表面。
压缩在 256×256 下很重要
对 128 和 256 条目使用 PNG 压缩 — 该大小的未压缩 BMP 会生成 256KB 以上的文件。
正确执行此操作的工具
我们的生成器以最佳压缩方式捆绑各种尺寸。放置一个 512×512 的源就可以了。
Platform Dimension Specifications & Compression Benchmark
Standard dimension requirements across search engines, mobile OS, and WebAssembly Oxipng lossless byte reduction.
| Target Platform / OS | Required Dimensions | Format & Delivery | Oxipng Wasm Weight | Byte Savings |
|---|---|---|---|---|
| Google Search SERP | 48×48 px (multiples of 48) | .ico, .png | 4.6 KB | -68.9% |
| Apple iOS / iPadOS Safari | 180×180 px | .png (apple-touch-icon) | 14.8 KB | -67.9% |
| Android Chrome & PWA | 192×192 px & 512×512 px | .png (site.webmanifest) | 59.1 KB | -69.3% |
| Windows Edge & Desktop | 16×16, 32×32, 48×48 px | Multi-resolution .ico | 8.8 KB | -69.5% |
| Legacy Web Browsers | 32×32 px / 16×16 px | .ico (/favicon.ico) | 3.1 KB | -67.0% |
* Benchmark measurements based on lossless RGBA Oxipng WebAssembly compression executing locally in modern web browsers.
常见问题
Windows .ico 文件应包含哪些尺寸?
在一个 .ico 中打包 16、24、32、48、64、128 和 256 像素。Windows 会根据显示界面自动选择最合适的尺寸。
如何从 PNG 创建 Windows 应用程序图标?
从 512×512 正方形 PNG 开始,通过支持大尺寸 PNG 压缩的转换工具生成多尺寸 .ico。
为什么我的 Windows .ico 文件体积很大?
256×256 未压缩的 BMP 图像会显著增大文件体积。请在 .ico 容器内使用 PNG 压缩条目。