How to split a picture into different objects?

Post questions on how to use or achieve an effect in Inkscape.
harpagornis
Posts: 6
Joined: Tue Oct 14, 2008 10:43 pm

How to split a picture into different objects?

Postby harpagornis » Tue Oct 21, 2008 6:10 pm

I have a picture with a green area, a blue area and a yellow area. I like to split this picture into 3 objects of those 3 colors.
so What I actually want to do is to select the colors area's seperately. Can this be done?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: How to split a picture into different objects?

Postby microUgly » Tue Oct 21, 2008 8:02 pm

Yes it can be done. In fact it can't be done any other way (ignoring gradients and pattern fills).

Inkscape_

Re: How to split a picture into different objects?

Postby Inkscape_ » Tue Oct 21, 2008 9:35 pm

I would make three copies of image and then clip each one so that only one color area is visible. To clip picture: draw a ractangle/circle/whatever on top of it -> select your picture -> select your rectangle/circle/etc with SHIFT PRESSED -> from menu select Object-Clip-Set

Inkscaper_

Re: How to split a picture into different objects?

Postby Inkscaper_ » Tue Oct 21, 2008 9:39 pm

I'm guessing that you mean bitmap image by word "picture". If you mean vector picture then earser tool from development version of Inkscape might be useful.

harpagornis
Posts: 6
Joined: Tue Oct 14, 2008 10:43 pm

Re: How to split a picture into different objects?

Postby harpagornis » Tue Oct 21, 2008 9:44 pm

Yes it's a bitmap. I tried to do it with the trace bitmap. Though I don't think it will work. I will have a look at the earser tool.
thanks.

Inkscaper_

Re: How to split a picture into different objects?

Postby Inkscaper_ » Tue Oct 21, 2008 9:49 pm

If it's a bitmap use clipping paths as I described it above, earser tool works only on vectors.

Inkscaper_

Re: How to split a picture into different objects?

Postby Inkscaper_ » Tue Oct 21, 2008 9:52 pm

Here is a good tutorial on this: http://www.youtube.com/watch?v=4Broe2mZ84k

harpagornis
Posts: 6
Joined: Tue Oct 14, 2008 10:43 pm

Re: How to split a picture into different objects?

Postby harpagornis » Tue Oct 21, 2008 9:57 pm

Btw: this is the picture I want to split into objects. It actually contains much more colors. I like to match the colors of the layers with the legenda, and I know how to do that. But I still need to cut it into pieces. Image

Inkscaper_

Re: How to split a picture into different objects?

Postby Inkscaper_ » Tue Oct 21, 2008 10:06 pm

Ohh... In this case trace tool will be much more useful, but I can't tell you which stettings will give you the best results. This looks like some serious work, I'm a big fan of Inkscape , but wouldn't software like ACD Canvas with GIS extension suit better for such purposes?

Slow Dog
Posts: 180
Joined: Wed Sep 24, 2008 7:51 pm

Re: How to split a picture into different objects?

Postby Slow Dog » Tue Oct 21, 2008 11:47 pm

harpagornis wrote:Btw: this is the picture I want to split into objects....


Use the Paint Bucket Tool. :tool_paintbucket:

Import the bitmap (picture) into inkscape. Select the bucket tool. Click each of Colours/Layers you want in turn. Set the resultants objects fill colours to that of the key. You'll probably want to turn off the stroke.

You might need to click in more than one place for the bits you want if the layer's split; you can group those together.

When you've done, delete the bitmap (or put in in a hidden layer).

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: How to split a picture into different objects?

Postby microUgly » Wed Oct 22, 2008 7:19 am

I tried using trace bitmap and the results weren't too good. The problem is that you need to use a large number of scans to ensure it doesn't make some of the legend items the same colour. But with so many scans things become very blurry.

I hate to recommend a commecial solution, but VectorMagic.com does a very good job converting this image to vector--at least as good as you can expect given the source. If you can get a larger version of this image it will do better again.

harpagornis
Posts: 6
Joined: Tue Oct 14, 2008 10:43 pm

Re: How to split a picture into different objects?

Postby harpagornis » Wed Oct 22, 2008 9:31 am

Thanks for trying. I find the bitmap tracing in inkscape not working very well. I will try autotrace tomorrow. Vector magic works very well. There's an online free converting possibility.

razor73
Posts: 1
Joined: Fri Apr 03, 2009 4:32 pm

Re: How to split a picture into different objects?

Postby razor73 » Fri Apr 03, 2009 5:03 pm

Inkscaper_ wrote:Ohh... In this case trace tool will be much more useful, but I can't tell you which stettings will give you the best results. This looks like some serious work, I'm a big fan of Inkscape , but wouldn't software like ACD Canvas with GIS extension suit better for such purposes?

i am a fan of Inkscape too man,.,.it is better my friend i just tried it and it is great.,.

_________________
IP PBX


Return to “Help with using Inkscape”