set dot_text [wf_generate_dot_representation workflow]
set tmpfile [wf_graphviz_dot_exec -to_file -output gif $dot_text]
set width_and_height ""
if { ![catch{ set image_size [ns_gifsize $tmpfile]} error]}{
if { ![empty_string_p $image_size]}{
set width_and_height "width=[lindex$image_size 0] height=[lindex$image_size 1]"
}
}
ad_set_client_property wf wf_net_tmpfile $tmpfile
set workflow_img_tag "<img src=\"[im_workflow_url]/workflow-gif?[export_url_vars tmpfile]\" border=0 $width_and_height alt=\"Graphical representation of the process network\">"
set workflow_img_tag "<img src=\"/[im_workflow_url]/workflow-gif?[export_url_vars tmpfile]\" border=0 $width_and_height alt=\"Graphical representation of the process network\">"