Re: [graphviz-interest] Trouble scaling placed images

paul womack <[email protected]> Fri, 10 Jan 2014 11:26:24 +0000
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
paul womack wrote:
> paul womack wrote:
>> paul womack wrote:
>>> John Ellson wrote:
>>>> Ubuntu snapshots are available here:
>>>>
>>>>      https://launchpad.net/~gviz-adm/+archive/graphviz-dev
>>>
>>> "Dev" is a bit scary, and (more fundamentally) my "Quantal" Ubuntu isn't listed there.
>>>
>>> Looks like I'll have to compile from src if I want a version later than my
>>>
>>> dot - graphviz version 2.26.3 (20100126.1600)
>>>
>>> Do you know which version fixed the placed image size issue?
>>
>> Well, that was no fun. I've wrestled the current stable release
>> (graphviz-2.34.0.tar.gz) into compiling, and although I had
>> issue with "sudo make install" such I had to explcitly
>> use "/usr/local/bin/dot" as the command...
>>
>> it gives too-large-images in exactly the same way as
>> 2.26 :-(
>
> Hmm. I just tried your tests, and they work OK,
> at least with the newly compiled "dot".
>
> I'm either generating bad dot files, or triggering
> a different bug. I will report back.

It's "to do" with total output image resolution. When I generate
PNG output, if I render at 500 DPI, the placed images come out too big.

But if I render at 1000 DPI the placed images come out
exactly 4 times bigger (measured in pixels), not the correct twice
as big (measured in pixels).

So it looks like the "calculate the scale factor" code is badly broken,
at least in 2.34

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.

;-)

  BugBear

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