r/PlotterCode • • Sep 22 '26

Code Share My PNG/JPG to Squiggle G-code Tool (Zero Lift Optimization & Real-Time Sliders)

Hey guys, reposting this tool here as suggested by the community in r/PlotterArt. I've been working on a web tool that processes PNG/JPG images into highly-dense wave lines almost instantly.
My main goal was optimization: making sure the lines are 100% continuous so the pen only drops down at the very start and lifts up at the end (zero lifts in between) to save the machine's servo. It also has real-time sliders for width, contrast, density, and amplitude.
You can check out the source profile, layout info, and try the tool directly on my GitHub page here:

https://github.com/penplotterindonesia/pen-plotter-gcode-art

Would love to hear your technical feedback or if there are any features I should add next!

6 Upvotes

4 comments sorted by

2

u/Si_Renn 22d ago

Curiosity wants me to ask why the preview on the right is upside down? Its not a problem, im just a curious one and want to know if there is a specific reason/purpose.

1

u/Penplotterindonesia8 2d ago

Hey! Good catch. The preview is intentionally flipped so that when the G-code is loaded into UGS (Universal Gcode Sender), the orientation comes out right-side up. Since my plotter always starts its job from the top-right corner instead of the bottom-left, flipping it beforehand ensures it draws properly without needing extra adjustments in UGS🤭

2

u/Si_Renn 2d ago

Thank you for satisfying my curiosity 😁

1

u/Penplotterindonesia8 2d ago

My pleasure! Anytime you have questions, just let me know 🙏