Niels Giesen wrote:
> Sorry, not giving the raw code, but code interspersed with comments.
Great. Code would probably have been enough, but comments are nice to
have as well.
<snip as I do not use emacs and do not intend to learn it just to be
able to run a script>
> If you do not want to use that, in the development thereof, I have
> searched the web, and found the following resources to be of use:
>
> http://docs.gimp.org/en/gimp-using-script-fu-tutorial.html
> http://www.ve3syb.ca/wiki/doku.php?id=software:sf:start
> http://mitpress.mit.edu/sicp/full-text/book/book.html
> http://tech.groups.yahoo.com/group/script-fu/
I looked, but found not any example in running things from bash.
I know the way my mind works might be at fault, but I am not very much
able to use books (or man pages) to learn things from.
If anything, the things above confused me more then showed me how to do
things.
The best way I learn things and especialy code is by copy and pasting
and then change one thing and see what happens. Reverse engineering one
might call it, others will notice how little kids learn that way as
well.
<snip>
> Another way of debugging your scripts is turning tracing on, by issuing
> (tracing TRUE), so, for instance:
>
> gimp -ic -b "(begin (tracing TRUE) (your code ... ) (gimp-quit
RUN-NONINTERACTIVE))"
>
> and you can turn it off with (tracing FALSE).
OK. This becomes interesting.
<snip code>
> From bash:
> gimp -i -b "(begin (border-fuzz \"foo.png\" '(0 0 0) 50 0 16 FALSE 1
FALSE) (gimp-quit RUN-NONINTERACTIVE))"
>
> Hope this is of use.
Very much so. I am now connected over ssh, so no GUI, but I will be
checking this out this weekend. This is the information as it should
have been presented on the docs.
I will give feedback later on how things went. With your permission, I
will put the information online as well. I willeven try to get it on
docs.gimp.org if you allow me.
houghi
--
The whole principle [of censor****p] is wrong. It's like demanding that
grown men live on skim milk because the baby can't have steak.
-- Robert A. Heinlein in "The Man Who Sold the Moon"


|