Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000497graphvizDotpublic2004-10-11 17:282011-04-28 04:02
ReporterCeline2 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-Debian unstableOS Version
Summary0000497: Bad image centering with some formats
Description



When creating bitmap files (-Tpng, -Tjpg, ...) image is not centered
whereas it centers correctly when the export format is svg.
Steps To Reproduce

graph G
{
        center=true;
        node [label="",shape=epsfile,shapefile="host.png"]
        subgraph cluster0
        {
                center=true;
                node0;
                label="192.168.25.1"
                labeljust=center;
        }
}
Additional Information

[erg] Here is the \<A HREF=b548a.png\>shapefile\</A\>.

The png file is not being centered in the cluster and/or node. This
is not a problem with center=true. In particular, note that the
center=true in the cluster has no effect.

The problem is that DevScale is not initialized when gd_user_shape_size
is called in poly_init. As with fonts, this relies on having an appropriate
DPI value despite not having an associated GVC_t structure.

Actually, even when DevScale is initialized, the image is scaled up to
it the smaller dimension, and anchored on the upper left corner. It has been
changed to now be centered, but we might consider allowing the user to
keep a fixed size and/or putting a margin around the image.
TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b548a.png [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID548
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b548.png [^]
STATUS-COMMENTFixed (12 Oct 2004)
VERSION     1.17.20041011
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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


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