28 Aug 2011 10:34
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)
RSS Feed