dvipng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dvipng] Different image dimensions between dvipng 1.14 and 1.15


From: Jan-Åke Larsson
Subject: Re: [Dvipng] Different image dimensions between dvipng 1.14 and 1.15
Date: Fri, 4 Jan 2019 23:01:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Dear Markus,

I have looked through the complete list of changes in the source from 1.14 to 1.15 (you could browse through the source git archive at savannah.org), and there is nothing that could cause this.

Moreover, I obtain

$ dvipng -T tight -D 300 -o render.png render.dvi && identify render.png
This is dvipng 1.15 Copyright 2002-2015 Jan-Ake Larsson
[1]
render.png PNG 505x43 505x43+0+0 8-bit sRGB 16c 2.08KB 0.000u 0:00.000

That is, the same pixel height and width as you get with 1.14.

I have no explanation. Perhaps the two are compiled differently, say one of them uses Freetype while the other does not?

The switch -d will give you lots of information including if Freetype (FT) is used. Giving say '-d31' will even give you the actual bitmap of the glyphs. The highest glyphs seem to be the braces.

This is what I can do just now.

Best regards
Jan-Åke


On 2019-01-04 19:55, Markus Triska wrote:
Dear maintainers,

thank you for dvipng! To reproduce the issue, please download render.dvi:

    https://www.metalevel.at/ei/render.dvi

and then use:

    $ dvipng -T tight -D 300 -o render.png render.dvi && identify render.png

With dvipng 1.15, I get:

    This is dvipng 1.15 Copyright 2002-2015 Jan-Ake Larsson
    [1] 
    render.png PNG 505x41 505x41+0+0 8-bit sRGB 16c 2103B 0.000u 0:00.009

Whereas with dvipng 1.14, I got:

    This is dvipng 1.14 Copyright 2002-2010 Jan-Ake Larsson
    [1] 
    render.png PNG 505x43 505x43+0+0 8-bit sRGB 16c 2.1KB 0.000u 0:00.000

Please note that the resulting image dimensions now differ. In
particular, the height of this image (and others like it) has changed,
in this case from 43 (with version 1.14) to 41 (with version 1.15).

I use dvipng in a pixel-based layout application, and this difference
between versions adversely affects the layout of resulting documents.

Is there anything I can do to consistently obtain the exact same
results from version 1.14 also in newer versions?

For completeness, the TeX source of the file (render.tex) is:

    \documentclass{article}
    \thispagestyle{empty}
    \begin{document}
    $\delta: Q\times\Gamma \rightarrow Q\times\Gamma\times\{L,R\}$
    \end{document}

However, the DVI file alone suffices to reproduce the issue.

Thank you and all the best!
Markus

_______________________________________________
Dvipng mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dvipng
--
Jan-Åke Larsson
Professor, Head of Department


Linköping University
Department of Electrical Engineering
SE-581 83 Linköping
Phone: +46 (0)13-28 14 68
Mobile: +46 (0)13-28 14 68
Visiting address: Campus Valla, House B, Entr 27, 3A:482
Please visit us at www.liu.se

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]