On Tue, Jul 14, 2009 at 09:42:12AM +0530, Kapil Hari Paranjape wrote:
> Hello,
> 
> On Thu, 09 Jul 2009, Anthony DeRobertis wrote:
> >     <img src="manual-web0x.png" alt="PIC" class="graphics"
> >      width="888.31874pt" height="630.355pt"><!--tex4ht:graphics
> >      name="manual-web0x.png" src="img/home.eps" -->
> > 
> > The actual image size is 885x628 pixels.
> 
> What was the bounding box of this image as given by the .eps file?
> Perhaps you mean 885x628 (Postscript) points.

The actual image is a PNG file, and it is in pixels (of course).
Originally, the path was:

        PNG
        -> EPS (by LyX; assuming 1px = 1pt)
        -> PNG (by tex4ht; giving size in points after PS/TeX pt conversion)

The actual PNG file produced by tex4ht is the same size as the input
file.

Now, I figured out how to get PNGs to work w/o the EPS conversion in the
middle, but it requires a BoundingBox, which I gave it by assuming that
one pixel = one PostScript point (matching LyX's assumption).

The same HTML output (as far as width/height) is produced either way.

> 
> I am trying to understand the problem and I cannot see any way of
> converting .eps bounding boxes to pixels without knowing what the
> intended resolution is.

Well, somehow tex4ht already does so — and gets it "right" — as it
manages to create the PNG files from the EPS, and get the right pixel
count. The problem is just that it then writes the size to the HTML file
in TeX points (instead of pixels, which it must have known at some
point, since it wrote the PNG).

> 
> The current values are computed by the functions defined in dvips.def
> which convert from postscript points to TeX points. 

I don't know the code at all, but I'd like to point out that the Debian
default is for dvipng to be used, not dvips/ghostscript. And I haven't
changed that default. Of course, you probably know this, but that
README.Debian note is dated nearly 2 years ago, and its best to avoid an
"ohhhh, it wasn't plugged in!" moment :-D



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to