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/ this site has gone use this mirror https://web.archive.org/web/201909110412...g/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
#8
hello out there?!?!

1. Has anyone figured out/fixed the clone/heal on path select source problem yet that was posted in 2019???

2. also does the eraser work on the path tool or is that out of comission too.

3. one more thing blur path guidance in the right direction would be helpful.

thanks for the help in advance
Reply
#9
1. It is fixed in the 2.99.10 dev version: https://i.imgur.com/pq43Dvp.jpg I recall seeing the item in the Gimp commit log (but I can not now find it) I think it might be fixed in the next 2.10 version.

2. Stroke path with eraser tool does work, the only annoyance is having to select it every time.

3. You can stroke a path with the smudge tool, but you could give details of what you require.

-----
edit: From here https://github.com/GNOME/gimp/commit/023...314b7ceff3

- Stroking a path with source tools (Clone, Heal…) is now possible
when the tool is active and a source was selected.
Technically it's more of a bug fix because the GUI existed as though
it was meant to work, but since the report has existed for more than
13 years and I'm not sure it has ever worked, it's worth writing it
here.


No mention of Gimp 2.10 so maybe it will not get fixed
Reply
#10
(09-02-2018, 06:06 PM)rich2005 Wrote: 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

Just to add an excellent tuto from Pat David about InPaint from G'MIC
https://patdavid.net/2014/02/getting-aro...ware-fill/
Reply


Forum Jump: