General Discussion

Help with coloring black and white image.

For general talk about topics that are important to you. Use this forum if your post doesn't fit anywhere else.

Help with coloring black and white image.

Postby ichiban » Tue Mar 15, 2011 3:37 pm

I am a newbie to this. I am a Landscape Architect by profession. Found GIMP by browsing the webb.
Have installed it and have gone thru several tutorials online. What I am trying to accomplish is to
take a 2d pdf black and white file and apply colors to render the drawing in 2d? What is the best way to
accomplish this in GIMP?

thanks

ichiban
Members don't see the above ad. Register now - it's free!
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby David Wood » Tue Mar 15, 2011 7:04 pm

Use a soft brush and set the blend mode of the brush on Multiply. Or leave the brush's mode alone and create a new transparent layer and set it's blend mode on Multiply.
Image
User avatar
David Wood
Administrator
 
Posts: 5462
Joined: Wed Jul 22, 2009 2:28 am
Location: Western New York

Re: Help with coloring black and white image.

Postby ichiban » Tue Mar 22, 2011 2:23 pm

DWood;
thanks - am proceeding on with gimp. My next task is to make my own brushes. One of interest -
I am a landscape architect and do 99% my work in Datacad. Now that I have Gimp, I am rendering
my drawings that have been saved as pdf's. Once brought into Gimp, I have been able to do the
color rendering as you suggested. At this early stage of learning - NOT BAD.

Now I have the occasion to render objects in the pdf that are geometric in shape, like a template of a
palm in plan with 5 sides at equal angles developed in cad. But to make a brush - well, it has been quite
the task. AFter reading and searching online about brushes, some sites have said that most anything
brought into Gimp may be a BRUSH. After reading all of that material, it does not seem to be true.
I import a pdf of the palm template to save as a brush, after save as, name it, with .gbr extension and save it to the gimp brush folder in gimp, it is not there. After watching the tut's about brushes, I see
nothing about once a file is imported into gimp and save as a brush in .gbr format it becomes a brush.
Only after you open a new file, set background as transparency and draw a squiggly line and save it
as supposed to, yes it is a brush for use.

My question is - Can a simple line pdf be saved as a brush once inported into gimp?

thks

Louis Wynne/landscape architect
ichiban
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby Arzoroc » Tue Mar 22, 2011 4:28 pm

Well, I do not know what you've been doing wrong, but once a ".gbr"-file is inside the Gimp brushes-folder, a brush will be displayed in your brush dialog in Gimp.

Maybe there's something wrong with the dimensions of the image or the folder you put it into.
I'll just explain the whole process in detail to make sure you didn't get anything wrong.

Try making a new image in Gimp (File > New Image) and set it to 200x200 pixels at 72 pixels per inch (just for this example). Afterwards, go to "File > Open as Layer" and open up your image/pdf. Make sure the pixels per inch are set to the same value as your new image's (the default for Gimp is 72 ppi). Just move the layer around a bit with the Move-Tool until you see something (just for the test again).
Now, click on "Image > Save as" and save it onto your desktop as "Example.gbr". Gimp will ask you to combine the layers and set the distance of the brush etc. (just hit okay).
Now that's finished, open up your Gimp-brush folder, which is on a different path depending on your OS and the way you installed Gimp:

Linux: /usr/share/gimp/2.0/brushes (you need sudo rights to change the Gimp folders)
Windows XP: C:\Documents and Settings\<username>\.gimp-2.6\brushes\
MacOS: /Users/username/.gimp-2.6/brushes/ (sudo right required aswell as far as I know)
I'm not sure about Vista and Windows 7 though.

Drop the file into the folder and you should be fine.
Now, close Gimp and open it up again. If you now click on a tool like the brush-tool, you will find the newly-made brush at the dropdown menu.

If this does NOT work for you, there might be a problem with your software.
If this DOES work, just make it 400x400, or even 1000x1000 and try it again to get your full PDF image onto one brush.


Hope this helped,
Arzo
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm

Re: Help with coloring black and white image.

Postby ichiban » Tue Mar 22, 2011 8:31 pm

Arzo
Did exactly as you said, did make a brush, BUT, when I use the brush there is an invisible background
(a square) that goes over the area and blocks out the pdf image to be colored.

I even uninstalled gimp and reinstalled it.

wish I could send you the pdf?

But, will keep on trying, thanks for the info.
ichiban
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby Arzoroc » Wed Mar 23, 2011 10:59 am

You can ofcourse send one of us the pdf, just upload it somewhere and send us the link here. But I think I get your problem now.

Is your pdf with the stamp-template white and the image you want to have as a stamp is black (or anything but white)?
Then you have got to remove the background first and make it transparent, and THEN you do the same thing again.


How to get rid of a simple white background if the object has a clear shape:
First of all, load up your image (/pdf) in Gimp. It probably has not got an "alpha channel" yet, which is the channel that displays the transparency of every part of the image. Because you want the background behind your focal object to be transparent, you need an alpha channel though. You add one by right-clicking on the layer your object is on in your layers dialog and then clicking "Add Alpha Channel".

Now that your image can display transparency, you will have to remove the (white?) background from your object. You can do this by either using the Wand tool (it selects any color area by clicking on it. After it is selected you can delete the color by pressing the delete key on your keyboard or clicking on "Edit > Cut") or the color select tool (next to the wand, it selects a specific color all over the image) or by using "Color > Color to Alpha" (it just deletes every part of a color inside your image. If your object is for example light blue though, it will become semi-transparent if you delete all the white in your image).

Now that your object is on a transparent background (symbolized by the checkerboard-like pattern), you can save it as "Example.png". PNG-images can save transparency, so it's important not to choose jpg or another filetype.
Now, open up a new image (400x400 for example), but under the advanced options, select "Fill with Transparency".
Now do the "open as layer" thing again but this time you choose your object as "Example.png".

If this is too confusing, just post a link to the pdf here if you can and I'll see what I can do to explain this in an easier way.

Arzo
Inactive.
Spoiler: show
Willy wrote:arzorac

Maffe811 wrote:Arcoroc

David Wood wrote:Arzorac

sagtek wrote:Arzonic

Legionenigmatics wrote:azornac

Cyrilshark wrote:Argzornack, I still have to congratulate you on having the most epic signature ever. haha

*bow*
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm

Re: Help with coloring black and white image.

Postby ichiban » Tue May 03, 2011 9:45 pm

https://rapidshare.com/files/460471109/TREE_1.GBR

Arzo - this is the gbr file for a tree, rendered in gimp to be saved as a brush, but, when I go thru the steps to save it will save in the brushes folder of gimp, but when I click on it, size it as needed, it comes out with a square instead of round. HOWEVER, in the top of the brushes folder, it appears on the clipboard - and comes out round. After I get out of the file and exit gimp, and re-open a file to test it - it is gone from the clipboard, still in the brush folder, but comes out square (with ears - the box corners or still there, instead of being round.

ichiban
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby Arzoroc » Tue May 03, 2011 10:56 pm

Okay, you did nearly everything correctly ;)

But the tree you used still had a white background. When using the brush, it will not only paint the tree, but the white background as well, and therefor it will appear on top of a white block.

To get rid of the white background, you either go "Colors > Color to Alpha" or "Color to Transparency" and choose white as the color you want to remove (warning, this will also delete the light-green parts of your tree and therefor make the tree itself a bit transparent) OR you make it the better looking way:
-Open up the BRUSH.GBR in Gimp (the file itself!)
-Click on the wand tool in your tool dialog:
Image
-Then click on the outside of your tree which is white.
-Go to "Select > Feather" and set 2 as your value.
-Hit the delete button on your keyboard some times.
-Save it again and put it back into your brush folder.

By doing it this way you remove the white background without changing the tree itself. This is how it should look like in the end:
Image
(Same tree but without the white background)

Link for the finished .GBR file:
https://rapidshare.com/files/460478665/TREE_1.GBR
Inactive.
Spoiler: show
Willy wrote:arzorac

Maffe811 wrote:Arcoroc

David Wood wrote:Arzorac

sagtek wrote:Arzonic

Legionenigmatics wrote:azornac

Cyrilshark wrote:Argzornack, I still have to congratulate you on having the most epic signature ever. haha

*bow*
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm

Re: Help with coloring black and white image.

Postby ichiban » Wed May 04, 2011 2:32 am

Arzo - thanks a bunch man! I knew I was close by watching the you tube videos.

Don't care what your neighbor says - you're alright.

ichiban
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby ichiban » Fri May 20, 2011 5:50 pm

Arzo;
Do you know where I can find some 2d (top view only) of cars, trucks, boats, etc. I have searched
all over and found limited images.

ichiban
ichiban
Newbie
 
Posts: 6
Joined: Mon Mar 14, 2011 1:50 pm

Re: Help with coloring black and white image.

Postby Arzoroc » Fri May 20, 2011 10:01 pm

Well, the problem is that most of the images out there are copyrighted.
Some license-free stocks are available at www.sxc.hu and there are always some stocks on www.deviantart.com but you'll have to read about the author's copyright there.

If nothing helps, try google :/
Inactive.
Spoiler: show
Willy wrote:arzorac

Maffe811 wrote:Arcoroc

David Wood wrote:Arzorac

sagtek wrote:Arzonic

Legionenigmatics wrote:azornac

Cyrilshark wrote:Argzornack, I still have to congratulate you on having the most epic signature ever. haha

*bow*
User avatar
Arzoroc
Global Moderator
 
Posts: 2199
Joined: Mon Oct 12, 2009 1:34 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests