Installing More Image Formats

I recently installed Graphiz on CentOS using the rpm on this page: http://www.graphviz.org/Download_linux_rhel.php

When trying to run dot -Tbmp I find that it isn't capable of generating any images. It just says:

Format: "bmp" not recognized. Use one of: canon cmap cmapx cmapx_np dot eps fig gv imap imap_np ismap pic plain plain-ext pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4

Is there any way to install more image types so I can actually create image files with this?

Just so I don't lead myself down the wrong path, let me explain why I want to do this. What I'm trying to do is create an HTML page with clickable nodes that I can design to take me to another page. I read on the last answer here: http://stackoverflow.com/questions/6020615/interactive-graphviz-graphs-i... that this could be done by creating an image and then overlaying a map in the HTML page.

Re: HTML page with clickable nodes

If you are creating a bitmap images (-Tpng, -Tgif, -Tjpg, ...) then you can make it clickable on a web page by using a map,  but this isn't needed for -Tsvg images as the SVG format includes syntax for "<a>" anchors around arbitrary graphical objects.   Dot  supports this fully through -Tsvg (but not, unfortunately, through -Tsvg:cairo).

re: Installing More Image Formats

You need to configure yum for the EPEL repo for some of the dependencies:

     http://fedoraproject.org/wiki/EPEL

or, for some quick instructions, see:

     http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-r...

 

re: more image formats

It looks like you have only installed the base "graphviz" rpm ?

For various bitmap image formats, including "bmp", you should also install "graphviz-x"

The X11 dependency comes from cairo, unfortunately.   If you really don't want X11 on your system (perhaps because its a web server), you could install "graphviz-gd" instead, but the image quality isn't as good (no antialiased lines).   Also, GD doesn't support bmp, so you would need to use gif, png, or jpg instead.

Thanks for the response.

Thanks for the response. Unfortunately, the graphviz-x-2.34.0-1.el6.x86_64.rpm and graphviz-gd-2.34.0-1.el6.x86_64.rpm packages are both saying I'm missing dependencies. graphviz-gd-2.34.0-1.el6.x86_64.rpm is saying I need libgd.so.2()(64bit) and graphviz-x-2.34.0-1.el6.x86_64.rpm is saying all of these:

libGL.so.1()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libGLU.so.1()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libgdkglext-x11-1.0.so.0()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libglade-2.0.so.0()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libglut.so.3()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libgtkglext-x11-1.0.so.0()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
libpoppler-glib.so.4()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64
librsvg-2.so.2()(64bit) is needed by graphviz-x-2.34.0-1.el6.x86_64

You're right that I only installed the main package. The reason wasn't to avoid installing others, it's just because when I tried copying graphviz-rhel.repo into my /etc/yum.repos.d directory like it said, running

yum list available 'graphviz*'
yum install 'graphviz*'

said there were no packages available. If you know the easiest way to get either of these issues resolved, I'll take it. I don't have a preference, just want to get Graphiz working.

 

EDIT: Cancel that. The repo installation does work. I've been reading this as graphiz and not typing the V all this time. I feel extremely stupid now. Got it working, and thanks for the assistance.

Recent comments