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



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

Great... many thanks you. I'll try it today or tomorrow evening and will say. :]

Walda

-- 
waldauf (via www.gimpusers.com/forums)


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