-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI --output syntax is counterintuitive #59
Comments
This sounds like a bug. After I fixed the way viewboxes and dimensions are handled, looks like there is an incorrect DPI scaling applied assuming it is in points. I'll push a fix for this soon.
I don't see any reason not to allow this. Will look into why it's not working. |
Fixed by e50e42b. The web UI should be up to date now. |
Excellent! Both of those items seem to be working now on web UI. Thanks. I assume yes... Did you update the CLI core as well? I have not run the update on my RPI for a rust crate type setup. I will have to look into the syntax. |
No problem, glad we got that fixed.
Yes the CLI has also been updated. |
CLI errors when outputting an --origin with -x value. With -y it acts happy. Where I output --origin -70,-30, it gave me:
|
I believe it's interpreting -7 as a flag and not an argument. Try putting it in quotes: '-7'. |
That is what I was thinking. I tried ' and " for just the x and for both, no joy. Still does not like the -x. I also found if I put a , in front of the x, it assumes x is 0 and uses the first value and ignores the next comma and other value without throwing any errors. Doesn't matter, just more info in case it means anything to you. |
Ok, this is a bit counterintuitive. The syntax is actually |
There is a new CLI release v0.0.17 that includes the fix for this. Fixed by 61f379a. |
Hey Sameer, hope all is well.
I am getting around to connecting all my custom workflow of svg to gcode to machine control, and I keep fighting with svg2gcode and its varying choices of origin output.
The initial issue is a varying origin pending if the path is larger than the viewbox bounds, which I run into a lot of with large paths that are not necessarily constrained to the viewbox/page size in inkscape. Depending on where it may go beyond the viewbox, or not, the choice of X and Y Zero vary. Some of the results are similar to what I noted in my previous issue "Origin based on svg 0,0 #36."
When I use the --origin parameter, as you added after issue "SVG offset #7," I found I cannot use negative values. Note the beyond viewbox seems to affect this as well. Also, I see the web interface offset is being scaled by the DPI (as in an offset of 10 turns into 2.64...).
Four output option modes I am thinking of, but have not fully thought through how others may fully appreciate :
I did try to test implementing some of these options myself, but I didn't have luck working through the rust environment.
What are your thoughts?
Thanks
The text was updated successfully, but these errors were encountered: