public function createImageSrc(Graph $graph)
    {
        $format = $this->format;
        if ($this->format === 'svg' || $this->format === 'svgz') {
            $format = 'svg+xml;charset=' . $graph->getAttribute('graphviz.graph.charset', 'UTF-8');
        }

        return 'data:image/' . $format . ';base64,' . base64_encode($this->createImageData($graph));
    }
public function createImageSrc(Graph $graph)
    {
        $format = $this->format;
        if ($this->format === 'svg' || $this->format === 'svgz') {
            $format = 'svg+xml;charset=' . $graph->getAttribute('graphviz.graph.charset', 'UTF-8');
        }

        return 'data:image/' . $format . ';base64,' . base64_encode($this->createImageData($graph));
    }
public function createImageSrc ( Graph $ graph ) { $ format = $ this -> format ; if ( $ this -> format === 'svg' || $ this -> format === 'svgz' ) { $ format = 'svg+xml;charset=' . $ graph -> getAttribute ( 'graphviz.graph.charset' , 'UTF-8' ) ; } return 'data:image/' . $ format . ';base64,' . base64_encode ( $ this -> createImageData ( $ graph ) ) ; }
create base64-encoded image src target data to be used for html images

@param Graph $graph graph to display
@return string
@uses GraphViz::createImageData()
create base64 - encoded image src target data to be used for html images