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