我的 iPhone 应用程序图标应该采用什么分辨率?

发布于 2024-08-04 03:56:30 字数 68 浏览 4 评论 0原文

iPhone 应用程序的 icon.png 文件可以/应该使用什么图像分辨率?我知道尺寸是 57 x 57,但是分辨率呢?

What image resolution can/should be used for the icon.png file for an iPhone app? I know the size is 57 x 57 but what about the resolution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

假面具 2024-08-11 03:56:30

仅当您尝试在多个设备(打印、屏幕等)上匹配图像的大小时,分辨率才重要。

应用程序图标始终为 57x57,并且将在不进行任何缩放的情况下显示,因此分辨率并不重要(您可以将其另存为 72dpi、65535dpi)或者完全缺少 dpi 元数据——SpringBoard 不会关心,并且会在所有三种情况下绘制相同的数据)

Resolution only matters when you are trying to match the size of an image across multiple devices (print, screen, etc)

App icons are always 57x57 and will display without any scaling thus resolution doesn't matter (you could save it as 72dpi, 65535dpi or missing the dpi metadata entirely--SpringBoard won't care and will draw it the same in all three cases)

晒暮凉 2024-08-11 03:56:30

以下是 Apple 指南的链接,其中包含 iPad、iPhone 视网膜等的尺寸:

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/AppIcons.html#//apple_ref/ doc/uid/TP40006556-CH19-SW1

“分辨率”很重要,但不要将“分辨率”与 dpi 混淆。 Dpi 是用于打印的度量单位,意思是“每英寸点数”。它的工作原理如下:如果您以 100dpi 保存了 100 x 100 的图像,则它将在纸上精确测量 1 英寸(每英寸 100 像素)。

图标的 dpi 并不重要,因为它们仅用于屏幕显示,而不用于打印。

通常将图像保存为 72dpi,即所谓的“屏幕分辨率”,因为旧的 14 英寸显示器(还记得吗?)每英寸屏幕最多只能显示 72 个像素。但现在情况已不再如此,尤其是对于 iPhone 的“视网膜”显示屏。与旧款 iPhone 相比,它的屏幕分辨率更高,每英寸可以显示更多像素。这就是为什么您必须保存 2 个图标:一个用于视网膜显示屏,分辨率为 114 x 114 像素,另一个用于较旧的 iPhone,分辨率为 57 x 57。同样,dpi 并不重要,因为无论您选择什么 dpi,图像上的像素不会改变:它始终具有 12,996 像素 (114 x 144)。

Here is the link to Apple guidelines, with the sizes for iPad, iPhone retina, etc:

https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/AppIcons.html#//apple_ref/doc/uid/TP40006556-CH19-SW1

The "resolution" matters, but don't confuse "resolution" with dpi. Dpi is a measure used for printing, it means "dots per inch". It works like this: if you have an image of 100 x 100 saved at 100dpi, it will measure on paper exactly 1 inch (100 pixels per inch).

The dpi for the icons doesn't really matter, as they are intended for screen display only, not for printing.

It is customary to save images as 72dpi - the so called "screen resolution", because the old 14'' monitors (remember those?) could only display a maximum of 72 pixels per every inch of screen. This is no longer true, especially for the "retina" display of the iPhone. It has a much denser screen resolution, it can show much more pixels in a single inch than the older models of the iPhone. This is why you have to save 2 icons: one for retina display at 114 x 114 pixels, and another for the older iPhones, at 57 x 57. Again, the dpi doesn't matter, because whatever dpi you choose, the number of pixels on your image does not change: it would always have exactly 12,996 pixels (114 x 144).

指尖凝香 2024-08-11 03:56:30

我非常幸运地向 App Store 提交了 72dip、57x57 图标。

I have had the best luck submitting to the App Store with 72dip, 57x57 icons.

枯叶蝶 2024-08-11 03:56:30

我只想说,DPI(或分辨率)是在打印图像时才有意义的值。 DPI 缩写代表每英寸点数,它仅告诉打印机在每英寸纸张上绘制特定数量的像素。在屏幕设备上工作时,DPI 根本不重要

I only want to say that the DPI (or resolution) is a value that only makes sense when an image is printed. The DPI acronym stands for Dots Per Inch, and it only tells the printer to draw that specific number of pixels by inch of paper. While working on screen devices, the DPI isn't important at all.

困倦 2024-08-11 03:56:30

如果为 iPhone 创建新图像,则图像大小以像素为单位,即图标为 57 x 57。如果您使用以毫米或英寸为单位设置的图像尺寸,您会发现显示器上的 10 毫米仅相当于 iPhone 上的 4.4 毫米。 iPhone 的分辨率为 163ppi,是普通显示器 72dpi 分辨率的两倍 (2.25) 以上。这个问题还有另一个很好的理由,因为您可能需要提供更大的图像用于营销(网站、博客、横幅广告,甚至印刷材料),需要放大图像并保持超清晰。在这些一般更广泛的用例中,我更喜欢在最大目标尺寸下以 300 dpi 工作,然后在完成后调整图像大小/重新采样和分辨率。

If creating new images for the iPhone work with the image size in pixels i.e. 57 x 57 for icons. If you work with image sizes set in millimetres or inches, you'll find that 10mm on your monitor equates to only 4.4mm on the iPhone. The iPhone resolution is 163ppi which is over twice (2.25) the 72dpi resolution of a normal monitor. There is another good reason for the question, in that you may need to provide larger images for marketing (websites, blogs, banner ads, or even printed material) requiring zoomed in images that remain super sharp. In these general wider use cases I prefer to work at 300 dpi at the largest target size and then resize/resample image and resolution when done.

┾廆蒐ゝ 2024-08-11 03:56:30

57 x 57,剩下的由 Apple 负责。 Apple 建议您使用更大、更详细的图形,以便您的应用程序被选为功能应用程序。

57 x 57 and Apple takes care of the rest. Apple suggests that you have larger, more detailed graphics for, in the event, that your app gets selected as a feature app.

方觉久 2024-08-11 03:56:30

iPhone 3GS 和之前的显示屏为 163dpi,因此,如果您打算创建相对于其显示方式具有特定尺寸的图标,这应该会为您提供足够的信息。请注意,图标必须为 57x57 像素才能以该 dpi 显示。

iPhone 4 及更新机型和第四代 iPod touch 及更新机型具有 326 dpi 显示屏,图标必须为 114x114 dpi 才能以该 dpi 显示。

The iPhone 3GS and prior display is 163dpi, so if you intend to create icons that are of a particular size relative to how they are shown, that should give you enough information. Note that the icon must be 57x57 pixels to be shown at that dpi.

The iPhone 4 and later and the fourth generation iPod touch and later have 326 dpi displays, and the icon must be 114x114 dpi to be shown at that dpi.

情独悲 2024-08-11 03:56:30

57x57,如前所述。

你可以通过代码选择是让苹果添加“闪亮效果”还是你自己做(或不做)

57x57, as said.

You can chosse by code if let Apple to add the "shiny effect" or if you'll do (or not) it by yourself

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文