GIMP Script-fu to print an image?
I'm not a Script-fu expert but I did manage to get a Script-fu script to at least not throw up any errors. However, it also doesn't work.
I've written a bash script to use gphoto2 and imagemagick to snap a picture, download, rotate and crop it ready for print. I'd like to automate the final step and have The GIMP or some other program print it.
My script-fu script is:
(define (printshot filename)
(let* ((image (car(gimp-file-load RUN-NONINTERACTIVE filename filename)))
(gimp-print-gtk RUN-NONINTERACTIVE image)
and my bash script to call it is:
gimp -i -b '(printshot $1)' -b '(gimp-quit)'
I know it's executing the script-fu script because I have received error messages when I do something invalid in it. However, I don't get any output. I get the same thing when I run it from the Script-fu console. It seems to execute but doesn't print anything.
What am I doing wrong?
Last edited by garydale; 12-08-2010 at 06:51 PM.
Reason: corrected typos