Re: [Gegl-developer] XML examples?



On Fri, Jan 25, 2013 at 10:30 PM, Torsten Mohr <tmohr s netic de> wrote:
Hello,

sorry if this is off-topic here, i want to use gegl as command-line with XML
graphs to process images.

Googling for "gegl xml examples" i only found ONE example, i can't imagine
that there isn't more available.

Or is there some general description on how to use the gegl operators in XML?

In the attached example (that works fine) it is not clear to me why first the
blur is mentioned and then the load.  Is there documentation available about
this?

<?xml version='1.0' encoding='UTF-8'?>
<gegl>
       <node operation='gegl:gaussian-blur'>
               <params>
                       <param name='std-dev-x'>0.999</param>
                       <param name='std-dev-y'>0.999</param>
               </params>
       </node>
       <node operation='gegl:load'>
               <params>
                       <param name='path'>../haus.png</param>
               </params>
       </node>
</gegl>


Thanks for any hints,
Torsten.


Operations are connected from bottom up. So the image goes from load
to blur. The output of a nested operation is connected to its parent's
aux. There will probably be a new xml format in the future (Bat'O
worked on it but hasn't finished it).



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