Xcode 8 的最新 AppIcon 的大小是多少?如何以更简单的方式获取它们?
What's the size of the newest AppIcon for Xcode 8 and how to get them in an easier way?
我刚刚将 Xcode 更新到版本 8,我之前构建的 AppIcon(针对 Xcode 7)不再有用了。我试过很多在线 AppIcon 生成器,但没有人可以创建全套 AppIcon。新版AppIcon集合如下:
此外,我搜索了AppIcon的official doc,解释和描述都是关于以前版本的。甚至没有文档描述 iPhone 7 的图标大小。以下是 Apple 文档中的 table:
谁知道整套AppIcon的大小?无论如何要方便地生成它们?
当你看到20pt 2x应该是40x40,60pt 2x 120,60pt 3x 180,你只需要将pt值乘以x值即可。
要生成所有尺寸,我建议使用 Inkscape,它在调整图像大小方面非常出色。
创建您的 1024x1024 图标,在您的 mac 和 运行 这个脚本上安装 imagemagick
#!/bin/bash
convert icon1024.png -resize 40x40 icon20ptx2.png
convert icon1024.png -resize 60x60 icon20ptx3.png
convert icon1024.png -resize 58x58 icon29ptx2.png
convert icon1024.png -resize 87x87 icon29ptx3.png
convert icon1024.png -resize 80x80 icon40ptx2.png
convert icon1024.png -resize 120x120 icon40ptx3.png
convert icon1024.png -resize 120x120 icon60ptx2.png
convert icon1024.png -resize 180x180 icon60ptx3.png
我刚刚将 Xcode 更新到版本 8,我之前构建的 AppIcon(针对 Xcode 7)不再有用了。我试过很多在线 AppIcon 生成器,但没有人可以创建全套 AppIcon。新版AppIcon集合如下:
此外,我搜索了AppIcon的official doc,解释和描述都是关于以前版本的。甚至没有文档描述 iPhone 7 的图标大小。以下是 Apple 文档中的 table:
谁知道整套AppIcon的大小?无论如何要方便地生成它们?
当你看到20pt 2x应该是40x40,60pt 2x 120,60pt 3x 180,你只需要将pt值乘以x值即可。
要生成所有尺寸,我建议使用 Inkscape,它在调整图像大小方面非常出色。
创建您的 1024x1024 图标,在您的 mac 和 运行 这个脚本上安装 imagemagick
#!/bin/bash
convert icon1024.png -resize 40x40 icon20ptx2.png
convert icon1024.png -resize 60x60 icon20ptx3.png
convert icon1024.png -resize 58x58 icon29ptx2.png
convert icon1024.png -resize 87x87 icon29ptx3.png
convert icon1024.png -resize 80x80 icon40ptx2.png
convert icon1024.png -resize 120x120 icon40ptx3.png
convert icon1024.png -resize 120x120 icon60ptx2.png
convert icon1024.png -resize 180x180 icon60ptx3.png