It is currently Thu Apr 18, 2024 3:36 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Fri Feb 17, 2012 9:54 am  (#21) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
RobA wrote:
Create a path (multiple sections OK) then run the script by right-clicking on the path and selecting "Resynth Along Path..."
The first parameter is the width of "stroke" and the second is the bordering region to sample for source texture.

-Rob A>
Then what does this mean?

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Fri Feb 17, 2012 7:18 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Many years ago when I used Paint Shop Pro (By Jasc Software, before Corel acquired it), it had an amazing tool to remove scratches and noise lines:
http://www.azgraf.net/DersShow/82/repair.swf

I would love that Gimp have a similar tool and so easy to use.

However, with a little more work it can be done with Gimp using the Clone and Healing tool :gimp

Image

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 2:20 pm  (#23) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Oregonian wrote:
RobA wrote:
Create a path (multiple sections OK) then run the script by right-clicking on the path and selecting "Resynth Along Path..."
The first parameter is the width of "stroke" and the second is the bordering region to sample for source texture.

-Rob A>
Then what does this mean?



Ah- The words are from my description!

IT means, how large an area outside the stroke width to sample for replacement image material. So a setting of 5 will look 5 pixels outside the replacement width, and a setting of 100 will look 100 pixel outside the replacement width.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 2:35 pm  (#24) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
YAFU wrote:
I would love that Gimp have a similar tool and so easy to use.

However, with a little more work it can be done with Gimp using the Clone and Healing tool :gimp

Image


This is using the script. Top is source, middle I stoked the paths that I drew. Bottom is after running the script. This was with just a couple minutes to draw the paths. With a larger image and more time it works quite well and is real easy.

Attachment:
sample.jpg
sample.jpg [ 83.18 KiB | Viewed 1447 times ]


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 2:42 pm  (#25) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
molly wrote:
That is a great example and exactly what I am looking for, (how to remove overhead wires)
Is there any chance of a step by step direction how this is done. I have both scripts including the resynthesizer and the resynth to path. I tried several times last night to figure it out.
Help would be appreciated. thanks


Duplicate your source layer.

Use then pen tool to draw paths along the lines. Use ctrl click to start a new path segment.

Then right click on the path and call the script, on the duplicate layer. If your paths are right centered on the wires, then for the first parameter pick a value just larger then the thickness of the wire in pixels. The more sloppy your path, the bigger your number needs to be. For the second parameter pick a number hat represents how far away from the path you want to use as a source region for the resynthesizer process. IF you have a smooth even sky you can pick a larger number. If the path crosses lots of detail you might have to use a smaller number.

I'll often ctrl-f a few times till I get the best resynthesizer result, as there is a random element to it.

Now you can add a layer mask, and paint in black where you want to restore lost detail. For example, I did this to put the light and the insulators back in the little sample I showed above, as you can see my paths cut right through them and ended up replacing those areas with sky.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 3:49 pm  (#26) 
Offline
GimpChat Member
User avatar

Joined: Sep 29, 2011
Posts: 120
Location: Texas
*sighs*..ok so I dl'd Rob's script, pasted into notepad++ saved into my scripts folder for gimp, the one under C:\Users\Jorden\.gimp-2.7\scripts, and....sooo can't find it....i looked under script-fu-resynth-path from the tool bar, from rightclicking with path tool active...and...feel like such a dork cause....I can't find it.

help? I'd use this so often......

_________________
“There´s tools and colours for all of us,
to lend from nature to make the world
more understandable and beautiful”.

Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 5:02 pm  (#27) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
@RobA, thanks for the example.

Is your script compatible with gimp 2.7.5? Is the script in a submenu? I can not find it anywhere by pressing right click. I have installed resynthesizer 0.16.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 8:18 pm  (#28) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks Roba, I didn't duplicate the source, I added a transparent layer so I guess that is where I went wrong. I will try this in the morning.
Cool.

YAFU and Jorden,
Resynthesizer you will find in filters > map > resynthesizer.

Resynth along path, use your pen tool :pathtool to make a path, open the path dialog, :pathtab right click on the path and look for resynth along path in the drop menu.

_________________
Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sun Feb 19, 2012 10:02 pm  (#29) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
As Molly said-

Right click on the path in the path dialog:
Attachment:
2012-02-19_220200.jpg
2012-02-19_220200.jpg [ 61.9 KiB | Viewed 1418 times ]


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Mon Feb 20, 2012 12:13 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Sep 29, 2011
Posts: 120
Location: Texas
*facepalms* yeah....i'm a gidget....thanks RobA for the patience....found it.

_________________
“There´s tools and colours for all of us,
to lend from nature to make the world
more understandable and beautiful”.

Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Mon Feb 20, 2012 6:03 am  (#31) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
RobA wrote:
molly wrote:
That is a great example and exactly what I am looking for, (how to remove overhead wires)
Is there any chance of a step by step direction how this is done. I have both scripts including the resynthesizer and the resynth to path. I tried several times last night to figure it out.
Help would be appreciated. thanks


Duplicate your source layer.

Use then pen tool to draw paths along the lines. Use ctrl click to start a new path segment.

Then right click on the path and call the script, on the duplicate layer. If your paths are right centered on the wires, then for the first parameter pick a value just larger then the thickness of the wire in pixels. The more sloppy your path, the bigger your number needs to be. For the second parameter pick a number hat represents how far away from the path you want to use as a source region for the resynthesizer process. IF you have a smooth even sky you can pick a larger number. If the path crosses lots of detail you might have to use a smaller number.

I'll often ctrl-f a few times till I get the best resynthesizer result, as there is a random element to it.

Now you can add a layer mask, and paint in black where you want to restore lost detail. For example, I did this to put the light and the insulators back in the little sample I showed above, as you can see my paths cut right through them and ended up replacing those areas with sky.

-Rob A>


Thank you RobA, worked like a charm, great script.
Image Image

_________________
Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Mon Feb 20, 2012 9:44 am  (#32) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Thanks molly and RobA. Works great in Gimp 2.6. In Gimp 2.7.5 I get the following error:
Resynth along Path Message
Error while executing script-fu-resynth-path:
Error: ( : 1) Procedure execution of gimp-edit-stroke-vectors failed on invalid input arguments: Item 'Unnamed' (3) cannot be used because it is attached to another image

GIMP Message
Plug-In 'Resynth along Path' left image undo in inconsistent state, closing open undo groups.


I think Resynthesize and scratch remover should be incorporated as tools by default in Gimp. As we can see, the code exists and that's no problem.
Thanks!

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Mon Feb 20, 2012 10:17 am  (#33) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Maybe one of our great script writers in this forum will come up with that WAFU. :teeth

_________________
Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Tue Feb 21, 2012 1:20 pm  (#34) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Sorry YAFU-

I won't update any on my scripts "officially" until gimp 2.8 comes out. I don't put effort into getting them working with any unstable versions as things can change too much, it can cause much wasted effort on my part.

Of course, not to say someone else can't edit it...

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Tue Feb 21, 2012 2:51 pm  (#35) 
Offline
GimpChat Member
User avatar

Joined: Nov 09, 2011
Posts: 726
Ok, I understand RobA.

_________________
Image
Be patient, English is not my language.


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sat Jul 07, 2012 10:28 am  (#36) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Drats.
@RobA, I have been using this tool for months and now I can't get it to work. The only conclusion I can come to is, (Does this filter work with 2.8-64-bit? It worked great before I changed to Gimp 64-bit.
I also have Fedora-17 64-bit

EDIT: RobA, if this is an issue concerning Gimp-2.6 and 2.8, is it possible for you, (or anyone) to please update this script to work with 2.8? Thanks in advance :teeth

_________________
Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sat Jul 07, 2012 1:19 pm  (#37) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
molly wrote:
Drats.
@RobA, I have been using this tool for months and now I can't get it to work. The only conclusion I can come to is, (Does this filter work with 2.8-64-bit? It worked great before I changed to Gimp 64-bit.
I also have Fedora-17 64-bit

EDIT: RobA, if this is an issue concerning Gimp-2.6 and 2.8, is it possible for you, (or anyone) to please update this script to work with 2.8? Thanks in advance :teeth


Sorry Molly - I'm still not prepared to move to 2.8 for production work, so don't have it installed on my main computer :(

-RobA>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Sat Jul 07, 2012 1:23 pm  (#38) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
no problem RobA - thank you for replying.

_________________
Image


Top
 Post subject: Re: Wire Worm Photoshop plugin
PostPosted: Mon Oct 08, 2012 1:11 pm  (#39) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Hey All-

Just a note that I've updated the script to work with 2.8 It should also still work with 2.6

http://www.silent9.com/incoming/scripts ... g_path.scm

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Wire art

7

No new posts Attachment(s) Barbed Wire brush

11

No new posts Load As Layers Wire Initialization Error With Python

6

No new posts Attachment(s) Photoshop pattern

6

No new posts Attachment(s) Free Online Photoshop Clone

11



* Login  



Powered by phpBB3 © phpBB Group