It is currently Fri Sep 18, 2026 3:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Invisible backgroud
PostPosted: Fri Sep 09, 2011 12:27 pm  (#1) 
Offline
GimpChat Member

Joined: Aug 12, 2011
Posts: 6
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



How do I make a color on my image the transparent background to my image?
Also, what file format should I use to make sure it works and when I use the image it will be transparent where I say it should be?

:gimp


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 12:44 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 06, 2011
Posts: 368
Location: US, Ohio
Bill wrote:
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



How do I make a color on my image the transparent background to my image?
Also, what file format should I use to make sure it works and when I use the image it will be transparent where I say it should be?

:gimp


There's a number of ways to do this, and the best way to do this depends on exactly what you're trying to do.

So, what are you trying to do?


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 1:20 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
First off, PNGs support transparency. So you will want to save the image in that format. As for the first question, like TST said, more info is needed. Maybe you could post the image and note what you are trying to do. If it's a solid color background, removing it would allow for transparency, assuming your goal is to add a different background.

_________________
I refuse to be confused, but am often confused at this refusal.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 1:28 pm  (#4) 
Offline
GimpChat Member

Joined: Aug 12, 2011
Posts: 6
tstandiford wrote:
Bill wrote:
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



How do I make a color on my image the transparent background to my image?
Also, what file format should I use to make sure it works and when I use the image it will be transparent where I say it should be?

:gimp


There's a number of ways to do this, and the best way to do this depends on exactly what you're trying to do.

So, what are you trying to do?


I got a little logo. I am going to use it in Silverlight in a XAML file on top of another image and so the edges and other parts need to be transparent. I have the imag sitting in te GIMP file right now and right now the color is already the same constantly throughout the image to be the transparent color.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 1:35 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 06, 2011
Posts: 368
Location: US, Ohio
Bill wrote:
tstandiford wrote:
Bill wrote:
GIMP Version: 2.6.11
Operating System: Windows
OS Version: XP - SP3
GIMP Experience: Beginner Level



How do I make a color on my image the transparent background to my image?
Also, what file format should I use to make sure it works and when I use the image it will be transparent where I say it should be?

:gimp


There's a number of ways to do this, and the best way to do this depends on exactly what you're trying to do.

So, what are you trying to do?


I got a little logo. I am going to use it in Silverlight in a XAML file on top of another image and so the edges and other parts need to be transparent. I have the imag sitting in te GIMP file right now and right now the color is already the same constantly throughout the image to be the transparent color.


Have you tried the color select tool? :colsel <---looks like that. It should be able to accurately select the background with a single click. You can then just hit the delete key on your keyboard to remove the background.

You could also try this:

select the brush tool :brush
in the tool options, there is a "mode" drop down menu. Set that to "color erase."
set your foreground color to whatever color you want to erase
brush everything off of the layer.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 1:48 pm  (#6) 
Offline
GimpChat Member

Joined: Aug 12, 2011
Posts: 6
here is the logo in questioni
Image


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 1:53 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 06, 2011
Posts: 368
Location: US, Ohio
Bill wrote:
here is the logo in questioni
Image


Definitely try the color erase function I mentioned earlier. I think it may be one of your simplest solutions in this case.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 3:21 pm  (#8) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Use the Color picker :colpick to pick the background color. It becomes the FG color in the color boxes.

Image

Colors > Color to Alpha > Drag the color you picked into the color bar.

Image

Your logo cleaned up very nicely just doing those two steps. It doesn't always happen that easily. Below are my results but I recommend that you also do those steps to help familiarize yourself with those particular aspects of GIMP. Just an added note here: alpha means transparent. When you do Color to Alpha you are changing a particular color to transparency.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 3:23 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 06, 2011
Posts: 368
Location: US, Ohio
There's always more than one way to skin a cat. I completely forgot about color to alpha.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Fri Sep 09, 2011 3:29 pm  (#10) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
tstandiford wrote:
There's always more than one way to skin a cat.
Oh, yes. There are many ways to do the same thing in GIMP. Color to Alpha is one of my favorite tools. :mrgreen:

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 12:28 am  (#11) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Gimp is so versatile. :)

_________________
Image


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 1:25 am  (#12) 
Offline
GimpChat Member

Joined: Jun 04, 2011
Posts: 84
2 of the 3 methods are news to me, so good work guys!

gimp is awesome.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 4:38 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Quote:
select the brush tool :brush
in the tool options, there is a "mode" drop down menu. Set that to "color erase."
set your foreground color to whatever color you want to erase
brush everything off of the layer.


This is a feature I didn't know about. I went into the brush mode and I can't find any drop down menu where it says "Set that to "color erase.". Could someone please guide me to where it is? It looks like it would be handy for some thingys. thanx

_________________
Image


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 6:17 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Molly,

In the brush tool options the drop down menu should be at the top.


Attachments:
color erase.jpg
color erase.jpg [ 23.95 KiB | Viewed 2016 times ]

_________________
Image
Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 6:21 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Hot dog, I never thought it would be in with the modes. Funny but I didn't see it there before. thanks Draconian

Edit: I just tried it.
I made a duplicate, set it to erase, set the foreground to white, cuz that is the color I wanted to get rid of. It erased the white, but it darkened the other colors and I think, made them transparent. Was this the correct way? What do I do to get the colors back that I didn't want to erase?

_________________
Image


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 9:26 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 06, 2011
Posts: 368
Location: US, Ohio
molly wrote:
Hot dog, I never thought it would be in with the modes. Funny but I didn't see it there before. thanks Draconian

Edit: I just tried it.
I made a duplicate, set it to erase, set the foreground to white, cuz that is the color I wanted to get rid of. It erased the white, but it darkened the other colors and I think, made them transparent. Was this the correct way? What do I do to get the colors back that I didn't want to erase?


Yes, what it does is it pulls all of whatever color you choose out. Some artists who draw a photo and scan their image in use this tool to erase around the edges of their drawing without interfereing with the actual edges. The advantage is that the slight opacity that comes out of the other colors is barely noticeable, so it's a lot more forgiving than the erase tool. They explain how it all works here: http://docs.gimp.org/2.6/en/gimp-tools-paint.html under "color erase" toward the bottom of the page.


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 9:36 am  (#17) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
tstandiford wrote:

Definitely try the color erase function I mentioned earlier. I think it may be one of your simplest solutions in this case.
That is one cool trick. Thank you!!!

It's kind of like Color to Alpha. I would suspect that the two are inter-connected. :wh

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Invisible backgroud
PostPosted: Sat Sep 10, 2011 10:21 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Very interesting way to use a brush!


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group