Re: [Gimp-user] GEGL - run C2g batch in command line



On Mon, Jan 23, 2017 at 10:55 AM, waldauf <forums gimpusers com> wrote:
Hello folks!

Is there some way how to run Tools/GEGL/C2G convertion in command line like
batch?

For example - I have 10 pictures which I want to convert with some params. This
conversion takes a lot of time when you have to load picture into Gimp, set C2G
params and convert. I would like to convert it trough night like batch


In recent GEGL releases there is an underdocumented commandline
one-liner shorthand to avoid creating XML documents:

For instance:

gegl input.jpg -o output.png -- c2g radius=1300 samples=4 iterations=23 vignette

will apply the c2g operation with the following paramteres, followed
by the vignette filter with default parameters. To make this apply to
multiple images one could for instance do:

mkdir /tmp/out ; for a in *.jpg; do echo $a; gegl $a -o
/tmp/out/$a.png -- gegl:c2g radius=1300 samples=4 iterations=90 ; done

GEGL will complain if you specify properties not valid for a given
operation and print the exisiting properties that can be assigned. If
the gegl: prefix is avoided on an operation gegl tries with gegl:
pre-pended.

/pippin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]