Post Reply 

Turn an image 'white' in GIMP

Feb 4, 2014, 21:40
Post: #1
Turn an image 'white' in GIMP
I have an image that looks like this...

http://marklocklear.github.io/images/motorbike.png

...that I would like to look like...

http://marklocklear.github.io/images/git.png

So the motorcycle would be all white but stay within the bounds of the current lines of the bike. I did some digging and it looks like I need to add a layer mask which I did without any luck. When I add a layer mask which option should I choose?
Find all posts by this user
Quote this message in a reply
Feb 4, 2014, 22:06 (This post was last modified: Feb 4, 2014 22:07 by ofnuts.)
Post: #2
RE: Turn an image 'white' in GIMP
Your bike is on transparent backrground so it is very easy:

- add a layer, fill it with the background color
- select the layer with the bike, and "Layer/Transparency/Alpha to selection": this will give you a selection with the shape of the bike.
- back to the other layer, and bucket-fill the selection with white

[attachment=2986]

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 4, 2014, 22:21
Post: #3
RE: Turn an image 'white' in GIMP
..thanx...I was able to remove the background on the image you attached, and that is exactly what I need. However, I'm trying to go through the steps myself. So your first step is...

- add a layer, fill it with the background color

...so lets just start with 'add a layer'. Would that be Layer > New Layer...or Layer > Mask > Add Layer Mask?
Find all posts by this user
Quote this message in a reply
Feb 4, 2014, 23:00
Post: #4
RE: Turn an image 'white' in GIMP
If you want your final result to be white on a transparent background.
My solution would be...
Open your colored Motorcycle image in Gimp.
Layer->Transparency->Alpha to Selection.

Then, Layer->New Layer, give this new layer a name, choose fill type Transparency
Set your Foreground Color to White.
Edit->Fill with FG Color.
Select->None

File->Export your new image.
Find all posts by this user
Quote this message in a reply
Feb 5, 2014, 02:18
Post: #5
RE: Turn an image 'white' in GIMP
(Feb 4, 2014 22:21)lumbee Wrote:  ..thanx...I was able to remove the background on the image you attached, and that is exactly what I need. However, I'm trying to go through the steps myself. So your first step is...

- add a layer, fill it with the background color

...so lets just start with 'add a layer'. Would that be Layer > New Layer...or Layer > Mask > Add Layer Mask?
If you don' t need the background, then the whole procedure is this instead:
- select the layer with the bike, and "Layer/Transparency/Alpha to selection": this will give you a selection with the shape of the bike.
- hide the original layer
- add a transparent layer (Layer/New layer of course)
- and bucket-fill the selection with white

Another way:
- select the bike layer and lock its alpha channel:
[attachment=2987]
(image above for 2.6, slight difference you can figure out in 2.8)

- bucket fill the whole layer with white (the alpha-lock prevents the bucket-fill to apply to transparent areas)

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 5, 2014, 13:39
Post: #6
RE: Turn an image 'white' in GIMP
Awesome! You guys rock. Thanks so much!

(Feb 5, 2014 02:18)ofnuts Wrote:  
(Feb 4, 2014 22:21)lumbee Wrote:  ..thanx...I was able to remove the background on the image you attached, and that is exactly what I need. However, I'm trying to go through the steps myself. So your first step is...

- add a layer, fill it with the background color

...so lets just start with 'add a layer'. Would that be Layer > New Layer...or Layer > Mask > Add Layer Mask?
If you don' t need the background, then the whole procedure is this instead:
- select the layer with the bike, and "Layer/Transparency/Alpha to selection": this will give you a selection with the shape of the bike.
- hide the original layer
- add a transparent layer (Layer/New layer of course)
- and bucket-fill the selection with white

Another way:
- select the bike layer and lock its alpha channel:

(image above for 2.6, slight difference you can figure out in 2.8)

- bucket fill the whole layer with white (the alpha-lock prevents the bucket-fill to apply to transparent areas)
Find all posts by this user
Quote this message in a reply
Feb 5, 2014, 13:55
Post: #7
RE: Turn an image 'white' in GIMP
Thanks guys. That worked!
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need Help about Gimp opening a whole lot files AlexWorX 1 25 Yesterday 19:44
Last Post: rich2005
  How do I open multiple images in Gimp? Pnem42 1 64 Nov 9, 2017 05:23
Last Post: paynekj
  How to add a magnification segment of an image to the original size image fenpeppertree 1 71 Nov 7, 2017 17:05
Last Post: paynekj
  removing unwanted portions of selected area in an image pizzipie 1 88 Nov 2, 2017 05:31
Last Post: paynekj
  Recolor image and maintain detail awesley 1 105 Oct 29, 2017 16:48
Last Post: paynekj

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS