Re: tex4ht: wrong image sizes
- From: Szabolcs <szhorvat@xxxxxxxxx>
- Date: Tue, 26 Feb 2008 11:39:04 -0800 (PST)
On Feb 26, 4:20 pm, Eitan M Gurari <gur...@xxxxxxxxxxxxxxxxxx> wrote:
Also, I noticed that the image size is specified in points
Doesn't the size of the "pt" unit depend
on things like the screen resolution?
No.
I haven't actually tried changing Windows's DPI settings because it
would have required installing some new fonts, but according to this
article, the size of "pt" does depend on it:
http://kb.mozillazine.org/Layout.css.dpi
The article explicitly says that a [printer] point is an absolute
unit:
CSS can use a variety of units for specifying dimensions. These units
are classified as either absolute or relative. Absolute units (inches,
centimeters, millimeters, points, and picas) ...
and that the display should calculate how many pixels are to be used for each point
This preference determines what DPI should be used for calculating
the dimensions of elements set using absolute width units. Some
examples: At 96dpi, a 12-point font is displayed with 16 pixels in
size (calculated as 12/72 = 16/96) ...
But doesn't this mean that an image whose size is specified as 200pt
in the attributes of the img tag will be 200/72*96 = 266 pixels wide
when Windows uses the 96 DPI setting, and 200/72*120 = 333 pixels wide
when it uses the 120 DPI setting? So the size of the image (in
pixels), depends on the screen resolution (or Windows settings)? This
would make it impossible to avoid image resizing on at least some
computers if the image size is specified in points. Which, of course,
can be a desirable thing for as long as the browser uses a decent
image sizing algorithm (i.e. not nearest neighbour).
.
- Follow-Ups:
- Re: tex4ht: wrong image sizes
- From: Eitan M Gurari
- Re: tex4ht: wrong image sizes
- References:
- tex4ht: wrong image sizes
- From: Szabolcs
- Re: tex4ht: wrong image sizes
- From: Eitan M Gurari
- Re: tex4ht: wrong image sizes
- From: Szabolcs
- Re: tex4ht: wrong image sizes
- From: Eitan M Gurari
- tex4ht: wrong image sizes
- Prev by Date: Re: No flags specified for non-embedded font
- Next by Date: Re: Underfull \hbox (badness 10000)
- Previous by thread: Re: tex4ht: wrong image sizes
- Next by thread: Re: tex4ht: wrong image sizes
- Index(es):
Relevant Pages
|