Images can't contain alpha channels or transparencies

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

    Exporting from Sketch

    To avoid transparency, ensure no layer extends beyond the artboard bounds.

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

    You can simply create a new Photoshop document and set its default background to White instead of Transparent. Then, copy and paste your image to the newly created document and save it.

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

    Photoshop

    1. Slice it
    2. Save for web
    3. Uncheck Transparency
    0 讨论(0)
  • 2020-11-30 17:05

    I've found you can also just re-export the png's in Preview, but uncheck the Alpha checkbox when saving.

    enter image description here

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

    What worked for me here was using a jpg file instead of PNG as jpg files don't use alpha or transparency features. I did it via online image converter or you can also open the image in preview and then File->Export and uncheck alpha as option to save the image and use this image.

    0 讨论(0)
  • 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/

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