This is pure madness. The following line works perfectly in GIMP if used in a 
simple script-fu for currently loaded image.

(script-fu-fuzzy-border image drawable '(255 255 255) 120 TRUE 9 FALSE 0 FALSE 
TRUE)

The very same line with an added RUN-NONINTERACTIVE parameter fails if used in 
a batch mode script picked from http://www.gimp.org/tutorials/Basic_Batch/. I 
know that the error is in that line "script-fu-fuzzy-border", because if I 
remove the line, there are no errors. Here is the whole script, whose single 
purpose is to run "script-fu-fuzzy-border" over all jpg files in a directory:

  (define (xxx pattern)
  (let* ((filelist (cadr (file-glob pattern 1))))
    (while (not (null? filelist))
           (let* ((filename (car filelist))
                  (image (car (gimp-file-load RUN-NONINTERACTIVE
                                              filename filename)))
                  (drawable (car (gimp-image-get-active-layer image))))

           (script-fu-fuzzy-border RUN-NONINTERACTIVE image drawable '(255 255 
255) 120 TRUE 9 FALSE 0 FALSE TRUE)


             (gimp-file-save RUN-NONINTERACTIVE
                             image drawable filename filename)
             (gimp-image-delete image))
           (set! filelist (cdr filelist)))))

Please help me.

-- 
Milos Prudek
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to