Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000645graphvizDotpublic2006-12-08 03:062011-04-28 04:03
ReporterEmmanuel Pietriga 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-*-WinXPOS Version
Summary0000645: Problems with images when asking for an SVG output
Description



A ZGRViewer user reported that there was a problem with images used as node shapes.
I traced down the problem to the SVG output of dot.



The problem is different depending on the version of GV.



With 2.8, only half of the node images are displayed, namely those inside HTML tables. The
standalone ones declared through shapefile are not displayed at all (I checked the SVG
serialization, they are not declared at all). But those that are displayed are correctly located
w.r.t other elements in the graph. See [1] for a screen capture of the SVG rendering by
ZGRViewer.



For comparison, [2] shows the correct output obtained by asking dot to generate a PNG image
instead of an SVG document.



With 2.12, the SVG document contains all images, but as you can see in [3] there vertical
coordinate is inverted. This is the ZGRViewer rendering. When I try to look at this SVG
document in either Adobe Illustrator or Firefox, the images simply don't show at all.



The command lines used were :
<CD>
dot -Tsvg input.dot -o output.svg
dot -Tpng input.dot -o output.png



[1] \<A HREF=http://www.lri.fr/~pietriga/2006/12/gv2_8_svg.png\>http://www.lri.fr/~pietriga/2006/12/gv2_8_svg.png\<\A\> [^]
[2] \<A HREF=http://www.lri.fr/~pietriga/2006/12/gv_2_8_png.png\>HREF=http://www.lri.fr/~pietriga/2006/12/gv_2_8_png.png\<\A\> [^]
[3] \<A HREF=http://www.lri.fr/~pietriga/2006/12/gv2_12_svg.png\>http://www.lri.fr/~pietriga/2006/12/gv2_12_svg.png\<\A\> [^]
</CD>



Additional Information

I can provide you with image.png, I just didn't know how to upload it through the bug
report form.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT In 2.12, it is probably just a sign error in the Y coordinate of image elements.
FORMER-ID1054
INPUT-FILEhttp://www.graphviz.org/bugs/b1054.dot [^]
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1054.png [^]
STATUS-COMMENT*
VERSION     2.12
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker