A fix to the Filter>Enhance>Smart remove selection... script.
Release notes:
Fixed a bug where strange texture (e.g. sky from the top of the image) instead of surrounding texture was synthesized onto the selection, as reported at this website for the resynthesizer plug-in.
Changed the menu item to "Filter>Enhance>Heal selection..." from "Smart remove selection..." (New menu item name is shorter and more descriptive. It doesn't use the Heal tool, but the effect is nearly the same. Note the filename is the same, only the menu item name is changed, and it still requires the resynthesizer plug-in.)
Changed the pop-up help text.
Installation:
Copy file smart-remove.scm to the standard place for scripts. See Preferences>Folders>Scripts for the pathnames. In my case, using Linux Ubuntu, I removed the current version at /usr/share/gimp/2.0/scripts/smart-remove.scm and installed the new version at ~/.gimp-2.6/scripts/smart-remove.scm. (It seems strange that Gimp will not use a script from your home folder if there is also one of the same name in the standard installation folder, but it will for a plugin?)
| Attachment | Size |
|---|---|
| smart-remove.scm | 4.06 KB |
Comments
Resynthesizer
I am using Gentoo Linux.
I d/led the resynth source code from this link.
http://www.logarithmic.net/pfh/resynthesizer
I did make install and it installed everything correctly.
However resynth didn't show up in Filters>Map.
I opened resynth in ~/.gimp-2.6/scripts and saw that it was compiled for 32 bits while my system and the Gimp are 64 bits.
Looking at the Makefile I noticed the first line contained:
CC = g++.
I checked /usr/bin and found a symlink to g++-4.3.4.
I modified the Makefile to:
CC = g++-4.3.4
and reinstalled.This time it showed up in Filters>Map and was compiled 64bit.
I am not very familiar with other Linux distro's but something similar might happen there.
The g++ compiler is used to produce 32bit code for apps that need it.
Thanks bootchk for your smart remove script.
Gerard.
fix for windows
RESYNTHESIZER INSTALLING for Gimp 2.6.7 Windows
Hello,
May s.o explain me. How i do this? With the Editor?
- Install plugin resynthesizer-for-Windows-0.13b
- Take the modified script from this thread
- change "(plug-in-resynthesizer 1 img layer 0 0 1 workLayerID -1 -1 0.0 0.117 16 500)"
by "(plug-in-resynthesizer 1 img layer 0 0 1 workLayerID -1 -1 0.0 0.117)"
save script in script directory
Thanks a lot.
that is not for install
it is explained how to modify a script that may use the plugin
Nothing relate to install, you install the plugin as usual(should be a exe file you may just drop it in a plugin folder)
the scripts instead have a different extension (.scm) and should be added to the gimp script folder
they may also be opened with a text editor, as the notepad, to do edits as that suggested
Anyway the script depend from the plugin not vice versa, so RES will works also if the scripts are not installed
trouble with fix for windows
Thank you : works with 2.6 and Windows now
Thank a lot !
what other resynthesizer scripts broken?
other scripts built on resynthesizer:
I've written one
Fill with resynthesized pattern
the 12th and 13th parameters
Finally had a chance to
Finally had a chance to review the Script-fu again. Your fix worked. Thanks. :)
Resynthisizer parameters.
windows versions of resynthesizer
hmm...
Get errors too.
More examples
What can I say; fantastic.
Will download and give it a whirl.
Credit to bootchk
screenshots
Sample
resynthesizer sample not perfect