17

Example. I drew a line with a pencil, set stroke to 5 px and made a shape using Object->Path->Outline Stroke. Is it possible to convert this shape to line with a stroke again? 100% accuracy isn't necessary.

11
  1. Select your shape.
  2. Swap the fill back to stroke(shift x).
  3. Use the Scissors tool(C) to cut two end points on your shape (with the Scissors tool selected click on the first anchor point that was created when you used the pencil tool, and then click on the last anchor point that was created when you finished with the pencil tool.
  4. You should now have two paths similar to your original line. You can delete one of them
  5. You might run into trouble if your original pencil line overlapped itself.
| improve this answer | |
  • Thank you. Eventually I came up with the same approach. It's not perfect, cause it's a bit hard to make line with stroke from shape with rounded corners. Length will be different in this case. – user1561346 Jun 19 '14 at 21:25
  • Step 6. offset the other path by half of the distance of the original thickness. Repeat 1-5 and you have originbal curve – joojaa Sep 15 at 8:02
8

I found a good solution here: https://forums.adobe.com/thread/568045?tstart=0

In a nutshell, you need to convert your shape into a stroke, remove caps at the end and apply a "Blend" between those 2 lines, with the following options (Specified Steps, number of steps: 1). So the line you want will be between 2 initial lines which you can remove.

Original path:

enter image description here

Delete segments at the ends:

enter image description here

Object > Blend > Make. Then Object > Blend > Blend Options. Spacing: Specified Steps, number of steps: 1. Then Object > Blend > Expand:

enter image description here

| improve this answer | |
2

I know this is an old question, but I have a simple answer. Select your outlined stroke, fill it with black and rasterize it at 300dpi or more. Then, select the rasterized art and trace it with the "line art" setting. Expand appearance and BOOM! you have a path.

| improve this answer | |
0
  1. Add a stroke to the PATH, up the width until you just see a little bit of inner fill left.
  2. Object > Expand.
  3. You should have three paths now. Use the Direct Selection Tool to select the outer two paths and delete then. THEN USE @user26228 method above.
  4. Split the remaining path at it's tip using the eraser, scissors, direct selection tool, or what ever you preference is.
  5. Delete one of the remaining two paths.
| improve this answer | |
0

There are a few tools online but the one I use is called Rapid Resizer. If you upload an image, and select "Centerline", it can export an image consisting of single strokes in several formats (SVG, PDF, etc).

enter image description here

Of course, your strokes have to be of consistent width for optimal results - a charcoal drawing will not produce a clear result.

| improve this answer | |
  • Didn't try the linked service because it starts by demanding a login. Can you tell does it handle elementaries such as letter X is 2 crossing lines or the branches at least meet at the same point? – user287001 Sep 15 at 0:32
  • It does not ask for a login. My link was wrong, I edited it. Apologies. – MicroMachine Sep 15 at 0:40
  • Checked. It doesn't understand at all the crossing point of X. The result is as bad as in Illustrator or Inkscape 1.0 – user287001 Sep 15 at 1:04
  • @user287001 I don't think a machine can understand that when you (human) see a "X", you see two bars that cross. The "crossing point" exists in your head, meaning you'd have to draw it - objectively, it's a convex polygon with nothing "inside". The machine would have to be taught what you see to replicate. This is the fastest "inside vector stroke" you can get in a couple clicks. The stroke I get from a X is sufficient for many uses (plotter, cutting machine etc). Otherwise you could use a single-stroke font like Hershey Text where the X is two lines that cross. – MicroMachine Sep 15 at 2:21
  • I have sometimes tried to scan & trace technical drawings. That process suffers badly due the unability to interpret crossings which are not my inventions, they are for ex. crossing wires or other things definitely drawn originally as crossing lines, Often but definitely not exclusively they are perpendicular. Program Vextractor has some understanding inbuilt, but it's not perfect. Better options are welcome. Interactive crossing handling possibility would be perfect. – user287001 Sep 15 at 7:47
-2

Since it just drawing line stroke, i think you can try using image trace - preset:line art, before that please Rasterize that shape in 72ppi(transparent). it not 100% accuracy but you get drawing line stroke back.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.