Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001173graphvizDotpublic2007-10-03 15:292011-04-28 04:03
ReporterSteve Graham 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-XPOS Version
Summary0001173: SVG output and Image files
Description



My dot file contains image src=... html for the label.
The SVG that gets generated from DOT produces the image elements that have
Y values that are far too positive (they all need to be negative). When I
modify the Y value of the SVG image to equal the Y value of
the top left corner of the surrounding polygon, the image appears
in the right spot.
Additional Information

Here is some SVG that works: note the transformation (take the Y value of
the second point of the polygon (appears a couple of elements below the
image element) and use that as the corrected Y value. The value
of the Y coordinate of the image is now -82, a correct value.
<CD>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [^] [
 <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"> [^]
]>
<!-- Generated by Graphviz version 2.12 (Mon Dec 4 22:04:37 UTC 2006)
     For user: Bill Gates -->
<!-- title: BogusImage Pages: 1 -->
<svg width="2.64in" height="1.30in"
 xmlns="http://www.w3.org/2000/svg" [^] xmlns:xlink="http://www.w3.org/1999/xlink"> [^]
<g id="graph0" class="graph" transform="scale(1.33333 1.33333) rotate(0) translate(4 90)">
<title>BogusImage</title>
<polygon style="fill:white;stroke:white;" points="-4,4 -4,-90 186,-90 186,4 -4,4"/>
<!-- nodel -->
<g id="node1" class="node"><title>nodel</title>
<image xlink:href="image1.PNG" width="55.9859px" height="53px" preserveAspectRatio="xMidYMid meet" x="13.007" y="-82"/>
<text text-anchor="middle" x="41" y="-10.5" style="font-family:Nimbus Roman No9 L;font-weight:regular;font-size:7.29pt;">node1</text>
<polygon style="fill:none;stroke:black;" points="8,-4 8,-82 74,-82 74,-4 8,-4"/>
</g>
<!-- node2 -->
<g id="node2" class="node"><title>node2</title>
<image xlink:href="image1.PNG" width="55.9859px" height="53px" preserveAspectRatio="xMidYMid meet" x="113.007" y="-82"/>
<text text-anchor="middle" x="141" y="-10.5" style="font-family:Nimbus Roman No9 L;font-weight:regular;font-size:7.29pt;">node2</text>
<polygon style="fill:none;stroke:black;" points="108,-4 108,-82 174,-82 174,-4 108,-4"/>
</g>
</g>
</svg>
</CD>

[ellson] I'm not seeing a problem with the latest development snapshots. Can you pick up a snapshot from www.graphviz.org and see if the problem is fixed for you?

[Steve] Thanks for the quick response. Migrating to 2.1.15 indeed did fix the
problem.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
Don't generate a positive Y value for the image element. Use the Y value
of the left hand corner of the polygon
FORMER-ID1204
INPUT-FILEhttp://www.graphviz.org/bugs/b1204.dot [^]
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1204.svg [^]
STATUS-COMMENTFixed
VERSION     2.1.2
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 => user695


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