I can convert from colour to alpha, but I need to convert from alpha to color.

I have created an image containing only white text and I want to convert the semi-transparent pixels (the text smoothing) to different values of white (0-254, 0 being black, 255 being white which is the text color) and then export it to a 8-bit raw image data.

How can I do this?

  • Welcome to GD.SE!
    – Mensch
    Commented Dec 18, 2021 at 21:00

2 Answers 2


Two ways:

  1. Add a layer below and fill it with black
  2. Paint directly on the text layer (bucket-fill or else) with the paint tool in Behind mode.

enter image description here

  • I was waay over the board, hah. Do you happen to know if GIMP can export to it to a 8 bit raw pixel data now?
    – Corelation
    Commented Dec 18, 2021 at 21:11
  • File > Export and in the file selector at the bottom pick "Raw image data". And cross fingers, because "raw" is not that well defined.
    – xenoid
    Commented Dec 18, 2021 at 21:22

Another way is to remove the "alpha channel". On GIMP 2.8.22 (linux) this can be done via the menu "Layer/Transparency/Remove Alpha Channel" which will replace the alpha channel with the background color

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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