RSS/Atom feed Twitter
Site is read-only, email is disabled

Fwd: Re: batch and scripts

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Fwd: Re: batch and scripts Joel 14 Jan 10:49
Joel
2003-01-14 10:49:35 UTC (over 21 years ago)

Fwd: Re: batch and scripts

Does the script work interactively? When you are in the Gimp, can you run it with no problems?

If so, give this a shot:

gimp --no-data -c -i -b "(begin (script-fu-asc-2-img-b 1 \"$i\" \"-*-Charter-*-r-*-*-24-*-*-*-p-*-*-*\" \"$size\" (0 0 0) 1 (100 130 215) 120 \"$filename\")(gimp-quit 0))"

--Joel

i'm quite new to scheme programming and spent a lot of time learning it, but with no big success. i need to write a script, that converts text from a file to image and then saves it. I used a slightly modified asc_2_image created by Chris Gutteridge (it came with GIMP). i commented out (gimp-display-new) and (gimp-display-flush) and put a line at the end of the script to save the image:

(gimp-file-save 1 theImage theDrawable outfile outfile)

outfile is the filename given to asc-2-image function:

(define (script_fu_asc_2_img_b inFile inFont
inFontSize inTextColor inTrans inBackColor inBufferAmount outFile)

but it's not working. i wrote a shell script that starts gimp with new arguments:

gimp --no-data --no-splash-image -b /'(script-fu-asc-2-img-b 1 "$i" "-*-Charter-*-r-*-*-24-*-*-*-p-*-*-*" "$size" (0 0 0) 1 (100 130 215) 120 "$filename")/' /'(gimp-quit)/'

what is wrong with that?

thank you