| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,007
» Latest member: Ismaelhib
» Forum threads: 7,742
» Forum posts: 42,070
Full Statistics
|
| Latest Threads |
Very, very nice startup t...
Forum: General questions
Last Post: mrkid
Yesterday, 04:37 PM
» Replies: 0
» Views: 99
|
Why does HTML/css scale i...
Forum: General questions
Last Post: Tas_mania
12-17-2025, 07:20 PM
» Replies: 1
» Views: 182
|
Path autocurves plugin (G...
Forum: Extending the GIMP
Last Post: InquisitiveAsHell
12-17-2025, 07:40 AM
» Replies: 6
» Views: 653
|
Transparent Background Ad...
Forum: General questions
Last Post: Kramskry
12-16-2025, 08:52 PM
» Replies: 2
» Views: 324
|
Inside drop shadow maybe?...
Forum: General questions
Last Post: denzjos
12-16-2025, 04:45 PM
» Replies: 2
» Views: 249
|
gexport: Make-like tool f...
Forum: Extending the GIMP
Last Post: JohnHammersley
12-16-2025, 03:42 PM
» Replies: 0
» Views: 135
|
Help with colour matching
Forum: General questions
Last Post: denzjos
12-13-2025, 05:05 PM
» Replies: 1
» Views: 249
|
Problem posting an update...
Forum: Gimp-Forum.net
Last Post: Scallact
12-13-2025, 10:29 AM
» Replies: 14
» Views: 803
|
GIMP 3.x Python Plugin Is...
Forum: Scripting questions
Last Post: Ofnuts
12-13-2025, 08:53 AM
» Replies: 1
» Views: 247
|
Gimp larger than Screen
Forum: General questions
Last Post: sallyanne
12-13-2025, 03:53 AM
» Replies: 2
» Views: 280
|
|
|
| GIMP 3.0.4 Script-Fu Batch Issue: SF-TOGGLE Without Run-Mode |
|
Posted by: AgHornet - 06-27-2025, 10:20 AM - Forum: Extending the GIMP
- No Replies
|
 |
Hi
Hoping someone might be able to help. I've tried so many ways to get this to register and run this simple example in batch mode on gimp 3.0.4
This particular example I am able to register but when its run it fails with a parameter mismatch.
If I change SF-TOGGLE to something else like SF-INT it does not register.
I've tried add run-mode the param definition, command line and registry but no combination seems to work. My understanding for 3.x.x is that I dont need to add it as it is automatically added.
I run this from a windows 11 command line.
In the case of attempts that don't register (I open GUI go to Help > Plug in Browser and search for my script) I don't see any errors in the console (Windows > Dockable Dialogs > Error console) relating to registration problems.
I have put the script in ..Roaming\GIMP\3.0\plug-ins\test-args
Minimal Test Case That Failed
#!/usr/bin/env gimp-script-fu-interpreter-3.0
(define (script-fu-test-args arg1 arg2 arg3)
(script-fu-use-v3)
(gimp-message (string-append
"Arg1 (Toggle): " (if arg1 "TRUE" "FALSE") "\n"
"Arg2 (String): " arg2 "\n"
"Arg3 (String): " arg3 "\n"))
)
(script-fu-register
"script-fu-test-args"
"Test Args"
"Test argument passing"
"Author"
"2024"
""
SF-TOGGLE "Toggle Test" TRUE
SF-STRING "First String" ""
SF-STRING "Second String" ""
)
Command Used
gimp -i --batch-interpreter=plug-in-script-fu-eval -b "(script-fu-test-args TRUE \"test1\" \"test2\")" -b "(gimp-quit 0)"
Error output
batch command experienced an execution error:
Error: in script, expected type: numeric for argument 2 to script-fu-test-args
Stopping at failing batch command [0]: (script-fu-test-args TRUE "test1" "test2")
Expected Behaviour
Script registers with one toggle and two string parameters
Batch mode should accept: Boolean TRUE/FALSE for the toggle. Two string arguments.
Should output the three parameter values
Observed Behaviour
Script registers successfully in GUI
Appears in menu
Batch mode fails with type mismatch for argument 2
Key Differences from GIMP 2.x
3.x seems to:
Handle the toggle parameter differently
Require numeric values even for registered strings
Have stricter type checking in batch interpreter
(Tested on Windows 11, GIMP 3.0.4)
|
|
|
| Technique for removing overhead cables from images |
|
Posted by: LateJunction - 06-22-2025, 08:10 PM - Forum: General questions
- Replies (16)
|
 |
To remove overhead cables in an image in Photoshop, I use the path and spot healing tools with following process, which is easy and accurate:
- create a new path from the paths panel
- draw a path over one of the cables with the pen tool
- with the new path layer selected open the spot healing brush, setting a suitable width, 0% hardness and set the ‘proximity match ‘ option on
- select the stroke path icon; a healing brush stroke appears on top of the path; PS analyses and then removes the stroke and heals the underlying image
- delete the path
Can a similar procedure be used in GIMP? If not what is the most effective way of editing out such cables in the image?
|
|
|
|