如何使用Display P3色彩配置提供应用图标?

huangapple go评论65阅读模式
英文:

How to provide App Icon with Display P3 Color profile?

问题

我有一个项目,其应用图标使用Display P3色彩配置。

规格:

色彩配置:Display P3
色深度:每通道16位
  • 我已通过在预览应用程序上查看信息(预览应用程序的信息显示图像详情如上所述)来验证上述内容。

  • 我已将应用图标添加到资源目录,并将色域指定为Display P3,并提供了Display P3资源。

问题:

  • 然而,在iPhone上,应用图标的颜色似乎不正确。
  • 当在iPhone上查看相同的图像时,颜色显示正确。
  • 我认为应用图标似乎未能选择色彩配置。

问题:

  • 我该如何使Display P3应用图标显示正确的颜色?
英文:

I have a project whose app icon uses the Display P3 color profile.

Specifications:

Color Profile: Display P3
Color Depth: 16 bits / channel
  • I have verified the above by viewing the information on the Preview app (info on the preview app shows the image details as above).

  • I have added the app icon the Assets Catalog and I have specified the Gamut as Display P3 and provided the Display P3 assets.

Problem:

  • However the color of the app icon on the iPhone doesn't seem correct.
  • The same image when viewed on the iPhone the color is displayed correctly.
  • I think somehow the App Icon seems to be not picking the color profile.

Question:

  • How can I make the Display P3 app icon be displayed with the correct colors?

答案1

得分: 1

这是一个问题。我不确定XCode在将图像打包到应用程序包时是否会将图像转换为sRGB颜色空间,或者iOS在显示图标时是否存在问题。然而,我已通过设计一个包含两种颜色的图标来进行测试:一种是sRGB红色[1,0,0],另一种颜色是P3红色[1,0,0]。如果图标显示正确,您会看到两种颜色。但如果它被转换为sRGB,那么图标的两个部分都会变成相同的颜色。在测试时,它总是显示相同的颜色。

我已经使用支持事件报告了这个问题,Apple同意这是一个错误。我还提交了一个错误报告。如果其他人也遇到这个问题,报告一个重复的问题将有助于引起更多关注。

英文:

This is a bug. I’m not sure if XCode is converting the image to sRGB colorspace when it packages the images into the app bundle or if iOS has a bug in the way it displays the icons. However I have tested it by designing an icon that contains two colors: one is srgb red [1,0,0] and the other color is p3 red [1,0,0]. If the icon displays correctly you see two colors. But if it gets converted to srgb then both parts of the icon are the same color. When testing it always shows the same color on both sides.

I have reported this using a support incident and Apple agreed that it was a bug. I also filed a bug report. It would help if other people who have this problem file a duplicate report to bring more attention to this issue.

huangapple
  • 本文由 发表于 2023年4月17日 18:41:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76034274.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定