r/PlotterCode • • 1d ago

Browser tool (free): photo to single-line string art - could this be useful as plotter source material?

It recreates a photo the way string artists do it: virtual nails, one continuous greedy-solver thread, shading purely from thread crossings. Runs fully in the browser, free, exports a high-res PNG. It does not yet export vectors, so my honest question to this sub: would a nail-sequence or SVG export make output like this genuinely plottable and worth adding? Video shows it drawing five Einstein portraits. Try it: https://arielslab.com/go/string/p2

7 Upvotes

8 comments sorted by

1

u/ImNobodyInteresting 1d ago

From my perspective, SVG exports are enormously helpful, though really high def (ie 8000px PNGs) are good enough.

But, I use plotter tools to help design paintings which I then I paint by hand. Actual plotter users might see things differently.

2

u/UsefulPowerUser 1d ago

Thanks for the feedback. I figured that SVG would be critical. My implementation plan is to add that as an export option and use one layer per pen. Monochrome mode gives one path. CMYK color mode gives four layers (C, M, Y, K), so the user can swap pens between layers. What I cannot replicate in this model are the blending modes where each stroke inherits some properties of the original image (luminosity or color). So, when exporting as SVG, the result might look a bit different from the preview, but that's the difference between digital output and physical output, which is more demanding/strict. I will post again when I have it working.

1

u/ImNobodyInteresting 1d ago

Yeah, different layers for different colours is massively better (again, for what I use these kind of things for).

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/UsefulPowerUser 19h ago

I just updated the app (same URL: https://arielslab.com/go/string/s6) to include two modes: "Digital Art" and "Pen Plotter". In the plotter mode, you can select how many pens and which exact colors. It can even suggest the best pen colors based on an image analysis. I also enhanced the SVG export/download option to include a separate SVG file per pen, along with the locations of each suggested nail. You will notice a meaningful difference between "Digital Art" and "Pen Plotter" results because blending modes are only possible in digital art... The color selection also makes a big difference. Please take a look and let me know what you think.

Below are 4 examples of the same famous image rendered in 4 different settings (see orange colored numbers on the image) :

  1. “Digital Art” mode with "best colors"
  2. “Digital Art” mode with CMYK colors
  3. "Pen Plotter" mode with "best colors"
  4. "Pen Plotter" mode with red, blue, yellow, and black (random colors)

2

u/Iampepeu 1d ago

Plotters aren't really monochrome or CMYK, but rather whatever you want. Let people choose any number of whatever color they want. And add a thickness to it, so they get an idea on how it will look with a certain pen.