[bug-notifications] [graphviz 0004276]: PNG backend: dot files from scfdot converted to png contain extraneous line

Mantis Bug Tracker noreply at opencsw.org
Tue Feb 16 15:20:54 CET 2010


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=4276 
====================================================================== 
Reported By:                skayser
Assigned To:                
====================================================================== 
Project:                    graphviz
Issue ID:                   4276
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-02-15 13:56 CET
Last Modified:              2010-02-16 15:20 CET
====================================================================== 
Summary:                    PNG backend: dot files from scfdot converted to png
contain extraneous line
Description: 
When i feed .dot files generated by scfdot to dot with -Tpng, the resulting
.png files contain an extra line at the top which makes the png unreadable
by image viewers. Deleting this line fixes the issue. Is this a bug in dot,
scfdot, or the png backend?

$ dot -V
dot - graphviz version 2.26.3 (20100126.1600)

# pkgutil -t http://mirror.opencsw.org/opencsw/testing -Ni scfdot
...

$ dot -Tpng -o test.png /opt/csw/share/doc/scfdot/examples/snv_24_x86.dot
$ file test.png
test.png:       data
$ head -1 test.png
-36 2444.2 translate newpath user_shape_0
$ gsed -i -e '1d' test.png
$ file test.png
test.png:       PNG image data

Simple graphs don't expose this problem.

$ echo "digraph G {Hello->World}" | dot -Tpng >hello.png
$ file hello.png
hello.png:      PNG image data
====================================================================== 

---------------------------------------------------------------------- 
 (0007449) skayser (administrator) - 2010-02-16 15:20
 http://www.opencsw.org/mantis/view.php?id=4276#c7449 
---------------------------------------------------------------------- 
Tried the suggestion to use image instead shapefile. Now the resulting png
image file is valid, but the legend is missing. Guess that has got to do
with the missing "loadimage plugin" warning. Do I have to install an
additional package to get that plugin or do you need to repackage
graphviz/cairo?

$ cp /opt/csw/share/doc/scfdot/examples/snv_24_x86.dot test.dot
$ cp /opt/csw/share/scfdot/legend.ps legend.ps
$ ps2epsi legend.ps
$ vi test.dot
$ grep ^legend test.dot
legend [shape=none,image="legend.epsi",label=""];
$ dot -Tpng -o test.png test.dot
Warning: No loadimage plugin for "ps:cairo"
$ file test.png
test.png:       PNG image data



More information about the bug-notifications mailing list