Skip to main content
Participant
June 8, 2023
Question

How to fill in lines and curves?

  • June 8, 2023
  • 9 replies
  • 1238 views

How do you fill in the missing parts of a line drawing in photoshop? 

For example, if you have a photo of a straight line, but some parts within the line are missing, how do you automatically fill it in? 

This topic has been closed for replies.

9 replies

Trevor.Dennis
Community Expert
Community Expert
June 9, 2023

@frank30365423v48x wrote:

 

All these answers, but we can't possibly give meaningful answer without more information, which HAS to include an example of the image in question.  The only thing we can say for sure is that there is no one click soloution, and it would have to be done manually.

 

All the same, my two penneth is to use stroked paths with tricky curved lines.  Expecially when those lines taper.  The example below is a case in point. The black stroke around the left eye is missing (because I removed it).  It would take a skilled and steady hand to paint that in maually while controlling pen pressure to obtain the tapered ends.

 

By quickly creating a workpath around the eye,

...and stroking the path with a brush set to Pressure Controls Size on a new layer of course.

We can get a perfect line around the eye.

 

c.pfaffenbichler
Community Expert
Community Expert
June 9, 2023

Do you think you saw a p…y-cat? 

Nancy OShea
Community Expert
Community Expert
June 8, 2023

Automagically?  Not quite. 

You'll have to zoom in and manually redraw or paint the line with brush or pencil tools.

 

 

 

Nancy O'Shea— Product User & Community Expert
Myra Ferguson
Community Expert
Community Expert
June 8, 2023

Depending on the image, you could use an adjustment layer such as Levels or Curves to darken the lines so that they connect.

Leslie Moak Murray
Community Expert
Community Expert
June 8, 2023

For a straight line:

Select a part close to the end:

 

Edit>Transform>Scale:

 

Drag:

Brian S. Rasmussen
Inspiring
June 8, 2023

I would give it a try with the new "Remove Tool" in Photoshop (version 24.5.0).
You use it simular to the Spot Healing Brush but it uses AI to make the fill in contrast to the Spot Healing that uses cloned pixels.

Peru Bob
Community Expert
Community Expert
June 8, 2023

I would use the clone tool.

Not automatic, but good results can be achieved.

jane-e
Community Expert
Community Expert
June 8, 2023

 

 ... how do you automatically fill it in? 

By @frank30365423v48x

 

If there are gaps, it won't be automatic in Photoshop. You'll have to create a selection and fill the selection.

 

Illustrator, which is a vector drawing application, has Live Paint with gap detection and does this quite well, but it is not a feature in Photoshop, which is a raster image editor.

https://helpx.adobe.com/illustrator/using/live-paint-groups.html

 

Jane

 

Conrad_C
Community Expert
Community Expert
June 8, 2023

If you’re trying to colorize a line drawing or sketch, one way to use jane-e’s suggestion is something like this: Open the sketch in Illustrator, use Image Trace to convert it to paths, convert it to a Live Paint object so you can run the gap detection, use the Live Paint bucket to fill areas with the gaps closed, then layer the Illustrator version (which contains the color fills) with the original line art in Illustrator or back in Photoshop.

 

That more automatic Live Paint solution in Illustrator is more practical if there a large number of gaps. If there are a small number of gaps, it might be easier/faster to use one of the manual Photoshop methods suggested, such as using the Remove tool or a clone tool to close the gaps.

c.pfaffenbichler
Community Expert
Community Expert
June 8, 2023

Please post the screenshot @Bojan Živković11378569 already requested or post the image itself. 

 

For lines and curves the Pen Tool and/or Paths in general seem a logical go-to but what do you mean by »automatically« exactly? 

Bojan Živković11378569
Community Expert
Community Expert
June 8, 2023

Can you post screenshot with some examples?