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"
      "Norbert Preining <[EMAIL PROTECTED]>"
      "Norbert Preining"
      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

No idea why, but maybe someone can help me!

Best wishes and thanks for all your help


Norbert Preining <preining AT logic DOT at>         Technische Universitšt Wien
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
A person that no one has ever heard of who unaccountably manages to
make a living writing prefaces.
                        --- Douglas Adams, The Meaning of Liff
Gimp-user mailing list

Reply via email to