Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back in redirection for small images using GraphViz library #2

Open
mgrdcm opened this issue Feb 7, 2011 · 0 comments
Open

Add back in redirection for small images using GraphViz library #2

mgrdcm opened this issue Feb 7, 2011 · 0 comments

Comments

@mgrdcm
Copy link
Owner

mgrdcm commented Feb 7, 2011

The original version of II supported a redirect to the Google Chart API for small images. I took out the support because:

  1. It wouldn't work with JPG, only PNG
  2. I couldn't get the vertical centering to work

However, Google Charts now supports GraphViz chart type which can solve the #2 problem easily. For example:

http://chart.apis.google.com/chart?cht=gv&chs=300x300&chl=digraph{%22hello\nthere%22[shape=plaintext,%20fontsize=10,%20fontcolor=blue];}

There are currently a couple problems:

  1. GraphViz is experimental
  2. Only supports 'point' sizes for fonts, rather than pixels
  3. Colors seem to need to be a name and #hex values aren't working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant