Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002112graphvizMac GUIpublic2011-06-28 13:452011-10-20 12:15
ReporterWiFiGuy 
Assigned Todperry 
PrioritynormalSeverityimportantReproducibilityalways
StatusclosedResolutionfixed 
PlatformMac ProOSMac OS XOS VersionLion
Summary0002112: Graphviz.app doesn't render relative path node images.
DescriptionGraphviz.app doesn't render relative images when opening dot files.

Example:

The following graph (graph.dot) and an image file (image.gif) located in the same directory.

graph G {
FOO [shape=square,image="image.gif"]
}

The above does not render the image "image.gif" when opened in Graphviz.app.

Using fully qualified paths works, for example:

graph G {
FOO [shape=square,image="/Users/local/Desktop/image.gif"]
}

Note that this *DOES* work with dot - if you render the file to an image with dot the relative path works.
Steps To ReproduceCreate a graph file with a relative image path, such as:

graph G {
FOO [shape=square,image="image.gif"]
}

Attempt to open the dot file in Graphviz.app.
Additional InformationOnly absolute paths work with Graphviz.app.

I couldn't get things like... ~/Desktop, or ./, or anything of that nature to work.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION
Attached Filesdot file icon graph.dot [^] (48 bytes) 2011-06-28 13:45

- Relationships

-  Notes
User avatar (0000097)
erg (administrator)
2011-10-20 12:15

The graphviz app now uses the new imagepath attribute. It sets this to the directory where the original graph was found. This makes the reasonable assumption that the image path specified in the dot file is relative to where the dot file is located. If not, the dot file can specify the imagepath attribute explicitly.

- Issue History
Date Modified Username Field Change
2011-06-28 13:45 WiFiGuy New Issue
2011-06-28 13:45 WiFiGuy File Added: graph.dot
2011-10-20 10:59 erg Assigned To => dperry
2011-10-20 10:59 erg Status new => assigned
2011-10-20 12:15 erg Note Added: 0000097
2011-10-20 12:15 erg Status assigned => closed
2011-10-20 12:15 erg Resolution open => fixed


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