Uploading SVG / Div…
 
Share:
Notifications
Clear all

Uploading SVG / Division by Zero


734f8da07b19cb0f49bbbaeb2b4f616f?s=80&d=mm&r=g
(@kingrody)
Member
Joined: 6 years ago
Posts: 1
Topic starter  

Hello,

I tried to upload my own SVG file (Graphics option of the iBoarbot) but get Division by Zero errors:

iWBB SVG Generator v1.05

Warning: Division by zero in /var/www/ibb/api/svg_parser.php on line 39

Warning: Division by zero in /var/www/ibb/api/svg_parser.php on line 40
Packets: 0

I tried a couple of different SVG files, all with the same result.

Looks like an error on the server side within the SVG generator. Is anyone else able to use his own SVG files?

Thanks
Kingrody


Quote
766cc88f6f7de6b1cf1128b443f87d5d?s=80&d=mm&r=g
(@billkattaekwondo-com)
Member
Joined: 6 years ago
Posts: 7
 

Did you ever get this working? I’m trying to upload my own SVG files that my wife made in illustrator, but they come out as just scribbles in the webapp.


ReplyQuote
065a0adf7eade09106d7692509265bad?s=80&d=mm&r=g
(@catalin-garbulet)
Member Customer
Joined: 5 years ago
Posts: 1
 

I have the same problem. It seems no SVG upload for this robot. 🙁


ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 6 years ago
Posts: 780
 

What kind of SVG version are you trying to upload?


ReplyQuote
1749da22343b0d85c39164b5c6f52fed?s=80&d=mm&r=g
(@mappler)
Member
Joined: 1 year ago
Posts: 35
 

@robotn1

I am getting this error from time to time as well.  I have found three types of results from processing an SVG file, but I am unsure what causes which outcome.  I am not very familiar with SVG format files, so I’m having trouble figuring out what works and what doesn’t.

Possible results:

1) It works fine.  

2) It gives this division by zero error.  

3) It prints random lines instead of the drawing

I’ll attach two files that illustrate problems 2 and 3.  All files open fine in Inkscape.  

 -Matt

 


ReplyQuote
1749da22343b0d85c39164b5c6f52fed?s=80&d=mm&r=g
(@mappler)
Member
Joined: 1 year ago
Posts: 35
 

@robotn1

Initial look at a file that gives the divide by zero error: the file is missing width and height specifications at the top.  When I add these two elements, I can convert a file that gave a divide by zero error into one that just prints random lines.  Perhaps this helps figure out the issue.

width=”600.000000pt” height=”600.000000pt”

This post was modified 9 months ago by mappler

ReplyQuote
350a26dd49eb55d3494500240423a207?s=80&d=mm&r=g
(@robotn1)
Member Admin
Joined: 6 years ago
Posts: 780
 

We are looking at this Mappler. Thanks for the heads up. The SVG files are not…so standard as we would like 😑 


mappler liked
ReplyQuote
1749da22343b0d85c39164b5c6f52fed?s=80&d=mm&r=g
(@mappler)
Member
Joined: 1 year ago
Posts: 35
 

@robotn1

Ok, I have made some progress on “converting” files into the correct format to work.  The system doesn’t seem to work with Infill yet this way, but it does produce outlines properly.

I am using Inkscape to do the conversion. 

1) Open your SVG file.

2) Create a new SVG file and edit the document properties.  Change the Display Units to MM.  Change the “Custom Size” to around 600 x 600mm as well.  

3) Copy your SVG image from your original file to this new SVG file

4) Save As “Plain SVG”

 

I’m guessing not all of this is relevant, but this has worked for me so far.

I can’t get it to draw in filled areas this way (I’m not sure if iBoardBot even does that, perhaps it only does outline?).  

Additionally, if you move and resize your image too much or in certain ways, you get random lines added into the drawing.  I’m not sure why yet, but this seems to get rid of the “divide by zero” errors.

 

 -Matt


ReplyQuote
Share: