hpgl output of traced bitmap

Post questions on how to use or achieve an effect in Inkscape.
tahwos
Posts: 2
Joined: Wed Jun 12, 2013 8:13 am

hpgl output of traced bitmap

Postby tahwos » Wed Jun 12, 2013 8:51 am

I happened across Inkscape while looking for a better way to create hpgl files for my PCB engraver. While Inkscape is hands down the best so far, it does have a peculiar quirk, (for lack of a better explanation) it seems to be tracing my traces.

The output hpgl file is made up entirely of dual lines, effectively outlining, my outlines. While the two dual paths are nothing more than redundant workflow (for now), I would like to figure out what is causing this, as the output from this program is far superior to anything I have tried yet - (operator error?)

Before anyone asks about the ViewMate shot - yes, those are two individual pen paths around each polygon, with their own X, Y coords, and pen up/pen down commands in the plotter file.

Thanks in advance for any help!

original.PNG
Original traced bitmap (as a PNG)
original.PNG (1.18 KiB) Viewed 1372 times

after trace.PNG
Screen shot of Inkscape after tracing operation.
after trace.PNG (17.13 KiB) Viewed 1372 times

After Save As.PNG
After "Save As..." hpgl and plt had the same results (As viewed in ViewMate)
After Save As.PNG (25.67 KiB) Viewed 1372 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: hpgl output of traced bitmap

Postby Lazur » Thu Jun 13, 2013 9:07 pm

Did you set only two colours for the auto-trace?
The result after the tracing should look exactly like on your first image with right settings.
And probably it would result in good hpgl files.

tahwos
Posts: 2
Joined: Wed Jun 12, 2013 8:13 am

Re: hpgl output of traced bitmap

Postby tahwos » Thu Jun 13, 2013 11:15 pm

In the time it took for this topic to be moderated and posted, I had found a good explanation in a tutorial. http://inkscape.org/doc/tracing/tutorial-tracing.html (look for the penguins). I was using Edge Detection, instead of Brightness - the output in my first post is how it's supposed to work (operator error).

After switching to Brightness, it worked like I wanted, and as you mentioned. (Edge Detection always produced an outlined path). Also, saving as a *.plt file instead of a *.hpgl file, rendered a much smoother path, with fewer nodes and a smaller file size.

While at a distance, they both look smooth, it is obvious when zoomed in, that "Save As... HPGL" takes a much more "jerky" approach. Which is odd, because the output file is essentially the same format, just a different extension. Before discovering that I could use plt files (and that they looked better), I had chosen to avoid curves altogether, for the sake of smoothness. (Now on to tackle scaling.)

hpgl curve.PNG
hpgl curved path, with 1000dpi bitmap
hpgl curve.PNG (7 KiB) Viewed 1320 times

plt curve.PNG
plt curved path, with same 1000dpi bitmap
plt curve.PNG (6.24 KiB) Viewed 1320 times


Return to “Help with using Inkscape”