Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to stroke a path using clone tool ?
#1
Question 
I know how to use the clone tool : ctrl + clic to select source image, then clic.

Now to remove a wire in the sky, I create a path then I want to use the clone tool when stroking that path.

Then I get a dialog telling me to select a source image. Which I already did previously.
Steps are
  • open image
  • create path
  • select clone tool
  • ctrl + clic to define source
  • select path
  • stroke path
  • select "use paint tool" (I translate, 'cause I use french HMI)
  • select clone
  • click stroke
Get a dialog saying to select source image.
  • close that dialog
while the stroke path dialog open:
  • ctrl + clic to define source
  • click stroke
Get a dialog saying to select source image.

I tested that on both windows and linux.

Gimp 2.10.6

Did any body succeed in using clone when stroking a path ?

Btw, if you got a better trick to remove wires in pictures, I get it !

Le.snake
Reply
#2
I tried to stroke with the clone tool, also could not get it to work

(09-02-2018, 04:26 PM)le.snake Wrote: Btw, if you got a better trick to remove wires in pictures, I get it !

Use the Resynthesizer Heal Selection. Very easy to use.

For Windows, available from here:
http://www.mediafire.com/file/gwc928wmwt..._32_64.zip

Tutorial here:
https://patdavid.net/2012/08/getting-aro...ction.html
Reply
#3
As far as I know you can not stroke the path that way.

Using the clone tool, and a suitable brush, you can offset the source, then click to start the cloning and shift-drag-click along the wire. screenshot https://i.imgur.com/UT04Bfl.jpg

If you want to use a path then there is an old script resynth-along-path.scm down the list here http://www.silent9.com/incoming/scripts/

As the name suggests uses the resynthesizer plugin. https://i.imgur.com/bAIrQri.jpg

Still using resynthesizer: The heal-selection.py plugin. Easy to paint in a selection using quick-mask (do all the defects in one go) Apply heal-selection. https://i.imgur.com/gGjFSJ0.jpg

Using the gmic_gimp plugin. The InPaint filter - this might be the easiest one for you. http://www.gmic.eu
Paint over in red using the pencil tool (no anti-alias) Apply the filter. https://i.imgur.com/kv1RBFJ.jpg

Most of those are easy to find. If you need a Windows resynthesizer Blighty posted the link. A linux resynthesizer should be in your distro repo.
Reply
#4
(09-02-2018, 04:26 PM)le.snake Wrote: I know how to use the clone tool : ctrl + clic to select source image, then clic.

Now to remove a wire in the sky, I create a path then I want to use the clone tool when stroking that path.

Then I get a dialog telling me to select a source image. Which I already did previously.
Steps are
  • open image
  • create path
  • select clone tool
  • ctrl + clic to define source
  • select path
  • stroke path
  • select "use paint tool" (I translate, 'cause I use french HMI)
  • select clone
  • click stroke
Get a dialog saying to select source image.
  • close that dialog
while the stroke path dialog open:
  • ctrl + clic to define source
  • click stroke
Get a dialog saying to select source image.

I tested that on both windows and linux.

Gimp 2.10.6

Did any body succeed in using clone when stroking a path ?

Btw, if you got a better trick to remove wires in pictures, I get it !

Le.snake

I remember to ask the developers once, and got the admittance that this wasn't thought about.

What you can do with your path is to either:
  • stroke with the eraser to create a "hole" in the image and use the "Heal transparency" option of the resynthesize plugin.
  • stroke a line in a new layer, alpha- to selection to get the selection on that line, and use the "Heal selection"  option of the resynthesize plugin on the image layer
Reply
#5
(09-02-2018, 07:08 PM)Ofnuts Wrote:
(09-02-2018, 04:26 PM)le.snake Wrote: I know how to use the clone tool : ctrl + clic to select source image, then clic.

Now to remove a wire in the sky, I create a path then I want to use the clone tool when stroking that path.

Then I get a dialog telling me to select a source image. Which I already did previously.
Steps are
  • open image
  • create path
  • select clone tool
  • ctrl + clic to define source
  • select path
  • stroke path
  • select "use paint tool" (I translate, 'cause I use french HMI)
  • select clone
  • click stroke
Get a dialog saying to select source image.
  • close that dialog
while the stroke path dialog open:
  • ctrl + clic to define source
  • click stroke
Get a dialog saying to select source image.

I tested that on both windows and linux.

Gimp 2.10.6

Did any body succeed in using clone when stroking a path ?

Btw, if you got a better trick to remove wires in pictures, I get it !

Le.snake

I remember to ask the developers once, and got the admittance that this wasn't thought about.

What you can do with your path is to either:
  • stroke with the eraser to create a "hole" in the image and use the "Heal transparency" option of the resynthesize plugin.
  • stroke a line in a new layer, alpha- to selection to get the selection on that line, and use the "Heal selection"  option of the resynthesize plugin on the image layer

The menu exists in gimp 2.10

[Image: attachment.php?aid=2066]


Attached Files Image(s)
   
Reply
#6
(09-02-2018, 07:53 PM)le.snake Wrote: The menu exists in gimp 2.10

[Image: attachment.php?aid=2066]
Yes, but it is unusable, because you can't set the source.

OTOH, the clone tool over a path has equivalents:

- in some modes, this is the same as making a shifted copy of  the path to stroke a line for a selection (as I told above), and then copy/paste that selection,
- in other modes, stroking with the brush tool after copying the source spot to the clipboard and using the "Clipboard" brush (the first of the list of Brushes).
Reply
#7
They are teasing me !

(09-02-2018, 06:06 PM)rich2005 Wrote: As far as I know you can not stroke the path that way.

Using the clone tool, and a suitable brush, you can offset the source, then click to start the cloning and shift-drag-click along the wire. screenshot https://i.imgur.com/UT04Bfl.jpg

If you want to use a path then there is an old script resynth-along-path.scm down the list here  http://www.silent9.com/incoming/scripts/

As the name suggests uses the resynthesizer plugin. https://i.imgur.com/bAIrQri.jpg

Still using resynthesizer: The heal-selection.py plugin. Easy to paint in a selection using quick-mask (do all the defects in one go) Apply heal-selection. https://i.imgur.com/gGjFSJ0.jpg

Using the gmic_gimp plugin. The InPaint filter - this might be the easiest one for you. http://www.gmic.eu
Paint over in red using the pencil tool (no anti-alias) Apply the filter. https://i.imgur.com/kv1RBFJ.jpg

Most of those are easy to find. If you need a Windows resynthesizer Blighty posted the link. A linux resynthesizer should be in your distro repo.

Thanks for this complete post.

Almost a tutorial !
Reply


Forum Jump: