Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
converting selection to a single line path
#1
I have the same issue than described here by ringo.r81

Is that possible that there is no option to save a single line path fom a one pixel wide selection in gimp?
Reply
#2
Some solutions offered on the thread you link to... What didn't work? Better pursue the discussion over there/
Reply
#3
(03-06-2020, 04:28 PM)Ofnuts Wrote: Some solutions offered on the thread you link to...  What didn't work?

Most of the solutions mentioned there, were Inkscape related rather than Gimp. My question was if there is a solution using Gimp.

The problem:
I create a jigsaw pattern, convert it into svg format and translate this format into G-code (using another application) that is capable to control a laser engraver. When I insert the jigsaw net and select it by using "select by color" tool I get the outline of the selection instead of centerline.  Outline is useless for me I need centerline. My question is: how can I get the centerline of the selection or I may ask: How to select and what to select that results a single line svg picture of the jigsaw pattern.

I attach my file below.


Attached Files
.xcf   gclogo_jsaw.xcf (Size: 71.97 KB / Downloads: 106)
Reply
#4
It is certainly possible in Gimp. A single pixel center line trace is not the easiest however:

Closely related to Inkscape in that autotrace is used. https://github.com/autotrace/autotrace/releases

That is called by a Gimp plugin, plugin-trace.py see:  http://gimpchat.com/viewtopic.php?f=9&t=17485

Easier to set up in linux than Windows, packing in for the night but a first try (in linux) gives the attached. Will see about Windows tomorrow Wink

Bottom line, you would be better off using Inkscape.


Attached Files
.xcf   gc-logo.xcf (Size: 25.62 KB / Downloads: 95)
Reply
#5
I tried Inkscape as well. I got a distorted output of my original file.

It was my original picture:
   

After tracing:
   

Telling the truth your Gimp solution also resulted a distorted trace.
Reply
#6
Quote:...Telling the truth your Gimp solution also resulted a distorted trace....

Good, if it is not going to work for you, that saves me having to set up autotrace in Windows, although telling the truth, it only traces what you give it.

   

Maybe you should be making the path(s)  first, rather than raster -> selection -> path. 
Inkscape has a jigsaw extension. 
Gimp has a jigsaw plugin from here http://sourceforge.net/projects/gimp-pat...s/scripts/  Inkscape / Gimp look like this.

   
Reply
#7
(03-07-2020, 08:48 AM)rich2005 Wrote: Gimp has a jigsaw plugin from here http://sourceforge.net/projects/gimp-pat...s/scripts/

That is exactly what I needed. Thank you very much.
Reply


Forum Jump: