Joerg Beyer | 28 Aug 2011 10:34
Picon

having trouble with gegl_node_to_xml

hello,

I am having trouble to save gegl operations to repeat them later. I
think, that gegl_node_to_xml is the operation I am looking for, but this
can be wrong.

I wrote this small program:

#include <stdio.h>
#include <gegl.h>

gint
main (gint argc,
      gchar **argv)
{
    GeglNode *gegl, *gn_load, *gn_save, *gn_op;
    gchar* xmltext;

    g_thread_init (NULL);
    gegl_init (&argc, &argv);

    gegl = gegl_node_new ();
    gn_load = gegl_node_new_child(gegl, "operation", "gegl:load",
"path", "bsp-900x600.jpg", NULL);
    gn_save = gegl_node_new_child(gegl, "operation", "gegl:jpg-save",
"path", "out.jpg", NULL);
    gn_op   = gegl_node_new_child(gegl, "operation",
"gegl:unsharp-mask", "std-dev", 1.2, "scale", 8.0, NULL);
    gegl_node_link_many (gn_load, gn_op, gn_save, NULL);
    gegl_node_process (gn_save);
(Continue reading)

Jon Nordby | 28 Aug 2011 12:40
Picon
Gravatar

Re: having trouble with gegl_node_to_xml

On 28 August 2011 10:34, Joerg Beyer <j.beyer <at> web.de> wrote:
> hello,
>
> I am having trouble to save gegl operations to repeat them later. I
> think, that gegl_node_to_xml is the operation I am looking for, but this
> can be wrong.
>
> I wrote this small program:
>
> #include <stdio.h>
> #include <gegl.h>
>
> gint
> main (gint argc,
>      gchar **argv)
> {
>    GeglNode *gegl, *gn_load, *gn_save, *gn_op;
>    gchar* xmltext;
>
>    g_thread_init (NULL);
>    gegl_init (&argc, &argv);
>
>
>    gegl = gegl_node_new ();
>    gn_load = gegl_node_new_child(gegl, "operation", "gegl:load",
> "path", "bsp-900x600.jpg", NULL);
>    gn_save = gegl_node_new_child(gegl, "operation", "gegl:jpg-save",
> "path", "out.jpg", NULL);
>    gn_op   = gegl_node_new_child(gegl, "operation",
> "gegl:unsharp-mask", "std-dev", 1.2, "scale", 8.0, NULL);
(Continue reading)

Joerg Beyer | 28 Aug 2011 13:36
Picon

Re: having trouble with gegl_node_to_xml

Am 28.08.2011 12:40, schrieb Jon Nordby:
> On 28 August 2011 10:34, Joerg Beyer <j.beyer@...> wrote:
>> hello,
>>
>> I am having trouble to save gegl operations to repeat them later. I
>> think, that gegl_node_to_xml is the operation I am looking for, but this
>> can be wrong.
>>
>> I wrote this small program:
>>
>> #include <stdio.h>
>> #include <gegl.h>
>>
>> gint
>> main (gint argc,
>>      gchar **argv)
>> {
>>    GeglNode *gegl, *gn_load, *gn_save, *gn_op;
>>    gchar* xmltext;
>>
>>    g_thread_init (NULL);
>>    gegl_init (&argc, &argv);
>>
>>
>>    gegl = gegl_node_new ();
>>    gn_load = gegl_node_new_child(gegl, "operation", "gegl:load",
>> "path", "bsp-900x600.jpg", NULL);
>>    gn_save = gegl_node_new_child(gegl, "operation", "gegl:jpg-save",
>> "path", "out.jpg", NULL);
>>    gn_op   = gegl_node_new_child(gegl, "operation",
(Continue reading)

Jon Nordby | 28 Aug 2011 13:59
Picon
Gravatar

Re: having trouble with gegl_node_to_xml

On 28 August 2011 13:36, Joerg Beyer <j.beyer <at> web.de> wrote:
> Am 28.08.2011 12:40, schrieb Jon Nordby:
>> On 28 August 2011 10:34, Joerg Beyer <j.beyer <at> web.de> wrote:
>>> hello,
>>>
>>> I am having trouble to save gegl operations to repeat them later. I
>>> think, that gegl_node_to_xml is the operation I am looking for, but this
>>> can be wrong.
>>>
>>> I wrote this small program:
>>>
>>> #include <stdio.h>
>>> #include <gegl.h>
>>>
>>> gint
>>> main (gint argc,
>>>      gchar **argv)
>>> {
>>>    GeglNode *gegl, *gn_load, *gn_save, *gn_op;
>>>    gchar* xmltext;
>>>
>>>    g_thread_init (NULL);
>>>    gegl_init (&argc, &argv);
>>>
>>>
>>>    gegl = gegl_node_new ();
>>>    gn_load = gegl_node_new_child(gegl, "operation", "gegl:load",
>>> "path", "bsp-900x600.jpg", NULL);
>>>    gn_save = gegl_node_new_child(gegl, "operation", "gegl:jpg-save",
>>> "path", "out.jpg", NULL);
(Continue reading)

Joerg Beyer | 28 Aug 2011 22:07
Picon

Re: having trouble with gegl_node_to_xml

Am 28.08.2011 13:59, schrieb Jon Nordby:
> On 28 August 2011 13:36, Joerg Beyer <j.beyer@...> wrote:
>> Am 28.08.2011 12:40, schrieb Jon Nordby:
>>> On 28 August 2011 10:34, Joerg Beyer <j.beyer@...> wrote:
>>>> hello,
>>>>
>>>> I am having trouble to save gegl operations to repeat them later. I
>>>> think, that gegl_node_to_xml is the operation I am looking for, but this
>>>> can be wrong.
>>>>
>>>> I wrote this small program:
>>>>
>>>> #include <stdio.h>
>>>> #include <gegl.h>
>>>>
>>>> gint
>>>> main (gint argc,
>>>>      gchar **argv)
>>>> {
>>>>    GeglNode *gegl, *gn_load, *gn_save, *gn_op;
>>>>    gchar* xmltext;
>>>>
>>>>    g_thread_init (NULL);
>>>>    gegl_init (&argc, &argv);
>>>>
>>>>
>>>>    gegl = gegl_node_new ();
>>>>    gn_load = gegl_node_new_child(gegl, "operation", "gegl:load",
>>>> "path", "bsp-900x600.jpg", NULL);
>>>>    gn_save = gegl_node_new_child(gegl, "operation", "gegl:jpg-save",
(Continue reading)


Gmane