Images can't contain alpha channels or transparencies

前端 未结 23 2052
猫巷女王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 remove the alpha channel from a PNG file from the command line with pngcrush, using the flag "-c 2":

    $ file input.png
    input.png: PNG image data, 1024 x 1024, 8-bit/color RGBA, non-interlaced
    $ pngcrush -q -c 2 input.png output.png
    libpng warning: iCCP: known incorrect sRGB profile
    $ file output.png
    output.png: PNG image data, 1024 x 1024, 8-bit/color RGB, non-interlaced
    

    Note the change from RGBA to RGB: the Alpha channel is gone!

    pngcrush lives at http://pmt.sourceforge.net/pngcrush/

提交回复
热议问题