gotcha

Author Topic: SVG files  (Read 1197 times)

December 06, 2018, 09:57:54 AM
Read 1197 times

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12

Hai
I convert a figure to svg via inscape, everything works fine, but if I send it to my plotter now I get extra stripes, I think this should normally serve to raise or lower the pen, how can I avoid this?
Iana sketscup 2.png
*Iana sketscup 2.png
(10.72 kB . 515x376)
(viewed 242 times)
  • 0.92.3
  • Windows 8

December 07, 2018, 01:16:35 AM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

Just to make sure I understand -- you see those lines in the preview of the plotter, but you don't see them in Inkscape.  Right?

I saw this problem once before, although it was probably different software.  In that case, the user eventually found some setting in their software which was automatically closing open path ends.  So I would suggest looking at the settings in your software.

Or maybe you have some open ends that you don't realize are there?  I can't tell from your screenshot exactly what's supposed to be there and what isn't.  But we could look at your SVG file, if you don't know how to find the open ends.
  • 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                       

December 07, 2018, 02:04:38 PM
Reply #2

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Thanks for reply
frog.jpeg-image18-4294966486.png
*frog.jpeg-image18-4294966486.png
(102.51 kB . 736x687)
(viewed 248 times)

frog.svg
*frog.svg
(65.05 kB . 736x687)
(viewed 277 times)

Test.png
*Test.png
(81.22 kB . 1074x606)
(viewed 249 times)


This is what I do
Open jpeg file of frog    1Pictures
seleect it
edit make a bitmap
move bitmap copy over the original
select original delete
view display mode outline (red x )
patch
trace bitmap click upload then ok
move the red x
save your file     2Pictures

Then Plot    3Pictures


  • 0.92.3
  • Windows 8

December 08, 2018, 10:11:44 AM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, I'm not sure if I can solve this problem or not.  But I can give you a few bits of info which might end up solving it.

First, after you import the JPG, you don't need to make a bitmap copy, because it already is a bitmap image.  (Slowly we've been trying to change the vocabulary, but it hasn't gotten through completely, and even Inkscape, in this case, uses the wrong word.)  So you can trace the JPG directly, using Trace Bitmap (hah, yes, bitmap used wrongly again).

Next, it looks like you must have used a multiple trace option, possibly Color or possibly Grays.  So there are appox 6 or 8 separate paths of the frog image in the SVG file.  I'm thinking that might be confusing your program, because the paths are all just a pixel or 2 away from each other.

Instead, try using the single trace option Brightness Cutoff.  That will create one single path.  However, that will not trace the rectangular white background.  So if you need that rectangle for your work, go back to the Color or Grays option, and reduce the number of scans to 2.

Hopefully that will help.

I didn't find any open paths in the frog image.  There are a couple of places where there are 2 nodes on top of each other.  Trace Bitmap just does that sometimes, and I have no idea why.  I wish it were fixable, but it seems not to be (or I guess developers would have fixed it by now).  And some of the extra lines appear to be coming from where those double nodes are.  I don't know, maybe your program sees the double nodes as an open end or something?

When I tested with both Brightness Cutoff and Color or Grays with only 2 scans, no double nodes were created.  So I'll keep my fingers crossed this time will go better.

Anyway, let us know how it goes with the new settings.
  • 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                       

December 09, 2018, 02:28:41 AM
Reply #4

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Everything tried what you said, but no improvement
One question one, I see several svg files for save, is there a difference (just svg, inkscape svg, compressed svg etc .....;) maybe I take the wrong
I see in the help file  " SVG 1.1 Specification " is there somthing i must do ???
DSC01813.JPG
*DSC01813.JPG
(2964.65 kB . 3072x2048)
(viewed 231 times)
  • 0.92.3
  • Windows 8

December 10, 2018, 03:00:20 AM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
No, I don't think saving with a different flavor of SVG format will help.

Could you share 2 more files for me to look at?   One SVG file where you used the new trace settings, which creates only  one path.  And the other file, a screenshot of what the plotter is showing you for that specific file.  I need to be able to compare them, so I can identify the nodes where the extra lines are coming from.

Thanks.

  • 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                       

December 10, 2018, 06:09:57 AM
Reply #6

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Thank you for helping me
First file is made as follows
Open jpeg file
new display outline (red x)
trace bitmap singel trace option brightness cutoff
update okay
remove red x
save file in svg
This is the file
Test2.png
*Test2.png
(72.39 kB . 1032x605)
(viewed 242 times)

This a print
Test2.png
*Test2.png
(72.39 kB . 1032x605)
(viewed 242 times)
  • 0.92.3
  • Windows 8

December 10, 2018, 06:46:42 AM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
And I need the SVG file itself, please?
  • 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                       

December 10, 2018, 07:03:18 AM
Reply #8

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Sorry i have 2x the same copy

frog BCO.svg
*frog BCO.svg
(10.51 kB . 920x858)
(viewed 227 times)

  • 0.92.3
  • Windows 8

December 10, 2018, 07:33:52 AM
Reply #9

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, let me ask this question.  In the attached el2.png, one of the extra lines is much lighter than the others (red arrow pointing to it).  Do you know why it's lighter?  I'm just trying to guess where it might be coming from.  At least partly, it looks like it's connected to the intersection of the darker lines.

Well, there's one instance of what I call a double node in the file.  I have 2 arrows pointing to it (because it's tucked in a sharp corner) in the attached dn.png.  Try fixing that, and see if it loads without producing the extra lines.  Here's the only way I know how to fix these nodes, without risking that the path changes while you do it.

 -- zoom in quite a lot, to make it easier to select
 -- using the Node tool, click on the path
 -- drag a tiny selection box around the 2 nodes (we use a selection box because if you try to click, you can only select the one on top, because they are precisely on top of each other)
 -- on the control bar, click "Delete segment between 2 nodes" button  :bbn:
 -- "Join selected nodes" button  :jsn:

Any luck?
  • 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                       

December 11, 2018, 07:13:10 AM
Reply #10

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

I just read this, can you explain this to me

You can now send several generative examples straight from Controllo. You can also open your own SVG to send.
SVG requirements:
The SVG must be 300px wide and high.
All paths must be expanded (ie: no compound paths) ?????????????

This file works it is a example of controllo , left is the view en right is the svg file
maybe it's an idea that you can use

Test SVG.png
*Test SVG.png
(50.22 kB . 1185x537)
(viewed 211 times)

« Last Edit: December 11, 2018, 07:49:47 AM by Sembot »
  • 0.92.3
  • Windows 8

December 11, 2018, 11:05:20 AM
Reply #11

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
You can now send several generative examples straight from Controllo.

I'm afraid I don't really know what that means.  "generative" might imply "buildable" or maybe "putting something together"??  "generative" comes from "generate".  But specifically what it means, I'm just not sure.  Theoretically, it could mean that the program is trying to create something else from what it's given, such as adding new lines.

However, looking at the image which goes with it, I see that the program again is adding its own lines, which in that case is clearly connecting open ends.

Well here's a question which maybe should have been asked from the beginning.  Have you tried to cut one of these files?  Or is all you're doing is plotting?  Maybe those extra lines really are where the cutting head lifts up?

All paths must be expanded (ie: no compound paths)

I can tell you exactly what that means :)  Let's say you have 8 paths in a file.  They could be any kind of path - open (having 2 end points) or closed (no end points).  In Inkscape, let's say you select 3 of those paths, and you do Path menu > Combine.  Now, those 3 paths have become one compound path, made of 3 sub-paths.  The other 5 paths are still just regular paths.

Nothing looks any different on the canvas.  The paths are all where they were to start with, it's just that 3 of them have become one compound path now.

So now, in that file, you have 6 paths.  5 regular paths, and 1 compound path which is made of 3 sub-paths.  Since the instruction says "no compound paths", you need to select all the paths, and using the status bar plus the visual indications on the canvas, determine if there are any compound paths.  (Of course in this case, you already know that there is a compound path.)  But if you didn't know, and if there are, or if you aren't sure, you could do Select All, then Path menu > Break Apart.  That will break all the paths into individual paths, if there are any.

This file works it is a example of controllo , left is the view en right is the svg file
maybe it's an idea that you can use

That gives me the idea that maybe the extra lines are not cutting lines, and that they are supposed to be there.  Maybe that is where the cutting head lifts up and moves to the next path?

Are you going to cut something?  Or do you only want to plot?
  • 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                       

December 12, 2018, 01:51:53 AM
Reply #12

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

I think the additional lines, lines are to move the pen up and down (writing or not writing), what can i do
 but my pen does not move when plotting
Yes, I only want to plot
« Last Edit: December 12, 2018, 12:22:10 PM by Sembot »
  • 0.92.3
  • Windows 8

December 14, 2018, 12:46:42 AM
Reply #13

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
You tried fixing the double node which I indicated, right?  I'm afraid I'm out of ideas.  The only thing I could suggest would be to look at all the settings for that program.  Maybe there's an option to connect lines, for some reason?  Or maybe you need a different export format for plotting vs cutting?  Or some other odd setting?  Or maybe some different buttons or something?  It's just very limited what we can do to help, at this point.

If that program is a free download, I'd be glad to install it and have a look at it.  Maybe I could recognize some language that you don't understand?  Or if you bought it, you could send me whatever installation file you have.  (I could never use it, since I don't have any kind of cutter/plotter hardware.  So it's not like I would be stealing it.)

It would also need to be in English.  I've tried some quick searching, but no luck so far.  It seems like "controllo" is the name of the software, but translated it means "control" or "check it" (depending on the language) which is an odd name for a product.  So I'm not sure if I can find it, without more info.

I know you asked about using another SVG format the other day.  And I still don't think it will work, but you could try saving as Plain SVG.

Will Controllo accept any other file format besides SVG?

The only other option I could think of, would be to use some different software (I mean besides Controllo) (or whatever it's called).
  • 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                       

December 14, 2018, 01:54:53 AM
Reply #14

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Thank you in any case for the support
Here are some sites where I have made it , its open source , but they do not give answers to any questions
I think it will be difficult to install because you have to install an arduino uno and try a xyz plotter as well as the library
Maybe you have enough of the software
If it does not go, no problem you have already spent enough time on me thank you for that

http://piccolo.cc/

https://github.com/diatomstudio/piccolo/

P;S. Between ( ): a Merry Christmas and a Happy New Year for you and the family and friends
  • 0.92.3
  • Windows 8

December 14, 2018, 03:31:27 AM
Reply #15

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Happy Holidays to you too!

Oh wow, did you build the machine yourself?  Did you get Piccolo or Piccolo5 ?

So you're thinking that even if I install it, I won't be able to import the file, because I don't have any hardware connected to it?

Ok, I downloaded Piccolo, not Picollo5, and extracted.  Odd thing #1 -- all the files are showing in green text.  I've never seen that before, and I have no idea what it means.  I found the directory for Windows, which contains Controllo.exe, but I get a couple of errors when I try to open it.  One can't find something, and the other says Processing Error, with some code in the message box. 

I thought there was some documentation, in PDE files (Odd thing #2) rather than PDF.  But I don't think it's documentation after all.  It's something else.

So I guess I can't help any further.  But someone else might come along, who has used this software, who could help?  Or maybe you could contact the creator - maybe they could help you?

Hey wait!  I just found this Getting Started Guide:  https://github.com/DiatomStudio/Piccolo/wiki/Getting-Started

It says (like whatever you showed me before) "NO COMPOUND PATHS"!  (I added the emphasis.)  That means, you need to do something else, before you draw/plot it.  Using that frog file for example.

1 -- Select the drawing.
2 -- Path menu > Break Apart (Everything will turn black.  The guide doesn't say whether the presence or absence of fill and/or stroke is important.  So it might work just like it is, black and all.  But just in case it doesn't, try #3 and #4.)
3 -- Add a stroke.  (There are a few ways to do this, this is the proper way, but not really the fastest.) Object menu > Fill and Stroke > Stroke Paint tab.  Click the  big solid square button in the top-left area, looks just like this  :fc:
4 -- Remove the fill. (There are a few ways, this is the proper way, but not the fastest.)  Object menu > Fill and Stroke > Fill tab.  Click the big X button in the top-left area.  Looks just like this  :rem:

Now, just deselect everything, Save as SVG, and send to Mr. Controllo   :grd:

 :xf2:
  • 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                       

December 16, 2018, 01:23:13 AM
Reply #16

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

1 -- Select the drawing.

Done

2 -- Path menu > Break Apart (Everything will turn black.  The guide doesn't say whether the presence or absence of fill and/or stroke is important.  So it might work just like it is, black and all.  But just in case it doesn't, try #3 and #4.)

I do not get a black surface

3 -- Add a stroke.  (There are a few ways to do this, this is the proper way, but not really the fastest.) Object menu > Fill and Stroke > Stroke Paint tab.  Click the  big solid square button in the top-left area, looks just like this  :fc:

the circumference comes in a color that you determine red

4 -- Remove the fill. (There are a few ways, this is the proper way, but not the fastest.)  Object menu > Fill and Stroke > Fill tab.  Click the big X button in the top-left area. 
Looks just like this  :rem:

fill tab do nothing and when I tap the X tick my drawing disappears

I do not see anything at the save and try

what am I doing wrong
  • 0.92.3
  • Windows 8

December 17, 2018, 05:10:39 AM
Reply #17

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
I meant using the frog BCO.svg file, which you attached above.  That's the one where you only have one path.  Try it with that file.
  • 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                       

December 17, 2018, 03:19:08 PM
Reply #18

Sembot

  • Jr. Member

  • Offline
  • ***

  • 12
Hai,

Hurray! Thank you for the great support, you succeeded
See photos, the line on the right is my fault the z axis is not properly adjusted (pen up pen down)
the blue lines in the controllo image are the movements where the pen goes up or down
Tip 2 worked great
Tip 3.4 did not work, it could be my fault ???
I am glad that it works
Now I can continue to try if everything is okay
I'm going to make a list of what has to be done step by step for a perfect figure
Thanks again

DSC01821.JPG
*DSC01821.JPG
(2500.52 kB . 3072x2048)
(viewed 173 times)

Test OK.png
*Test OK.png
(37.82 kB . 1160x447)
(viewed 172 times)
« Last Edit: December 17, 2018, 11:51:08 PM by Sembot »
  • 0.92.3
  • Windows 8

December 17, 2018, 05:36:45 PM
Reply #19

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Steps 3 and 4 should be working.  Just keep trying.

But it's good news that it works when everything is black, anyway.
  • 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