0

I'm trying to create an image with a transparent alpha channel. After clipping image, I've removed white rectangular background using the 'Color to Alpha' tool. It seems to work fine by converting white background to transparency.

The problem is when I export to PNG, the white background is transparent, but the image itself is semi-transparent. How to I remedy this?

1

The image is semi-transparent even before you export it. You can use the Pointer dialog to check the alpha-channel.

Color-to-alpha will always make things as transparent as it can. The "contract" is that after you have used C2A, if you insert below the edited layer a layer filled with the color you removed, you get back the original image. However, there are many ways to achieve this. When you remove white from light gray, should the result be opaque light gray, somewhat transparent dark gray or very transparent black? Gimp picks the most transparent solution every time.

So to avoid Gimp altering areas that must remain opaque, just exclude them with a selection. Making a selection that doesn't include the center of the subject, but only its edges is easy:

  • Wand-select the background
  • Select>Grow by one or two pixels so that the selection includes the edge pixels
  • Use Color-to-alpha to remove the background
  • Thanks for quick reply. I tried it as you advised and got the result I need. Much appreciated! – Chandler Nov 26 '18 at 21:32
  • Good. Then mark the answer as accepted :) – xenoid Nov 26 '18 at 23:11

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.