GIMP - change color of object preserving feathering

11

1

I have an .xcf image and I like to change the color of some objects within it. The objects are mostly one solid color with the edges feathered into transparency. I.e. all pixels in the object are white with most pixels fully opaque and some with transparency.

I've tried to change the objects' color using the color select tool + bucket fill but this destroys the feathering. Is there a way to get the gimp to change just the color but preserve the transparency?

The actual objects that I have are multiple bits of text all at different sizes and rotations that I have merged into one layer. So it is no use re-adding the feathering as this messes up the text quite noticeably.

Thanks

spiderplant0

Posted 2011-06-14T17:36:16.207

Reputation: 224

Answers

20

In order to preserve the opacity/transparency of the layer while working, you can tick the "Lock" checkbox in the layers dialog (see here).

Then, create a selection of the objects exactly like you suggested, and fill it with the bucket tool. The alpha of the layer will remain unmodified.

Barak Itkin

Posted 2011-06-14T17:36:16.207

Reputation: 346

Could you explain this in more detail? When I tried what I think you said, flood-fill maintained the transparency, but surprised me with a really different color. – Scott Biggs – 2019-05-01T22:07:14.593

@ScottBiggs - make sure the layer isn't in some weird mode (i.e. that's in normal, and not hard light or anything like that), and that the bucket tool itself is also in normal mode (and not any other mode) – Barak Itkin – 2019-05-03T13:09:24.137