Images can't contain alpha channels or transparencies

前端 未结 23 2103
猫巷女王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:20

    Still a problem in 2019 :=)

    This worked for me: Select all images you want to upload -> Right click -> Open in Preview -> Export -> Uncheck alpha -> Use the exported images.

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

    Use mogrify tool from ImageMagick package to remove alpha channel.

    brew install imagemagick
    cd folder_with_images
    mogrify -alpha off */*.png
    

    Update from May 3

    You can tell whether image contains alpha channel by running:

    sips -g all image.png
    

    In case you render screenshots in iOS Simulator you can drop alpha channel by passing BOOL opaque = YES to UIGraphicsBeginImageContextWithOptions:

    UIGraphicsBeginImageContextWithOptions(imageSize, YES, 0); 
    
    0 讨论(0)
  • 2020-11-30 17:24

    For this i made a new simple tool. You can remove alpha channel (transparency) of multiple .png files within seconds.

    Alpha Channel Remover

    You can download from here http://alphachannelremover.blogspot.com

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

    Convert your PNG image to JPEG format.

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

    Faced same issue, Try using JPG format !!

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