苹果发布了新版iTunes Connect &当我试图在iTunes Connect上为我的应用程序设置截图时,我收到了一个错误消息。
"Images can't contain alpha channels or transparencies."
苹果发布了新版iTunes Connect &当我试图在iTunes Connect上为我的应用程序设置截图时,我收到了一个错误消息。
"Images can't contain alpha channels or transparencies."
当前回答
使用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);
其他回答
AFAIK png与透明度是不允许的。使用jpg或更新你的png (photoshop或其他你用来创建png的工具)并删除透明区域。如果你使用阴影,使用jpg,这不会让你头疼。
同样的问题,尝试使用JPG格式!!
为了解决这个问题,我使用烟花批量转换我的png32文件到png24,以便快速简单地上传。Jpeg也可以,但它是有损的。
你可以导出到PNG没有alpha预览。只需打开图像,选择导出,选择PNG,取消选中Alpha,然后单击保存。预览也支持批量导出,如果你打开所有的图像一次。
将PNG图像转换为JPEG格式。