Uploading SVG / Division by Zero
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
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?
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.
I have the same problem. It seems no SVG upload for this robot. 🙁
What kind of SVG version are you trying to upload?
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.
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.
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.
We are looking at this Mappler. Thanks for the heads up. The SVG files are not…so standard as we would like 😑
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.