Michael Schumacher wrote, On 11/13/2006 11:54 AM:
Von: Gene Smith <[EMAIL PROTECTED]>

Thank, I did see that page. But I just want to run an existing "scrip-fu" like this:

This is exactly what the tutorials is about.
gimp -i -d -b '(script-fu-round-corners RUN-NONINTERACTIVE "./white-shawl.jpg" -1 15 TRUE 8 8 15 TRUE FALSE)' '(gimp-quit 0)'

and not sure what to put in for the first 3 parameter of the round-corners script. I think the first one, RUN-NONINTERACTIVE, is right. The next two, image and drawable, I am not sure what to put in (possibly I need to call drawable?).

You have to put the call to the script at the right place - this is where the 
"(plug-in-unsharp-mask RUN-NONINTERACTIVE image drawable radius amount 
threshold)" is called in the example.


I made this script from the example and put in ~/.gimp-2.2/scripts/round-corners.scm:

(define (round-corners filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
          (drawable (car (gimp-image-get-active-layer image))))
     (script-fu-round-corners RUN-NONINTERACTIVE
                           image drawable 15 TRUE 8 8 15 TRUE FALSE)
     (set! drawable (car (gimp-image-get-active-layer image)))
     (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
     (gimp-image-delete image)))

and run it for a image file:

gimp -i -b '(round-corners "/home/gene/product_images/white-shawl.png")' '(gimp-quit 0)'

No batch interpreter specified, using the default 'plug_in_script_fu_eval'.
batch command: experienced an execution error.

--verbose doesn't say more.

When I run in Script-Fu Console:

=> (round-corners "/home/gene/product_images/white-shawl.jpg")
ERROR: Procedural database execution failed:
    (gimp_image_width 1)

I still must be doing something wrong.


Gimp-user mailing list

Reply via email to