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

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.

batch and scripts Lauri Kaks 13 Jan 08:13
Lauri Kaks
2003-01-13 08:13:12 UTC (over 21 years ago)

batch and scripts

Hi,

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

__________________