It is currently Mon Sep 21, 2026 6:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 17 posts ] 
Author Message
 Post subject: Advise on image edges
PostPosted: Wed May 15, 2013 9:05 pm  (#1) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
GIMP Version: 2.6.11
Operating System: Windows
OS Version: windows 7
GIMP Experience: Beginner Level



Hi :) ,

I need advise on edges, is it possible change their color easily rather than doing it pixel by pixel.

I am trying to change the color of the hair into 3 main colors of the hair which is light brown, dark brown and very light brown.

After I change the colors to sets of blue, there will be some edge remains of another brown. My question is how to remove them easily. I got 30 images to go and it takes too much time just to edit one image. I will post the picture to see what i mean.


Attachments:
File comment: After
new one.png
new one.png [ 120.96 KiB | Viewed 2918 times ]
File comment: Before
2FC9E3F2.png
2FC9E3F2.png [ 133.16 KiB | Viewed 2918 times ]
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: Advise on image edges
PostPosted: Wed May 15, 2013 9:43 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Colors>Color to Alpha.
Add an alpha channel to the image first by right clicking the layer and selecting Add Alpha Channel.

Image

I also had to use GPICK to get the correct color in the center which is 6A3628

Image

_________________
Image


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 9:54 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2769
Rod wrote:
Colors>Color to Alpha.
does not work well, Rod, because parts of the background get transpaent as well when you remove the blue colour

I would render the hair and then work with a layermask.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:17 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Esper wrote:
Rod wrote:
Colors>Color to Alpha.
does not work well, Rod, because parts of the background get transpaent as well when you remove the blue colour

I would render the hair and then work with a layermask.


Wait i thought the after image was blue hair?
Are you trying to remove the brown or blue? :)

Either way after color to alpha you could then just recolor the alpha area and your good to go.

_________________
Image


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:21 pm  (#5) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
Esper wrote:
Rod wrote:
Colors>Color to Alpha.
does not work well, Rod, because parts of the background get transpaent as well when you remove the blue colour

I would render the hair and then work with a layermask.


I dont know what you mean?

Rod thanks for your method but I am trying to color the edges dark blue also. The thing is there is too many different kinds to brown at the edges which is why color by region didnt work so well.

If you ask me to why am I doing this putting 3 colors because I am doing a game . Changing the hair color by code is easier and space saving rather than printing out the same image with 10 different colors and I still got 30 different image lol. So basically it will be like 10 x 30 = 300 images.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:25 pm  (#6) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
Basically I am trying to get 3 of the same color which have lighter, light and dark. Because by code all I need is to extract the color code and swap with it with another color code.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:27 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2769
Rod wrote:
Wait i thought the after image was blue hair?
Are you trying to remove the brown or blue? :)

Either way after color to alpha you could then just recolor the alpha area and your good to go.
you get the same effect on both versions really

what do you mean with recolour the alpha ?
how does that work ??


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:32 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2769
masterkof wrote:
I dont know what you mean?
you make a path around the hair to select it
then you choose a layermask from selection, so everything inside the selection becomes transparent
then you can put a layer underneath it in the colour you want the hair to be
but you need to render each layer of the hair seperate (three in your case)
which should be easy because the hair is not very complex


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:42 pm  (#9) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
make a path around the hair thats hard lol I kinda sux in pathing, I only know how to use the fuzzy tool.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:45 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Esper wrote:
Rod wrote:
Wait i thought the after image was blue hair?
Are you trying to remove the brown or blue? :)

Either way after color to alpha you could then just recolor the alpha area and your good to go.
you get the same effect on both versions really

what do you mean with recolour the alpha ?
how does that work ??


Use the color select tool and select any alpha area in the image.Use a pretty high threshold value (65 worked for me).
Fix or grow the selection the way you want it and fill with a color. :) :ninja

About the path-
You could probably just do it once and copy the mask to each layer.

Anyways there are some browns that do not get colored so it probably will not work.
Is there a way in your code to tell the game it is that color even if it isn't?
Don't know what code you use to program so... :)

_________________
Image


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:50 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2769
masterkof wrote:
make a path around the hair thats hard lol I kinda sux in pathing, I only know how to use the fuzzy tool.
how about tracing in Inkscape ?


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 10:57 pm  (#12) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
Rod wrote:
Esper wrote:
Rod wrote:
Wait i thought the after image was blue hair?
Are you trying to remove the brown or blue? :)

Either way after color to alpha you could then just recolor the alpha area and your good to go.
you get the same effect on both versions really

what do you mean with recolour the alpha ?
how does that work ??


Use the color select tool and select any alpha area in the image.Use a pretty high threshold value (65 worked for me).
Fix or grow the selection the way you want it and fill with a color. :) :ninja

About the path-
You could probably just do it once and copy the mask to each layer.

Anyways there are some browns that do not get colored so it probably will not work.
Is there a way in your code to tell the game it is that color even if it isn't?
Don't know what code you use to program so... :)


The code method change the color of the image pixel by pixel which means example the picture armband has a color of (255,200,56), I could change all of the (255,200,56) into maybe (136,136,136).

what's Inkscape, sorry my skills in GIMP is low I only know like the basic.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 11:01 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
Inkscape is a vector (SVG) editor similar to Adobe Illustrator.But FREE. :)
http://inkscape.org/

_________________
Image


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 11:04 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16173
masterkof wrote:
The code method change the color of the image pixel by pixel which means example the picture armband has a color of (255,200,56), I could change all of the (255,200,56) into maybe (136,136,136)..

I guess what i am asking is.If the code allows you to change pixel colors why not utilize that to do it? :)
Or would that take longer to write?

_________________
Image


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 11:11 pm  (#15) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
I am creating the image such that it is easy to change pixel color as there is many kinds of brown.
To change just one color you need 3 lines of code.by changing just the hair in 3 basic color, i need to write 12 lines of code lol but the code.


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 11:12 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 4271
Location: Göteborg, Sweden
i followed this tutorial: how to remove the background from hair, then lasso tooled away the body. (make sure to first of all make a duplicate of the original layer!) then, when i had just the hair on one layer, i used colourize on it and moved the sliders til i got something blue. then i merged the hair layer with the original layer. the only reason that doesn't look exactly right is that i messed up and lost the original at the first try, ortherwise this is a very good method and not too complicated.
Image

_________________


Top
 Post subject: Re: Advise on image edges
PostPosted: Wed May 15, 2013 11:23 pm  (#17) 
Offline
GimpChat Member

Joined: May 15, 2013
Posts: 7
Anmal nice, from this I found out the problem.
It lies in the color bending or banding dun know which term to use. It happens when one color goes to another color which gives out this funny transition color edges which i am trying to remove. What i am trying to do is just pure 3 colors all the way flat lol.


Top
Post new topic Reply to topic  [ 17 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group