Script-fu problem -- how to load an image
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Script-fu problem -- how to load an image | Norbert Preining | 22 Mar 10:25 |
Script-fu problem -- how to load an image | Sven Neumann | 22 Mar 13:47 |
Script-fu problem -- how to load an image | Norbert Preining | 23 Mar 09:01 |
Script-fu problem -- how to load an image | Norbert Preining | 25 Mar 15:32 |
Script-fu problem -- how to load an image
Hello!
Gimp version 2.0pre4 (debian/sid gimp1.3 1.3.27+2.0pre4)
I am trying to extend one of my scripts from an old version but cannot get gimp-file-load to work:
Here the script:
(define (script-fu-fileload filein)
(gimp-message-set-handler 1)
; Create an img and a layer
(gimp-message "1")
(gimp-message filein)
(set! my-image (gimp-file-load 1 filein filein))
(gimp-message "2"))
(script-fu-register "script-fu-fileload"
"/Script-Fu/Norb/fileload"
"Testscript"
"Norbert Preining "
"Norbert Preining"
"2004.03.17"
""
SF-FILENAME "filein" "./dummy.tiff")
But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload "\"test.tif\"") This is a development version of The GIMP. Debug messages may appear here.
INIT: gimp_load_config
Parsing '/etc/gimp/1.3/gimprc'
Parsing '/home/norbert/.gimp-1.3/gimprc'
gimp_composite: use=yes, verbose=no
supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gimp_restore
INIT: gimp_real_restore
Starting extension: 'extension_script_fu'
script-fu: 1
script-fu: "test2.jpg"
batch command: experienced an execution error.
Also, when I give the full pathname to test.tif (which exits) it doesn't work.
No idea why, but maybe someone can help me!
Best wishes and thanks for all your help
Norbert
-------------------------------------------------------------------------------
Norbert Preining Technische Universität Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
QUERRIN (n.)
A person that no one has ever heard of who unaccountably manages to
make a living writing prefaces.
--- Douglas Adams, The Meaning of Liff
Script-fu problem -- how to load an image
Hi,
Norbert Preining writes:
I am trying to extend one of my scripts from an old version but cannot get gimp-file-load to work:
Here the script: (define (script-fu-fileload filein)
(gimp-message-set-handler 1)
; Create an img and a layer
(gimp-message "1")
(gimp-message filein)
(set! my-image (gimp-file-load 1 filein filein)) (gimp-message "2"))(script-fu-register "script-fu-fileload" "/Script-Fu/Norb/fileload"
"Testscript"
"Norbert Preining "
"Norbert Preining"
"2004.03.17"
""
SF-FILENAME "filein" "./dummy.tiff")But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload "\"test.tif\"")
You need to pass all parameters to your script. You can use the PDB Browser to check how the script is actually registered. GIMP added a run-mode parameter for you. So please try this command-line instead:
gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")
Sven
Script-fu problem -- how to load an image
On Mon, 22 Mär 2004, Sven Neumann wrote:
Here the script:
(define (script-fu-fileload filein)
(gimp-message-set-handler 1)
; Create an img and a layer
(gimp-message "1")
(gimp-message filein)
(set! my-image (gimp-file-load 1 filein filein)) (gimp-message "2"))(script-fu-register "script-fu-fileload" "/Script-Fu/Norb/fileload"
"Testscript"
"Norbert Preining "
"Norbert Preining"
"2004.03.17"
""
SF-FILENAME "filein" "./dummy.tiff")But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload "\"test.tif\"")
You need to pass all parameters to your script. You can use the PDB Browser to check how the script is actually registered. GIMP added a run-mode parameter for you. So please try this command-line instead:
gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")
Same same unfortunately:
$ gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")'
This is a development version of The GIMP.
Debug messages may appear here.
INIT: gimp_load_config
Parsing '/etc/gimp/1.3/gimprc'
Parsing '/home/norbert/.gimp-1.3/gimprc'
gimp_composite: use=yes, verbose=no
supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gimp_restore
INIT: gimp_real_restore
Starting extension: 'extension_script_fu'
script-fu: 1
batch command: experienced an execution error.
So this didn't help, hmm.
Best wishes
Norbert
-------------------------------------------------------------------------------
Norbert Preining Technische Universität Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
VANCOUVER (n.)
The technical name for one of those huge trucks with whirling brushes
on the bottom used to clean streets.
--- Douglas Adams, The Meaning of Liff
Script-fu problem -- how to load an image
On Die, 23 Mär 2004, Norbert Preining wrote:
On Mon, 22 Mär 2004, Sven Neumann wrote:
Here the script:
(define (script-fu-fileload filein)
(gimp-message-set-handler 1)
; Create an img and a layer
(gimp-message "1")
(gimp-message filein)
(set! my-image (gimp-file-load 1 filein filein)) (gimp-message "2"))(script-fu-register "script-fu-fileload" "/Script-Fu/Norb/fileload"
"Testscript"
"Norbert Preining "
"Norbert Preining"
"2004.03.17"
""
SF-FILENAME "filein" "./dummy.tiff")But I cannot get it to run without error: $ gimp --no-data -i --verbose -b '(script-fu-fileload "\"test.tif\"")
You need to pass all parameters to your script. You can use the PDB Browser to check how the script is actually registered. GIMP added a run-mode parameter for you. So please try this command-line instead:
gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")
Same same unfortunately:
$ gimp --no-data -i --verbose -b '(script-fu-fileload 0 "\"test.tif\"")' This is a development version of The GIMP. Debug messages may appear here.INIT: gimp_load_config Parsing '/etc/gimp/1.3/gimprc'
Parsing '/home/norbert/.gimp-1.3/gimprc' gimp_composite: use=yes, verbose=no
supported by gimp_composite: +mmx +sse -sse2 -3dnow -altivec -vis INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gimp_restore
INIT: gimp_real_restore
Starting extension: 'extension_script_fu' script-fu: 1batch command: experienced an execution error.
So this didn't help, hmm.
I tried with calling the plugin from within gimp UI, and it works without any problem. So I don't see why it doesn't work here. Any more suggestions what I can do? Is there the possibility to make gimp output more debug stuff?
Best wishes
Norbert
-------------------------------------------------------------------------------
Norbert Preining Technische Universität Wien
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
IBSTOCK (n.)
Anything used to make a noise on a corrugated iron wall or
clinker-built fence by dragging it along the surface while walking
past it. 'Mr Bennett thoughtfully selected a stout ibstock and left
the house.' - Jane Austen, Pride and Prejudice, II.
--- Douglas Adams, The Meaning of Liff