I simplified the above problem into the following script:

 (define (fuzzy-border-single filename)
   (let* ((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)))

This script should be able to run with this command: 

gimp -i -b '(fuzzy-border-single "foo.jpg")' '(gimp-quit 0)'

But it produces only this:
batch command: experienced an execution error.

And it operates correctly if the script-fu-fuzzy-border line is replaced with   
        
(plug-in-unsharp-mask RUN-NONINTERACTIVE image drawable 1 1 1)


-- 
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