1

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?

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

2 Answers 2

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

2
  • 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
    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
    Dec 18, 2021 at 21:22
0

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

New contributor
user184045 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

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

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