Saul Goode wrote, On 11/14/2006 01:08 AM:
I think it is just a matter of you having to flatten the image before
calling 'script-fu-round-corners' (which does not accept images with an
alpha channel).


Von: Gene Smith <[EMAIL PROTECTED]>


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.


How do I put the call to gimp_image_flatten() in my script. Everything I try still gives the "experience an exec error" message. Last thing tried:

(define (round-corners filename)
(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
          (drawable (car (gimp-image-get-active-layer image))))
     (image (gimp_image_flatten(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)))


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

Reply via email to