Author Topic: Importing Bitmap  (Read 2337 times)

August 07, 2017, 04:07:03 AM
Read 2337 times

jmcubie

  • Newbie

  • Offline
  • *

  • 1
I created a design in Sketchup. Since I do not want to redraw the design (the wall of a building) I exported it as a BMP file and imported it into inkscape. I selected it with the node tool and used the Patch/trace bitmap function to create an svg file. (Atttached) So far so good. Unfortunately the translation software turned each line into a thick line which you can see if you zoom in closely.  There are a double set of nodes on each corner. The problem with this is that I use a cricut(tabletop cutting machine) and it reads the 2 "paths" ( that is what runs between nodes, right?) which create the thick line as a direction to cut every line twice. 

Is there a way to make this essentially double line into a single line?  -- single set of nodes

I have tried to go in a delete one of the double lines using the node tool and "delete segment."  I can only get that option to work when I lasso several nodes. I can't use that tool when the nodes are so close together.  I have seen directions that say that I can select 2 nodes and then use the "delete segment tool" but I cannot get that to work.

So, if there is a way to change  the double line (2 sends of parallel paths) into a single line, how do I do it?

If I have to go in and delete the second line using the node tool, how do I do it.?  Please be specific about each selection stroke.  I have tried selecting 2 nodes and deleting the segment for a long time and cannot get it to work.

You have to really zoom in on an element of the drawing to see the double nodes and double paths. Feel free to call me 843-991-1059.

August 07, 2017, 06:37:35 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Indeed, the only way to do it would be to delete one of the paths.  I can explain how. 

But first I have a question (well, a couple).  Since the image that you showed is hauntingly reminiscent of what you (I'm pretty sure it's you) were doing in this topic:  https://forum.inkscapecommunity.com/index.php?topic=697.0, I'm curious.  Did you give up on drawing it fresh, because of the difficulty you described about deleting nodes or segments?

If that's the case, I would suggest going back and trying to draw it fresh, as before.  Because the Trace Bitmap result is always only an approximation.  And often when people are drawing paths that will be sent to a cutting machine, they need to be more precise.  And I also saw (pretty sure it was you) had posted in the other Inkscape forum about making the lines a precise length.  So perhaps you had a hard time with that as well?

I didn't realize you were having trouble with my instructions before, because you didn't post any further in your first topic.

In any case, I'll be glad to work closely with you, to show you how to do these things, if you like.  It's not as hard as it might seem.  It's just that we never know how much detail to include in our instructions.  So I can give you way more details, now that I know. 

We could also move to a different media.  Like we could use either IRC or this site's chatbox and work in real time.  Or I'd be willing to work by email, if you like.

I'm going to hold of on instructions for deleting the extra path from the trace result, in case you want to try again with drawing from scratch.  So just let me know what you want to do  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 07, 2017, 11:57:04 AM
Reply #2

jim cubie

  • Jr. Member

  • Offline
  • ***

  • 30
Brynn --I am having lots of trouble accessing he forum.  I used the user name of "jim cubie" and posted the questions you alluded to in your message.  Then when I tried to get back on all weekend it kept telling me "your session has timed out " and "go back a finish your post - or something like that.   So I could not get back on.  So I created a new email account and signed up with the user name "jmcubie."  I posted the bitmap question under that user name. I have an email that says "your user name is "jmcubie"  but when I try to login with that user name it says the username is wrong.   Within 2 minutes I tried to sign on with "jim cubie" and one time it rejected me and one time let me it.  Not sure what to do. Can you delete any and all accounts with "jimcubie, [email protected], and jmcubie" and let me start from scratch?

So that is why you see postings on related topics which seem to be from different users.  That is also the reason I did not reply to your earlier directions -- I could not get on.  Just in the last few minutes it has refused to let me on, then let me on.

Your advice on how to combine the rectangle and the ellipse was very helpful.  I created a simple arched window using the path/union option and the cricut machine cut it right-- hooray.  (By the way cricut advises us to use sgv files.)

In the course of hours of reading about inkscape I came across the fact that it will transform a bmp file to an svg file.  As you could see from the file I sent you I put a lot of work into that design. So the idea of transforming it made sense to me.  Cricut also recognizes and cuts it except that it is seeing double lines and cuts everything twice.

So I would like to try deleting the double paths.  I would be glad to use either IRC (not sure what that is) or chat or phone.  843-991-1059

August 07, 2017, 12:16:57 PM
Reply #3

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

Not using sketchup much myself but it seems that there are other file types you'd be better luck with (as bmp is raster format). If you could export to dxf that would be the easiest.
Still, .dae is not pro only in that list, and vector. You could import that to blender, and from blender you may try other means of transformation.
If you convert each loop of edges to faces, you can export the image to obj in worst case (if there is no svg output addon available) and use inkscape's render 3D polyhedron extension to bring in the obj file as vectors.
Theoretically that can be lossless unlike an automated tracing of a raster image.

August 07, 2017, 01:16:05 PM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I apologize for your log in problems.  Thanks for letting me know about it.  I've already found the problem, and  I'm in the process of fixing it right now. 

If I delete both accounts, you'll have to go through the whole registration process again.  So since you're logged in with jim cubie, I'll delete the other one.  And it looks like there's a 3rd one, which has not been activated yet (at least a minute ago anyway).  So I'll delete it too.

As long as you use the process I told you about, you should be able to log in just fine.  (If you choose Always Stay Logged In, the next time you log in, you won't have to log in again for a long time.  Well, assuming you have allowed cookies.)

Ok, there are a few ways you could delete the extra lines, and I don't know which one you would find easier.

 -- Select the trace result
 -- Object menu > Ungroup  (not sure if this will be necessary, but if not, won't hurt anything)
 -- Path menu > Break Apart  (everything might turn black or other color, but don't worry)
 -- View menu > Display > Outline (Outline mode shows only the paths, so the black fill colors don't show - I think people who use cutters use outline mode a lot)
 -- Deselect everything (click on open area of canvas)
 -- Zoom in far enough so that you can see both of the paths well enough to select them.  You'll probably have to zoom in so far that you can't see the whole image anymore.  So you'll have to either scroll around a lot, or zoom in and out a lot.  Or maybe both.
 -- Be sure to always delete either the inner path or the outer path, to keep everything as close to proportional as possible.  The dashed line rectangle that shows when you select something can help you to know which one is selected.  (dashed line rectangle is called the bounding box)  Probably will be better to zoom into a corner of the object, so the bounding box can help the most.
 -- You can use the Selection tool, and just click once on a path to select it.  There's a little 4-way arrow which shows up beside the mouse pointer, when your mouse is positioned properly to be able to select something.  If the little 4-way arrow isn't showing when you click, it won't be selected.
 -- You can either use Edit menu > Delete, or just the Delete key on the keyboard

Depending on which trace option you used, you may notice that there are more than 2 paths for each line.  If you start to see several paths are making up each line, then I would suggest starting over with the trace.  This time, just use the first option, Brightness Cutoff. 

I should be around today, if you run into any problems.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 08, 2017, 09:20:35 AM
Reply #5

jim cubie

  • Jr. Member

  • Offline
  • ***

  • 30
1.  Many thanks for your help.
2,  I have given  up on the bitmap approach and I am drawing it directly and making good progress.  The attached file cuts well in cricut.
3.  I continue to have  trouble with the "delete segment" and the "join nodes" elements of the node tool.  First, you told me to select what I want to select until I see the crossed arrows symbol.  The only tool I can get this to show with is the FI select tool and when I use it it only selects the entire object -- not segments or nodes.  So I try to use the F2 node select tool  and I click on the nodes which I want to connect, and then click the "Connects nodes" icon on the nodes tool bar and nothing happens. It does not appear that I have selected both of the points.   Thus I cant connect AC and DB on the attached.  Likewise when I try to deleted the segment AB and use the "delete segment" icon, nothing happens.  I know that I could have drawn this differently, but I want to understand the node tool process.  Why are my attempts to select nodes and segments not working?  Please be specific in your answer.   I am missing something.
4. Do all the guides have to be in relation to X/Y being 0,0?  I would like to be able to place a guide 0.5 inches to the right of a vertical line.
5.  Can I turn off snapping temporarily?
6.  Can I format text?  I these letters small by squeezing arrows. Is there an easier way?

August 09, 2017, 12:32:39 PM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Sorry it took me so long to reply.

The only tool I can get this to show with is the FI select tool

That's correct.  Other tools have different little icons or indications.

The problem with deleting the upper segment of the rectangle (and also why you can't join nodes), is because it is a rectangle shape, not a path.  You may have noticed when you select it with the Node tool, you see 2 small squares and a small circle.  These are known as the shape handles for adjusting the size  (although you can also adjust the size with the Selection tool).  Those are your clue that it's not a path yet.

(Note that previously when you used Path menu > Union, you did not have to convert to path first.  Union automatically makes it a path.  But if you don't use Union (or other path operation, aka booleans) you have to take the extra step to convert to path.)

Select it with the  Node tool, and click Path menu > Object to Path.  (Or there's an icon on the control bar which looks a little like a blue figure 8.)  Then you'll see the shape handles are gone, and now you should see 4 nodes (tiny gray diamonds) one in each corner.  When you see nodes, you know it's a path.

(If you draw a circle or ellipse, and convert it to a path, you'll see tiny gray square nodes.  The diamond nodes are called corner nodes and the square nodes are called smooth nodes.  Corner nodes make sharp corners and smooth nodes make curves.  When you click on a node to select it, you might see node handles (if the node has any), which are thin blue straight lines with a tiny circle on the end.  Often there are no handles on corner nodes.  But smooth nodes almost always have handles.)

Now with the Node tool, position the mouse over the segment that you want to remove (between 2 nodes).  For this tool, the indication that the mouse is in the right place is a little hand.  I think it's supposed to be a fisted hand.  Or you could drag a selection box around both nodes, as well.

Click once, and you should see both of those nodes become highlighted blue.  Now when you click on "Delete segment between 2 nodes" button, the segment will disappear.

Ok, so now that you have end nodes (on the end of an open path), you can connect them together.  You can only....well, most of the time, you can only join nodes which are end nodes.  And only 2 nodes can be joined.  If you need a situation where 3 or more paths meet at a single node, you have to do some tricks.

In the situation you have in the attached file, the end nodes are a little distance apart from each other.  If you join them from there, the new single node will be precisely between the original end nodes.  Use "Join selected nodes" button on the control bar.  Or there's an option "Join selected nodes with a new segment" which will draw a new segment between the nodes, leaving them where they are.  Or you could use snapping to place one of the nodes precisely on top of the other one.  Let me know if you need details about that.

Whichever way, you need to select both nodes first.  There are a couple of ways to do that, and with more experience you'll develop your own preference.

One way is to click one node to select it.  Press the Shift key (which allows multiple selection) and hold, while you click the other node (or however many nodes you might need to select).  Another way is to use the Node tool to drag a selection box around both end nodes.  If you use snapping to place the nodes on top of each other, dragging a selection box is the best way to select them.  (It's very tricky to select them one at a time, when they are on top of each other!)

4.  Yes and no.  Ultimately the guide's placement is relative to the 0,0 origin.  When you drag out a guide, you could have it snap to something, like one of the nodes of the vertical line.  Double-click on the guide, to produce a little dialog box.  (The mouse pointer changes to the "finger" icon, when it's in the correct position.)  In the dialog is a checkbox for Relative Change.  So since the guide is snapped to the vertical line, you could enter 0.5 inch in the dialog, to put it a half inch to the right (or -0.5 to put left of the line).  (You should have your whole document set to inches.  It is possible to use different units here and there, but most of the time you want the whole document set to the unit you want to use.  Need more info?)

The other way to do it, would be to select the vertical line with the Selection tool, and notice the x coordinate.  Then add the half inch, and that's where you would place the guide.

There's a fabulous feature for guides, Object menu > Object to Guide.  So if you draw a rectangle, and click Object to Guide, Inkscape will automatically create 4 new guides where the sides of the rectangle used to be.  You might find that helpful as well.

Or you might like to use a grid with snapping, to keep things organized and proportional.

5.  Yes.  2 ways.  Disengage the top button on the snap control bar (which is usually along the right side of the window).  This globally disables snapping.  Then click again to re-enable snapping.  If you leave the top button engaged, you can disable snapping by pressing the Shift key after you start dragging something.  Most of the time, you can press Shift before you start to drag.  But there's a conflict with the Shift key, if you are dragging a node.  So you have to start the drag first, then press Shift, if it's a node that's being dragged.

6.  You can format text in a few ways, but not in every way (which dedicated text programs such as word processors are capable).  With the Text tool enabled, click once on the canvas and start typing.  After the text is typed, look on the control bar for many different ways to format the text.  There's a dropdown menu for the text size (although it's not labelled, except by tool tip).  And another one for changing the font.  There's also a Text and Font dialog, which is very large in size.  A lot of people prefer to use it.  For my needs, the control bar is enough.

Any more questions or clarifications, just ask  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann