Images can't contain alpha channels or transparencies

前端 未结 23 2054
猫巷女王i
猫巷女王i 2020-11-30 16:28

Apple has released new version of iTunes Connect & I got an error message when I tried to set Screenshots on itunes connect for my app.

\"Images can\'t c         


        
相关标签:
23条回答
  • 2020-11-30 17:06

    You can export to PNG without alpha in Preview. Simply open your image, choose export, select PNG, uncheck Alpha, and click Save. Preview also support batch export if you open all your images at once.

    0 讨论(0)
  • 2020-11-30 17:06

    If you have imagemagick installed, then you can put the following alias into your .bash_profile. It will convert every png in a directory to a jpg, which automatically removes the alpha. You can use the resulting jpg files as your screen shots.

    alias pngToJpg='for i in *.png; do convert $i ${i/.png/}.jpg; done'
    
    0 讨论(0)
  • 2020-11-30 17:11

    You must remove alpha channels when uploading a photo to iTunes Connect.

    You can do this by Preview, Photos App (old iPhoto), Pixelmator, Adobe Photoshop and GIMP.

    Preview

    1. Open the photo in Preview (if the photo is in your photo album in Photos app (the old iPhoto), then simply drag it from the album to desktop. Then control-click (right-click when mouse) the duplicated photo and select Preview.app under Open With menu).

    2. Select Export… under File menu, and after selecting the destination, uncheck Alpha at the bottom, and click Export.

      File ==> Export...

    Pixelmator

    1. Open the image in Pixelmator, without creating a new Pixelmator file. Just drag the photo to the Pixelmator window.

    2. From Share menu, click Export for Web…

    3. In the top bar, deselect Transparency.

    4. Click Next and then save the new file somewhere.

    Finally, upload the new photo to iTunes Connect.

    GIMP

    1. Open the photo in GIMP.

    2. Open the Layer menu.

    3. Under Transparency, click Remove Alpha Channel.

    4. Save the photo.

    Adobe Photoshop

    1. Open the photo in Adobe Photoshop.

    2. Under Layer menu, click Layer Mask and then From Transparency.

    3. Delete the layer mask by right-clicking on the mask in the Layer panel and selecting Delete Layer Mask.

    0 讨论(0)
  • 2020-11-30 17:11

    Extending Roman B. answer. This is still a problem, I was uploading a cordova app. my solution using mogrify:

    brew install imagemagick
    * navigate to `platforms/ios/<your_app_name>/Images.xcassets/AppIcon.appiconset`*
    mogrify -alpha off *.png
    

    Then archived and validated successfully.

    0 讨论(0)
  • 2020-11-30 17:14

    i was able to use imageoptim to remove alpha channel and compress png files.

    0 讨论(0)
  • 2020-11-30 17:16

    If you are using Photoshop go File > Save for web (Command + Option + Shift + S). Make sure the Transparency is unchecked and this should work.

    0 讨论(0)
提交回复
热议问题