Re: [graphviz-interest] Trouble scaling placed images

paul womack <[email protected]> Fri, 10 Jan 2014 15:30:41 +0000
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
Emden R. Gansner wrote:
>> Acting on a hunch I dropped the rendering resolution (dpi) to a useless
>> 72 DPI - and it worked (scaled) beautifully, albeit all my text and images were
>> too small to be readable.
>> Heh - (done another test); if I set the dpi to be 72, everything "works"
>> nicely for PDF output!
>>
>> This trick/workround also works with my 2.26.3 version.
> It would be helpful if you could submit a bug report, with a small graph and an image at
> 1000 dpi, so we could check on the scale factor code. Thanks.

Easily reproduced with John's test;

echo 'digraph{hello->world}' | dot -Tjpg >hello.jpg
echo 'digraph{dpi="72"; a [label=<<TABLE><TR><TD WIDTH="50" HEIGHT="50" FIXEDSIZE="TRUE"><IMG SCALE="TRUE" SRC="hello.jpg"/></TD></TR></TABLE>>]}' | dot -Tpng > t.png

That works.

Change the dpi to a bigger number, and life is ... bad.

echo 'digraph{dpi="500"; a [label=<<TABLE><TR><TD WIDTH="50" HEIGHT="50" FIXEDSIZE="TRUE"><IMG SCALE="TRUE" SRC="hello.jpg"/></TD></TR></TABLE>>]}' | dot -Tpng > t.png

  BugBear
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest