Extension talk:Graphviz (Dynamic Cache)

From MediaWiki.org
Jump to: navigation, search

[edit] GraphViz

Please compare Extension:Graphviz with Extension:GraphViz (capital 'V'). -- Tim Chambers 1E4AF729D5CEFFD0

[edit] Shorting the URLs

I've set up Cygon's Graphviz extension and it works great. However for large graphs, I noticed that the URLs were getting too large for IIS.

I changed the code to call gzdeflate before base64_encode and to call gzinflate after base64_decode. Now the URLs are much shorter, on the order of half what they were.

Here are the two changes, it should be easy to see where they belong:

gzinflate( base64_decode($_GET["graph"]) )
$encodedSrc = base64_encode( gzdeflate($src) ); 

--63.76.1.249 22:24, 19 October 2005 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox