Re: [patch] xhtml fixes


Subject: Re: [patch] xhtml fixes
From: Dom Lachowicz (doml@appligent.com)
Date: Mon Jan 07 2002 - 08:45:07 CST


> This patch on top Dom's changes to add width/height make PNG images
> (at least) in Mozilla and Netscape look rather appalling because the
> size has been changed (ie_exp_HTML.cpp).
>
> Removing the conversion to points gives me :-
>
> width="4.85in" height="4.91in"
>
> which is as per .abw file. With the patch I get :-
>
> width="349" height="353"
>
> Imagemagick gives 485x491.

*If* the image is truly 4.85 inches wide and 4.91 inches tall, the
resulting point values are correct, notwithstanding decimal places
rounded off.

We assume that there are 72 pixels per inch. So:
72 * 4.85 = 349.2 ~= 349
72 * 4.91 = 353.52 ~= 353

So I'm a bit confused as to what's happening here. I'll check it out
further.

Dom



This archive was generated by hypermail 2b25 : Mon Jan 07 2002 - 08:46:40 CST