scheme - Creating a new image with scriptfu -
i'm experimenting script-fu, trying teach myself how use it. have following basic script, thought create, display, new image:
(define (script-fu-test) (let* ( (image (car (gimp-image-new 10 10 rgb))) ) (gimp-display-new image) (gimp-context-pop) ) )
i'm calling script so:
./gimp-2.8 -i -b '(script-fu-test)'
and it's failing, so:
batch command experienced execution error: error: ( : 32662) procedure execution of gimp-display-new failed
anyone have hint might messing here?
i'm running on mac os x (ie /applications/gimp.app/contents/macos/gimp-2.8)
when try use simplified version of code, following results:
$ gimp -b '(gimp-display-new (car (gimp-image-new 10 10 rgb)))' batch command executed $ gimp -i -b '(gimp-display-new (car (gimp-image-new 10 10 rgb)))' batch command experienced execution error
note in first case there's no -i
, user interface available. in second case, there's -i
, there's no user interface. can't use gimp-display-new
without interface. can't use gimp-display-new
in no-interface mode mentioned in:
re: script can't connect perl server on gimp-perl mailing list
make sure start gimp in batch mode line:
gimp --no-interface --batch '(extension-perl-server 1 0 0)' &
but means can't gimp-display-new, extremely useful debugging. use interactive gimp when writing new image generation code, , --no-interface during production.
- the "linux latex-pdf how-to" udo schuermann, says:
note, "1" first argument in commands refers fact script run in non-interactive mode. i've commented out (gimp-display-new img) command; if ran in interactive mode not prompt various parameters produce image window show result. not want bother visible stuff , interactive operations in project. onwards go:"
Comments
Post a Comment