0

I want to make a transparent image, so I made image's background transparent like this.

Gimp Edit

But exported PNG image was not transparent, it was kind of gray.

enter image description here

What am I doing wrong?

  • 1
    How are you viewing that exported file? – Michael Schumacher May 27 '15 at 5:50
  • 5
    You still have some grey in the "wannabe" transparent areas you need to remove. – Scott May 27 '15 at 5:51
  • My five cents. Can you tell us something about the application used to display the PNG exported image? Is possible that the background of the application (e.g. a Browser or something else) is set to gray? What kind of background are you expected to see? Can you post somewhere your PNG? – Paolo Gibellini May 27 '15 at 12:55
  • @Scott Thanks! That is exactly the problem! I didn't noticed there is still gray color in the transparent area. – ironsand May 28 '15 at 3:32
2

To remove an overlay of grey to an alpha channel as is the case of the example we have to remove the alpha channel (Layer > Transparency > Remove Alpha Channel) first.

We then can convert the background gray back to alpha by choosing Layer > Transparency > Color to Alpha.

In the window that opens click on the color bar (defaults to white) to open the color selection tool. We can now either manually select a color or use the Select Eyedropper Tool to select the grey background color:

enter image description here

After conversion your background will be 100% transparent

enter image description here

but alas on putting this on a dark background we can see that some pixels coming from anti-aliasing at the borders of the red font will retain their original grey:

enter image description here

To avoid this we need to take care to work on a 100% transparent background in the first place.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.