10 GeglNode
*gegl
, *load_file
, *save_file
;
12 gegl_init (&argc
, &argv
);
18 g_print ("\nusage: %s in.png out.gegl\n\nCreates a GeglBuffer from an image file.\n\n", argv
[0]);
22 gegl
= gegl_node_new ();
23 load_file
= gegl_node_new_child (gegl
,
24 "operation", "gegl:load",
27 save_file
= gegl_node_new_child (gegl
,
28 "operation", "gegl:buffer-sink",
32 gegl_node_link_many (load_file
, save_file
, NULL
);
33 gegl_node_process (save_file
);
36 gegl_buffer_save (buffer
, argv
[2], NULL
);