• apply fillter on group of images

    From Arthur T.@21:1/5 to Marek Owsikowski on Wed Jul 12 21:56:19 2017
    In
    Message-ID:<2d93df87-2a35-421e-a692-6d0f9f23970f@googlegroups.com>,
    Marek Owsikowski <owsikowski@gmail.com> wrote:

    I'd like to apply a filer on thousands of images.

    The general consensus is that batch mode is much easier in
    Imagemagick. If you can do the equivalent of your filter there, it's
    easy to expand it to the thousands of images.

    From my quotes file (source unknown, but probably from this
    newsgroup):

    [Gimp's] batch mode uses an obscure language that nobody in
    their right mind should have to ever learn.

    --
    Arthur T. - ar23hur "at" pobox "dot" com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marek Owsikowski@21:1/5 to All on Wed Jul 12 18:35:35 2017
    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...

    BTW it's really annoying that the most powerful feature I have ever seen on a graphics processor is messed up as in this case :( real pity

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pete@21:1/5 to owsikowski@gmail.com on Fri Jul 28 06:47:40 2017
    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)