This is a suite of revised and new resynthesizer plugins.
I have assumed maintenance of the Resynthesizer from the original author Paul Harrison.
This is version 1.0.
The source is now at github.com (a public repository like SourceForge). Search for user "bootchk", repository "resynthesizer." For more information, see the README and ChangeLog and NEWS files there (you don't have to download them.)
!!! The attached executables are Linux files. DO NOT download them for Windows. Also do NOT download the Python scripts for Windows (they won't work with the old resynthesizer.exe.) I have built the resynthesizer and tested on Windows, but have not finished an installer for Windows. If you are adept at building, download the source and build Windows executables yourselves.
A short summary of changes for users is:
- bugs are fixed
- alpha-agnostic: less hassle with alpha channels
- its bundled: most plugins that use the resynthesizer
For programmers:
- rewritten in C and Python, in Gimp style
- GNU build tool makefiles
- engine separated from the GUI control panel
| Attachment | Size |
|---|---|
| 67.32 KB |
Comments
Thanks! I'm glad it's
Thanks! I'm glad it's helpful in some way! :)
Resynthesizer, does it work in GIMP 2.8?
Please no brickbats, I am using Windows 7, and I understand that GIMP 2.8 uses a new version of python, like 2.7? and Resynthesizer uses python 2.6? So does Resynthesizer work in GIMP 2.8? If so, how should I make it work?
I use the older and newer binaries
all three execute files in the UserFolder>.gimp-2.8>plug-ins folder and it works fine.
http://registry.gimp.org/node/24520
I believe resynth.exe is the newer binary
resynth.exe
resythesiser.exe
resythesiser-gui.exe
I don't use the python version.
-Rod
Resynthesizer
I have tried all kinds of variations. Gimp 2.6, Gimp 2.8, Python 2.7.3, and Python 3.2.3 to no avail. I also have tried the package where you copy the files into the plugins directory for .16 and 1.0 as well as the executable that loads .16 autmatically.
I have tried various 'demo' pictures to replicate the effect understanding that it will not work in every situation.
I get one of two results: either the selected content is effectively put in a blender and not removing it as expected or the process copies from the top part of the image and inserts it. I have validated the 2nd scenario by making it a bigger section so that I can verify the content. Either case, it does not seem to grab from outside of the selected area to 'resynthesize'.
Any thoughts? My machine is Win7. Looks to be a very cool effect if I can just replicate it! >grin<
Thanks in advance for your any assistance.
To make it work in 2.8
Just rename or make a symbolic link:
/usr/lib/gimp/2.0/plug-ins/resynthesizer --> /usr/lib/gimp/2.0/plug-ins/plug-in-resynthesizer
It works for me.
Ubuntu 12.04 64bit, GIMP 2.8, resynthetizer from gimp-registry-plugins (ubuntu package)
Not working on 2.7.4 64-bit kubuntu 12.04
Downloaded the tar.gz from the link, unpacked it and put everything in ~/.gimp-2.7/plug-ins. Start gimp-2.7, load an image, make a small selection, then Filters>Enhance>Heal Selection. Choosing it brings up a small gui with boxes for Context sampling, Sample from and filling order. Selecting OK brings up the following error messages:
eoor: procedure not found
More information:
Traceback (most recent call last):
File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 699, in response
dialog.res = run_script(params)
File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 361, in run_script
return apply(function, params)
File "/home/greenman/.gimp-2.7/plug-ins/plugin-heal-selection.py", line 148, in heal_selection
pdb.plug_in_resynthesizer(timg, tdrawable, 0,0, useBorder, work_drawable.ID, -1, -1, 0.0, 0.117, 16, 500)
error: procedure not found
and
Calling error for procedure 'gimp-procedural-db-proc-info':
Procedure 'plug-in-resynthesizer' not found
Clicking cancel brings up the following:
WARNING: Plug-In "plugin-heal-selection.py"
(/home/greenman/.gimp-2.7/plug-ins/plugin-heal-selection.py)
called deprecated procedure 'gimp-selection-combine'.
It should call 'gimp-image-select-item' instead!
This is starting with a "clean" gimp-2.7 installation, ~/.gimp-2.6 renamed before starting gimp-2.7, so no old plugins copied over.
Thanks!
Thank you. Now I'd like to read about how the old dialogue works and how is used in v1.0.
Edit:
Sorry, this reply was for @deif, "Use "Filters->Enhance->Heal selection"" subject.
Memory issues
Please somebody take time to look into memory usage / allocations, etc.
I noticed that in 'resynth-map-types.h' there are two 'g_malloc' instructions, one of them taking a 'guint' as a parameter and the other one taking a 'gint'. That is limiting the maximum memory allocation to 4GiB and 2GiB respectively. That's just too low for some huge images.
Please change the parameter type to 'gsize' so us 64-bit users can allocate ~18 Exabytes. :)
Also I noticed that with an image roughly 7500x7500, with a selection taking almost the whole image, and using the command 'Heal selection', in 'resynthesizer.c', line 651 (function prepare_sorted_offsets(), instruction g_array_sized_new), it tries to allocate 1809372168 bytes (~1.8GiB) which I don't have at the moment of executing the script (roughly 1.1GiB free, almost all of them from swap).
My system has 2GiB RAM + 2GiB swap, and I'm trying to fill a black section of an image which is the result of a panorama stitch. The stitching process leaves black areas for zones without data, such as the nadir (the ground). The resulting images are usually huge in size (e.g. 20k * 10k), but they can be broken into 6 cube faces for easier processing. The problem is that the ground face usually contains large black areas (unless you shoot absolutely everything 360ºx180º).
I mentioned that cause it's an interesting use case.
With the current memory usage of this plugin these things become almost impossible to do in memory limited systems.
Please look into any memory optimization you could think of.
RAM may be cheap, but free RAM slots are not. ;)
I know windows is not your priority...
I am amazed at the contribution of time and talent that goes into building these great plug-ins. Thank you.
If you had already built and tested a Windows version a month ago, PLEASE, PLEASE make it available: No, we are lowly Windows users not 'adept' at compiling our own executables; nor do we have tools to do it.
It is a shame that all Gimp users do not have access to this wonderful plug-in.
there is a Windows version
here http://aljacom.com/~gimp/Resynthesizer_v1.0-i686.zip
But is true that in the plugin descrition there is not a link for the Windows binary
Pages