(void) AcquireUniqueFilename(read_info->filename);
(void) FormatLocaleString(command,MaxTextExtent,"-Tsvg -o%s %s",
read_info->filename,image_info->filename);
+#if !defined(WITH_CGRAPH)
+ graph=agread(GetBlobFileHandle(image));
+#else
graph=agread(GetBlobFileHandle(image),(Agdisc_t *) NULL);
+#endif
if (graph == (graph_t *) NULL)
return ((Image *) NULL);
option=GetImageOption(image_info,"dot:layout-engine");
gvLayout(graphic_context,graph,(char *) option);
gvRenderFilename(graphic_context,graph,(char *) "svg",read_info->filename);
gvFreeLayout(graphic_context,graph);
+ agclose(graph);
/*
Read SVG graph.
*/