1

I have toolbar icons in a file that are all white with transparent background. Using gimp, how do I change the white to black without affecting the transparency?

  • Colors > Invert – Billy Kerr Jan 23 '18 at 7:49
3

General case, any color to any color:

  • Click on the "Alpha-lock" icon, which is the small checkerboard icon in the "Lock" line at the top of the Layers list.

enter image description here

  • Bucket-fill the layer with the new color (black for you), the alpha lock will ensure that pixels keep they current opacity (this means, without any active selection, to use the bucket-fill with the "Fill whole selection" option.

Faster for your specific case (black to white or white to black):

Just use Colors>Invert

0

Another approach is to select all color channels, but un-select the 'alpha' channel in the channels toolbox, then fill with desired color. If you find you do not have an 'alpha' channel, then the mode of the image must not support transparency.

  • Clever, but just another way to prevent changes to the alpha channel. So same approach, but different means. – xenoid Jan 23 '18 at 20:43
  • @xenoid - your answer helped me see this tactic... Thanks! – barrypicker Jan 23 '18 at 23:46

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.