0

I am saving a PNG in photoshop with a transparent background.

When I export the image as PNG, each pixel of the "transparent" part has an alpha value of 0, but in the program that I am using (game development) even if the alpha is 0, I need to assign the RGB of the pixels. so a transparency pixel should have an RGBA value of ( 255,255,255,0).

Photoshop automatically assumes that transparency has the same RGB value as the edges of the images. For the requirements of the work, I need the pixels of the work to be white even if they have alpha 0 (They are transparent with 0% opacity). So the transparent pixels need to have an RGBA value of (0,0,0,0).

How I can make this?

I can change the format of the file or even use another tool. How can I do this?

  • 1
    transparency has the same color as the edges of the images: what do you mean with that? – Luciano Jan 24 at 10:05
  • if it's PNG-8, does this answer your question? graphicdesign.stackexchange.com/questions/13898/… – Luciano Jan 24 at 10:06
  • I'm not sure I understand this question either - I have the same question as @Luciano. What does "transparency has the same colour as the edges" mean? Can you please edit your question to clarify, and perhaps consider sharing the image file, or show what has failed. Thanks. – Billy Kerr Jan 24 at 15:22
  • Thank you very much for your input, I will update my question in order to be more precise – D4rWiNS Jan 28 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.