In article <
2d93df87-2a35-421e-a692-6d0f9f23970f@googlegroups.com>,
Marek Owsikowski <
owsikowski@gmail.com> wrote:
Hi,
I'd like to apply a filer on thousands of images.
I spent 2 hours on reading docs and I am simply too stupid to do this :(
I got to the point that I am able to find the filter on the script-fu console.
However, the script needs some "image" parameter.
What I basically want to do is gimp -b "(myfilter option1 option 2)" *.jpg >This should be a oneliner, but from the docs it sounds to be really difficult...
Full disclosure here... I haven't *any* experience with script-fu. (:-/)
I've so far just been reading docs because I'm wondering how it might be
useful to me. However from my reading I have a suggestion or two.
First, I discovered 'python-fu' as an alternative to the scheme scripts
used by script-fu. Could be a lot less agony if you're writing your own filters, but not much use if you want to use an existing one.
While investigating that, though, I came across a tutorial by IBM.
<
https://www.ibm.com/developerworks/library/os-autogimp/index.html >
It's not the greatest -- has a major typo or two, but they do talk about exactly what you want to do -- apply their example filter to all the
files in a folder. The example has no special features for that; they
just apply it in the command line as you want to do. They do it simply
by using a pattern in the scheme command (and for some reason add a
terminating command. Translating from your example above:
gimp -i -b '(myfilter "*.png" option1 option2)' -b '(gimp-quit 0)'
No idea if that would work for you, but maybe worth trying!
-- Pete --
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)