Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On the internet, you usually get images, that originally were PNGs with aplha chanel and were pasted on white background. Is there some way to substract the white from the zones, where the semi-trensparent colors merged with white to get back the semi-transparent color?
Deleting the white area using magic wand makes images look ugly on dark backgrounds.

share|improve this question
Not without antialiasing/layering information, which the PNGs will not preserve. – Darth Android Jul 9 '13 at 20:55
up vote 1 down vote accepted

In gimp this is fairly simple.

Just select the white area that you want affected (I'm assuming that there is white area also in the picture itself that you do not want to be transparent, if not, just right click on an area of the color you want to turn transparent) and right click, and in the colors menu select "color to alpha" when I do that in the newest version of gimp it takes out the gradients and makes it fade like you describe.


The first time I tested this, I used a Jpeg, but when I realized, I went back and did it again with a PNG and it worked just fine with both file types.

share|improve this answer
Works very well with combination with "select border" - so inner colors won't get white removed. – Tomáš Zato Jan 14 '14 at 14:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .