We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
您可以在 QuickLook 框架中找到各种卷曲图像:
/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/
然后,您可以将文档图标合成到通用文档图标上,这也可以为您提供卷曲页面图标的掩码:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocumentIcon.icns
You can find various curl images in the QuickLook framework:
/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources/
You can then composite your document icon over the generic document icon, which also gives you the mask for the curled page icon:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericDocumentIcon.icns
您可以使用
iconutil
将充满 .PNG 文件的目录转换为 .ICNS,反之亦然。它随 OS/X 一起提供,是一个命令行程序:https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/iconutil.1.html
您还可以使用预览从文件。但是要从您提到的文件中提取所有图标及其适当的标签 - 在您想要输出的目录中启动命令终端,然后运行以下命令:
如果您要反向操作,请注意在构建 .ICNS 时您正在构建的目录它必须以
.iconset
结尾,并且文件名非常具体。目录中的文件必须命名为:有关此内容以及 2x 的详细信息,请参阅 OS/X 高分辨率指南
默认的页面卷曲相当“压抑”,尤其是在 16x16 这样的小尺寸下。也许它在空白文档图标上看起来不错,但是当您在上面放置图像时,它就会变得很碍事。我在该分辨率下仔细查看的文档图标通常会软化卷曲的灰色边缘,并且通常会照亮黑暗。
例如,Google Chrome:
与默认值:
我指出这一点只是因为我认为如果你遵循他们的要求,在 16x16 下制作看起来不错的文档图标有点失败逐字翻页。
You can turn a directory full of .PNG files into an .ICNS or vice-versa using
iconutil
. It comes with OS/X and is a command-line program:https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/iconutil.1.html
You can also use Preview to extract individual PNGs out of the file. But to extract all the icons from the file you mention with their appropriate labels -- start up a command terminal in the directory where you want your output, and run this command:
If you're going the reverse direction, note that when building an .ICNS the directory you are building it from must end in
.iconset
and the filenames are very specific. The files in the directory must be named:For details on that and what the 2x is about, see High Resolution Guidelines for OS/X
The default page curl is rather "oppressive", especially at the small sizes like 16x16. Perhaps it looks good on a blank document icon, but when you're putting an image on it gets in the way. Document icons I looked at up close at that resolution often soften the gray edge on the curl and generally lighten up the darkness.
For instance, Google Chrome:
vs. the default:
I point it out just because I think it's a bit of a lost cause to make decent looking document icons at 16x16 if you follow their page curl there verbatim.
有 docerator 工具,它允许
There is docerator tool which allows to
有几种工具可以将您的图像(在 Photoshop 中绘制)转换为图标格式:
将图标格式转换为另一种图形 -格式(以便您可以轻松修改)我可以推荐:
免费图标的重要来源是:
请阅读您下载的套件的许可证!您可以在那里下载许多免费图标并重复使用甚至修改它们。然后您可以使用上述工具将它们转换回图标格式。
There are several tools, that converts your image (drawn in Photoshop) into an icon-format:
To convert an icon-format into another graphic-format (so you can easily modify) I can recommend:
Greate sources for free icons are:
Please read the licence of the sets you download! You can download a lot of free icons there and reuse them or even modify them. Then you can convert them back into the icon-format with the tools mentioned above.