苹果发布了新版iTunes Connect &当我试图在iTunes Connect上为我的应用程序设置截图时,我收到了一个错误消息。
"Images can't contain alpha channels or transparencies."
苹果发布了新版iTunes Connect &当我试图在iTunes Connect上为我的应用程序设置截图时,我收到了一个错误消息。
"Images can't contain alpha channels or transparencies."
当前回答
我发现你也可以在预览中重新导出png,但在保存时不勾选Alpha复选框。
其他回答
将PNG图像转换为JPEG格式。
使用mogrify工具从ImageMagick包删除alpha通道。
brew install imagemagick
cd folder_with_images
mogrify -alpha off */*.png
5月3日更新
您可以通过运行以下命令来判断图像是否包含alpha通道:
sips -g all image.png
如果你在iOS模拟器中渲染截图,你可以通过将BOOL opaque = YES传递给UIGraphicsBeginImageContextWithOptions来删除alpha通道:
UIGraphicsBeginImageContextWithOptions(imageSize, YES, 0);
这很简单……
在预览应用程序中打开图像,单击文件->导出和 取消α
从Sketch导出
为了避免透明度,确保没有层延伸到画板边界之外。
为此我做了一个新的简单的工具。您可以在几秒钟内删除多个.png文件的alpha通道(透明度)。
你可以从这里下载http://alphachannelremover.blogspot.com