Graphviz seems doesn't support png and map - graphviz

Hi I must convert a graph (a .dot) to a map and to a png because I must generate dependencies graph with doxygen using graphviz. But I have a error:
error: problems opening map file
If I do dot -v I have
dot - graphviz version 2.38.0 (20140413.2041)
libdir = "/usr/local/lib/graphviz"
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.so.6
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
/usr/local/lib/graphviz/config6
was successfully loaded.
render : dot fig map pic pov ps svg tk vml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp
twopi
textlayout :
device : 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
loadimage : (lib) eps gif jpe jpeg jpg png ps svg
There isn't map and png for render
Moreover if I do dot -Tpng
Format: "png" 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
tk vml vmlz xdot xdot1.2 xdot1.4
It seem that I have not the library for png and map.
How can I fix the problem?
(I do not remember how at the time I installed grapghviz)
(I'm working on Linux SO)

Graphviz plugins need to be registered before they can be used. In Windows, open the command prompt as admin and type dot -c to register. You can verify it by typing dot -v

I had the same problem on Centos 7 and I was able to solve it by
installing the graphviz-gd package with the command yum install graphviz-gd
After the installation I executed dot -c and now dot -v shows the following devices:
canon cmap cmapx cmapx_np dot eps fig gd gd2
gif gv imap imap_np ismap jpe jpeg jpg pic plain
plain-ext png pov ps ps2 svg svgz tk vml vmlz
vrml wbmp xdot xdot1.2 xdot1.4
Moreover I use the cmapx to create the map file.
Regards,
nemo

I had same issue on macos 10.14. Solved the issue by reinstalling graphviz, and somehow it says 'not linked' as following
Warning: graphviz 2.47.3 is already installed, it's just not linked. To link this version, run: brew link graphviz
So end up with the following two commands:
brew install -f -s graphviz
brew link --overwrite graphviz

Related

Graphviz does not display SVG images

I am trying to create a Graphviz chart with an SVG image embedded in a node, but the SVG image does not display whereas using a PNG image works fine. For example, I download this test image, and then use the following code
digraph G {
a [label=<<TABLE><TR><TD><IMG SRC="/full/path/Test.svg"/></TD></TR></TABLE>>];
a -> b;
}
Executing
dot graph.gv -Tpdf -o graph.pdf
Produces a PDF with a empty spot where Test.svg should be. Graphviz does not report any error message. I am doing this on macOS with Graphviz 2.40.1 installed via Homebrew. I have had no better luck on Windows 7, although on Windows Graphviz reports an error, Warning: No loadimage plugin for "svg:cairo,
I spent hours banging away on this problem on OS X High Sierra. Finally got it working. I had to install graphviz using option --with-librsvg:
$ brew install graphviz --with-librsvg --with-app --with-pango

imagemagick mac os open gif files

i'm trying to convert a png file to gif with:
convert 1.png 1.gif
convert: no decode delegate for this image format `1.png' # error/constitute.c/ReadImage/533.
convert: missing an image filename `1.gif' # error/convert.c/ConvertImageCommand/2919.
and it's not working on my imagemagick installation on OSX as you can se above, I installed it with brew and when running convert it shows the following delegates:
$ convert -list configure| grep DELEGATES
DELEGATES bzlib freetype jpeg jng jp2 png tiff x11 xml zlib
On another computer the command works and this are the delegates:
$ convert -list configure| grep DELEGATES
DELEGATES bzlib mpeg freetype jng jpeg lzma png tiff webp xml zlib
The missing delegates on the computer that doesnt works are: mpeg, lzma and webp. However I wonder which of those could be required for open a gif file.
The problem is the decode (i.e. read) delegate, so it is failing to read the input file rather than to write the output file.
Try:
brew rm imagemagick
brew install libpng
brew install imagemagick

pdfcairo 'unknown or ambiguous terminal type' in gnuplot

After upgrading gnuplot from 4.6 to 5.0.1, I encounter the following error:
set terminal pdfcairo size 3.0in,2.25in font ',8'
^
"plot.plt", line 114: unknown or ambiguous terminal type; type just 'set terminal' for a list
How can I fix it?
PS: pdfcairo works fine in the previous version (4.6).
I install the gnuplot by the following command:
#build it:
./configure --with-cairo
make
#install it:
sudo make install
As described in GNUPLOT Version 5.0.1 Release Notes, the pdfcairo is included by default.
Cairo/pango/wxWidgets This set of terminals includes
pngcairo, pdfcairo, epscairo, and cairolatex for output to a file
wxt for interactive display All of these will be built by default if the
configuration script finds the required libcairo, libpango, libcairo,
libwxgtk, and related support libraries To disable these terminals:
./configure --without-cairo ./configure --with-cairo --disable-wxt
I fix it with the kind reminder of #Christoph.
To tackle this issue, install the dependency libraries for cairo-based terminals by the follwoing command:
sudo apt-get install libcairo2-dev
sudo apt-get install libpango1.0-dev
And then compile gnuplot again:
#build it:
cd gnuplot-5.0.1 ; ./configure ; make
#install it:
sudo make install
Now, everything is fine. Enjoy it:-)
gnuplot> set term
Available terminal types:
cairolatex LaTeX picture environment using graphicx package and Cairo backend
canvas HTML Canvas object
cgm Computer Graphics Metafile
context ConTeXt with MetaFun (for PDF documents)
corel EPS format for CorelDRAW
dumb ascii art for anything that prints text
dxf dxf-file for AutoCad (default size 120x80)
eepic EEPIC -- extended LaTeX picture environment
emf Enhanced Metafile format
emtex LaTeX picture environment with emTeX specials
epscairo eps terminal based on cairo
epslatex LaTeX picture environment using graphicx package
fig FIG graphics language for XFIG graphics editor
hpgl HP7475 and relatives [number of pens] [eject]
latex LaTeX picture environment
mf Metafont plotting standard
mp MetaPost plotting standard
pcl5 HP Designjet 750C, HP Laserjet III/IV, etc. (many options)
pdfcairo pdf terminal based on cairo
pngcairo png terminal based on cairo
postscript PostScript graphics, including EPSF embedded files (*.eps)
Press return for more:

Spree demo missing product images

I followed the instructions on http://guides.spreecommerce.com/developer/getting_started_tutorial.html
Additionally, I followed instructions on http://codeofalice.com/code/installing-rmagick-on-windows-7/ to install imagemagick and rmagick gems. No errors reported.
When I run identify I get
Version: ImageMagick 6.7.7-8 2012-06-20 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Usage: identify.exe [options ...] file [ [options ...] file ... ]
Image Settings:
-alpha option on, activate, off, deactivate, set, opaque, copy
transparent, extract, background, or shape
-antialias remove pixel-aliasing
The demo site runs, but the images are missing. Additionally, I can't upload images (no errors) - they just don't upload. I believe it is something related to ImageMagick, but am not sure.
Run bundle exec rake spree_sample:load It worked for me!

Why am I not getting any images in my dot output?

I've installed the Mac OS X binaries from the graphviz website and downloaded this test .dot file.
http://www.karakas-online.de/downloads/from-past-to-future.tgz
from this page:
http://www.karakas-online.de/forum/viewtopic.php?t=2647
It produces an image, but none of the embedded images are visible.
Here's the output from the command "dot -v"
dot - graphviz version 2.26.3 (20100126.1600)
Activated plugin library: libgvplugin_pango.6.dylib
Using textlayout: textlayout:cairo
Activated plugin library: libgvplugin_dot_layout.6.dylib
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.6.dylib
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
/usr/local/lib/graphviz/config6
was successfully loaded.
render : cairo dot fig gd map ps quartz svg tk vml vrml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gd gd2 gif gv imap imap_np ismap jp2 jpe jpeg jpg pct pdf pict plain plain-ext png ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz vrml wbmp x11 xdot xlib
loadimage : (lib) bmp eps gd gd2 gif jpe jpeg jpg pdf png ps svg
This seems to imply that I can load images? Am I doing something wrong?
Thanks!
Try removing style=invis for each icon node. I don't know what was the author's idea in making it invisible. Worked for me on Win7.

Resources