: GIMP - change color of object preserving feathering 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
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
More posts by @Phylliss782
7 Comments
Sorted by latest first Latest Oldest Best
I think I found the easiest way to do this (at least for me), running GIMP 2.8.3.
Open the image to change.
Select the pen.
In the upper right, select the tab that's 3 layers: RGB.
In the cell regarding alpha, click it so it's no longer selected.
Now, when you draw, the colours can change, but the alpha won't.
Draw the desired colour over the existing pixels. Make sure to get
the whole image.
Voila! It's in another colour, but the alpha stays the same.
your background is already transparent, then lock it and you can use the Bucket Fill tool. Retains the feathering and you can use any ol' color you like!
I just figured this out too. I'm designing my logo and have a transparent background so I can apply the logo anywhere.
If your background is already transparent, then lock it and you can use the Bucket Fill tool. Retains the feathering and you can use any ol' color you like!
You could also convert the transparency into a layer mask using Layer → Mask → Add Layer Mask... and selecting the "Transfer layer's alpha channel" option.
This will let you edit the color and transparency components of the layer independently. In particular, to recolor an object, you can just select a region around it and fill it with a solid color.
Personally my favorite approach is Color->Hue, Saturation... and use sliders.
Try checking the "Lock" option for the layer (which prevents transparent pixels from being filled), then use the Fill Bucket. If that doesn't work, you may have to take a slightly roundabout approach. From what I can tell (I'm taking this from the documentation as I don't have Gimp installed) this will work:
Add a black layer below your feathered white layer, so that what you see is your white feathered object against a black background.
Right-click one of the RGB channels (they should all be the same) and choose "Duplicate Channel" to make an alpha channel that looks like your regular composite view.
Delete or hide the black layer.
Create a fresh blank layer, then turn your saved channel into a selection by right-clicking and choosing "Channel to Selection".
Fill the selection with your new color, and hide the white layer.
(Note: In Photoshop, you add Shift to the keyboard shortcut for Fill -- the Backspace/Delete key plus Ctl/Cmd for background color or Alt/Option for foreground -- as the quick way to fill while preserving transparency. The Gimp UI does things a differently, but I would expect there is a similar keyboard shortcut somewhere, if you poke around in the documentation.)
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.