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.
> 
> --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.
--------
"It is amazing what you can accomplish if you do 
not care who gets the credit." -- Harry S. Truman

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

Reply via email to