Re: [graphviz-interest] Trouble scaling placed images
John Ellson <[email protected]> Thu, 09 Jan 2014 10:12:29 -0500
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
Paul,
What graphviz release is this? There were some fixes in this area
recently, so are you seeing this problem with the latest development
snapshots?
I ran a quick test locally with 2.35.20140108.0545, but wasn't able to
reproduce the issue.
echo 'digraph{hello->world}' | dot -Tjpg >hello.jpg
echo 'digraph{a [label=<<TABLE><TR><TD WIDTH="50" HEIGHT="50"
FIXEDSIZE="TRUE"><IMG SCALE="TRUE"
SRC="hello.jpg"/></TD></TR></TABLE>>]}' | dot -Tpng
(I do get a "Warning: cell size too small for content" which doesn't
seem quite right given the scale=true")
test.png output
John
On 01/09/2014 08:28 AM, paul womack wrote:
> I am trying to use GraphViz to draw family trees. After some
> trouble with my data not following the rules
> I gave GraphViz (found and fixed, thanks to Mr Ganser)
> I have moved on to try to make the output
> "pretty".
>
> For some individuals in my dataset I have (mainly JPEG) portrait shots,
> which I would like to add to their "person" node.
>
> An HTML record is a natural for this, so I used
> a table, which either has either a single cell (for the text)
> or 2 cells, using the extra cell for the portrait.
> The portrait TD cell is made :
>
> <TD WIDTH="50" HEIGHT="50" FIXEDSIZE="TRUE"><IMG SCALE="TRUE"
> SRC="$path"/></TD>@
>
> (i.e. fix the size of the cell, and scale the image to fit)
>
> Sadly, this simply doesn't work.
>
> If I make the cell like this:
>
> <TD WIDTH="50" HEIGHT="50" FIXEDSIZE="TRUE" BGCOLOR="#ff0000">dummy</TD>
>
> I get sensible results.
>
> When I actually place the images, they're around 8-9 times (!!) bigger
> than the cell seen in the "dummy" run.
>
> I have tested to both PNG and PDF outputs.
>
> BugBear
> _______________________________________________
> [email protected]
> http://lists.research.att.com/mailman/listinfo/graphviz-interest
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest