bug-texinfo
[Top][All Lists]
Advanced

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

Re: texi2html output validity


From: Karl Berry
Subject: Re: texi2html output validity
Date: Tue, 23 Dec 2014 17:04:38 -0700

    and if it was possible why would it the role of makeinfo to
    do that?

It is useful to put the actual width/height of images in the HTML output
because then browsers can use that info for layout without having to
read the actual image.  On files with lots of images, it can make a
noticeable difference in rendering.

    I do not know how to read the height and width from the actual
    images, 

Indeed, we surely don't want to load an open-ended number of image
reading libraries.  I had hoped we could just run the file command, but
that does not report dimensions for jpeg images.

However, the info can be found easily enough by running jpegtopnm |
pnmfile.  If netpbm is not available, well, the dimensions won't be
included.

We don't have to achieve perfection for it to be useful; if the
height/width are included for some images in some environments,
that still seems worthwhile to me.

E.g., we could easily write a little helper script "imagesize", put it
in libexec, and have makeinfo call it.  That might be simpler than
embedding the image-size-extraction logic into makeinfo.

wdyt?

k



reply via email to

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