open Printf
+type attribute = string * string (* <key, value> pair *)
+
let png_flags = "-Tpng"
let map_flags = "-Tcmapx"
ignore (Sys.command (sprintf "%s %s %s > %s"
gviz_cmd png_flags fname tmp_png));
image#set_file tmp_png;
+ HExtlib.safe_remove tmp_png;
let tmp_map = tempfile () in
ignore (Sys.command (sprintf "%s %s %s > %s"
gviz_cmd map_flags fname tmp_map));
self#load_map tmp_map;
- HExtlib.safe_remove tmp_png
+ HExtlib.safe_remove tmp_map
method private load_map fname =
let areas = ref [] in