Try again: I tried to post screen shots with the error messages.
The two errors are:
GIMP MESSAGE: Calling error for procedure 'plug-in-resynthesizer':
The texture source is empty. Does any selection include non-transparent pixels?
and
An error occurred running python_fu_heal_selection
RuntimeError: The texture source is empty. Does any selection include non-transparent pixels?
MORE INFORMATION in the 2nd error message:
Traceback (most recent call last):
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 741, in response
dialog.res = run_script(params)
File "C:\Program Files\GIMP 2\lib\gimp\2.0\python/gimpfu.py", line 362, in run_script
return apply(function, params)
File "C:\Users\PC\AppData\Roaming\GIMP\2.10\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)
RuntimeError: The texture source is empty. Does any selection include non-transparent pixels?
08-12-2024, 03:14 AM (This post was last modified: 08-12-2024, 03:33 AM by PixLab.)
First, because image in base64 won't work and it annoyed me to create a html file for an img src... (or just copy/past in a new tab, but I was only at my second coffee )
➤ how to upload image > https://www.gimp-forum.net/misc.php?action=help&hid=11
More seriously, now your question
This is not a "bug" if I can say that.
I did a test, as you can see below I made a transparent area, then did an "Alpha to Selection", thus selecting all the opaque except the transparent inside and got the same error
when you launched the heal selection the second time, maybe your selection got "inverted", making the "Content Sampling Width" off?
If not, please show us your image
For example: In the attached image, for example, there is a blackish smudge on her left hand. When I try to delete the smudge with Heal Selection, I get the above mentioned errors, namely:
GIMP MESSAGE: Calling error for procedure 'plug-in-resynthesizer':
The texture source is empty. Does any selection include non-transparent pixels?
and
An error occurred running python_fu_heal_selection
RuntimeError: The texture source is empty. Does any selection include non-transparent pixels?
08-13-2024, 05:38 AM (This post was last modified: 08-13-2024, 06:14 AM by PixLab.)
(08-12-2024, 01:27 PM)MrsP-from-C Wrote: If in your selection settings, there is the "Feather edges" option active ... it won't work.
Disable that option and it will work.
I just tried w/o feather edges of the selection and both worked just fine
EDIT: Wow... I did it again but with a large feather edge ➤ @MrsP-from-C thumb-up, You might have got something here If the feather edges is large it will produce that error
EDIT2: definitively MrsP-from-C did put the finger on it, if the feather edge is larger than the half of the "Context sampling width" it will produce an error
For instance if context sampling is 50, the feather is 27 should not be larger than 25/26 or you got the error
Below the very same selection, but I increased the Context sampling to 60 for the feather edge 27 to be below 30 (half of the context sampling) and it worked
All these numbers might be relative, though, but you got the idea, if an error occurs ➤ increase the context sampling width to be more than twice the feather edge of the selection, or reduce the feather edge of the selection to be less than half the number in the context sampling width.