| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,020
» Latest member: AjWadd
» Forum threads: 7,749
» Forum posts: 42,102
Full Statistics
|
| Latest Threads |
Too many fonts - where ar...
Forum: General questions
Last Post: AdmFubar
1 hour ago
» Replies: 2
» Views: 168
|
an iOS app that assists p...
Forum: Other graphics software
Last Post: zzh
Yesterday, 01:10 PM
» Replies: 5
» Views: 584
|
Cropping Image
Forum: General questions
Last Post: rinaldop
12-25-2025, 01:17 PM
» Replies: 4
» Views: 246
|
Alivecolors
Forum: Other graphics software
Last Post: denzjos
12-25-2025, 08:27 AM
» Replies: 0
» Views: 102
|
gimp 3 and 8bf files
Forum: Extending the GIMP
Last Post: denzjos
12-24-2025, 02:03 PM
» Replies: 0
» Views: 135
|
Preferences/Folders shows...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: programmer_ceds
12-24-2025, 10:08 AM
» Replies: 5
» Views: 3,064
|
Problems with AppImages.
Forum: Installation and usage
Last Post: teapot
12-23-2025, 07:45 PM
» Replies: 2
» Views: 367
|
Why am'I fighting with GI...
Forum: Linux and other Unixen
Last Post: NetWeeZurd
12-23-2025, 01:44 AM
» Replies: 2
» Views: 225
|
Can tooltip display time ...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: NetWeeZurd
12-23-2025, 01:40 AM
» Replies: 4
» Views: 1,337
|
Problem posting an update...
Forum: Gimp-Forum.net
Last Post: Scallact
12-21-2025, 10:19 PM
» Replies: 19
» Views: 1,069
|
|
|
| Script-Fu hanging after "Batch command successfully executed" |
|
Posted by: JmurrayGa - 06-26-2020, 10:03 PM - Forum: Extending the GIMP
- Replies (2)
|
 |
So this is a simplified command that is having the same issue
It runs the gimp-console executable but it does not seem to actually run any of the code inside -b argument.
This line below simply attempts to close the gimp console window but it simply hangs at "batch command executed successfully"
Any help would be appreciated!
Update Below
Code:
C:\Users\james>gimp-console-2.10.exe -idfc -b '(gimp-quit 0)' --console-messages --verbose | quit
'quit' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\james>gimp-console-2.10.exe -idfc -b '(gimp-quit 0)' --console-messages --verbose
Parsing 'C:\Program Files\GIMP 2\etc\gimp\2.0\gimprc' for configured language.
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\gimprc' for configured language.
No language property found.
INIT: gimp_load_config
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\unitrc'
Parsing 'C:\Program Files\GIMP 2\etc\gimp\2.0\gimprc'
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\gimprc'
INIT: gimp_initialize
INIT: gimp_real_initialize
Parsing 'C:\Program Files\GIMP 2\lib\gimp\2.0\interpreters\default.interp'
Parsing 'C:\Program Files\GIMP 2\lib\gimp\2.0\interpreters\pygimp.interp'
Parsing 'C:\Program Files\GIMP 2\lib\gimp\2.0\environ\default.env'
Parsing 'C:\Program Files\GIMP 2\lib\gimp\2.0\environ\pygimp.env'
INIT: gimp_restore
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\parasiterc'
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\colorrc'
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\templaterc'
INIT: gimp_real_restore
Parsing 'C:\Users\james\AppData\Roaming\GIMP\2.10\pluginrc'
Querying plug-in: 'C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-rawtherapee\file-rawtherapee.exe'
Querying plug-in: 'C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-darktable\file-darktable.exe'
Initializing plug-in: 'C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-rawtherapee\file-rawtherapee.exe'
Initializing plug-in: 'C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\file-darktable\file-darktable.exe'
Writing 'C:\Users\james\AppData\Roaming\GIMP\2.10\pluginrc'
Starting extension: 'extension-script-fu'
Plug-in "script-fu.exe"
(C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\script-fu\script-fu.exe) is installing procedure "flipHorizontal" with a full menu path "<Toolbox>/Xtns/User Scripts/Jmm/flipHorizontal" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu.exe"
(C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\script-fu\script-fu.exe) is installing procedure "MakeStarWarsFigurine" with a full menu path "<Toolbox>/Xtns/User Scripts/Jmm/MakeStarWarsFigurine" as menu label, this deprecated and will be an error in GIMP 3.0
Plug-in "script-fu.exe"
(C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\script-fu\script-fu.exe) is installing procedure "makeTransparentBackground" with a full menu path "<Toolbox>/Xtns/User Scripts/Jmm/makeTransparentBackground" as menu label, this deprecated and will be an error in GIMP 3.0
No batch interpreter specified, using the default 'plug-in-script-fu-eval'.
batch command executed successfully
My issue was the use of single quotes around my code in -b.
I changed them to double quotes and it worked but what do I use to text qualify my function parameters? I was using double quotes but that seems to terminate the script early.
|
|
|
| script-fu - how to refer to the active image? |
|
Posted by: stabilo - 06-26-2020, 04:36 AM - Forum: Extending the GIMP
- Replies (10)
|
 |
Hi, I'm a newbie. I can't figure out how to refer to the active image in a non-interactive script. The example scripts I find all refer to either a new image, or an image loaded from disk, or looping through the image list, or assuming you're working on the rightmost image, or the image comes as a parameter from the dialog (for interactive scripts). I haven't been successful in locating an example that just uses an already opened active image.
So if i have an image open and active, and I want a non-interactive script to reduce opacity of that selected image with a fixed amount and then save the image, how do i refer to the image (and drawable)?
tnx!
|
|
|
|