Gimp-Forum.net
Swapping two colours in an image - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Swapping two colours in an image (/Thread-Swapping-two-colours-in-an-image)



Swapping two colours in an image - whitelined - 11-16-2022

I'm currently trying to change a logo in gimp. I need to do two things, make the background transparent so it can be inserted into another document and swap two colours around. I've managed to it transparent with some decent results with the anti-aliased edges using Colour to Alpha. The next thing is changing the colours - I can't figure out how to change them and make it look decent with anti-aliased edges. If I fill, it looks terrible. I just need to swap the pink for the white. What's the best gimp tool to achieve this?

Many thanks


RE: Swapping two colours in an image - meetdilip - 11-16-2022

Tried colourise?


RE: Swapping two colours in an image - rich2005 - 11-16-2022

There will be a few ways. One way

1. Color -> Color-to-alpha to remove the white logo
2. Enable Alpha lock (icon top of layer dock)
3. Fill the image with white
4. Un-tick that alpha lock icon
5. Set the required color. Use the paint tool in 'behind' mode' and carefully paint in the lettering.

example https://i.imgur.com/RxDBo6e.mp4


RE: Swapping two colours in an image - whitelined - 11-16-2022

(11-16-2022, 02:48 PM)rich2005 Wrote: There will be a few ways. One way

1. Color -> Color-to-alpha to remove the white logo
2. Enable Alpha lock (icon top of layer dock)
3. Fill the image with white
4. Un-tick that alpha lock icon
5. Set the required color. Use the paint tool in 'behind' mode' and carefully paint in the lettering.

example  https://i.imgur.com/RxDBo6e.mp4

That is perfect, it's come out looking exactly like you've shown. Thank you so much.


RE: Swapping two colours in an image - denzjos - 11-16-2022

After 'Colour to Alpha' I don't get everything transparent (gimp 2.10.32, windows 10 64 bit).
[attachment=9022]


RE: Swapping two colours in an image - rich2005 - 11-16-2022

(11-16-2022, 06:38 PM)denzjos Wrote: After 'Colour to Alpha' I don't get everything transparent (gimp 2.10.32, windows 10 64 bit).

Neither did I Smile Quickly assumed that the posted image is a screenshot showing the checker pattern rather than the actual image with transparency.


RE: Swapping two colours in an image - denzjos - 11-16-2022

(11-16-2022, 06:59 PM)rich2005 Wrote:
(11-16-2022, 06:38 PM)denzjos Wrote: After 'Colour to Alpha' I don't get everything transparent (gimp 2.10.32, windows 10 64 bit).

Neither did I  Smile Quickly assumed that the posted image is a screenshot showing the checker pattern rather than the actual image with transparency.

Yes, checkerboards, always difficult...  Blush


RE: Swapping two colours in an image - Ofnuts - 11-17-2022

(11-16-2022, 07:09 PM)denzjos Wrote: Yes, checkerboards, always difficult...  Blush

[Image: 2umky9q3e3571.jpg]


RE: Swapping two colours in an image - denzjos - 11-17-2022

(11-17-2022, 10:09 AM)Ofnuts Wrote:
(11-16-2022, 07:09 PM)denzjos Wrote: Yes, checkerboards, always difficult...  Blush

[Image: 2umky9q3e3571.jpg]

Both now look very confused Big Grin