W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Defaulting new image solution to 192dpi

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 17 May 2012 15:06:24 -0700
Message-ID: <CAAWBYDC-awDGnhzrnqaDLauEbS3o2=SG=NTNPqr4xqCHRLJitA@mail.gmail.com>
To: Jeremy Keith <jeremy@adactio.com>
Cc: WHATWG List <whatwg@whatwg.org>
On Thu, May 17, 2012 at 11:32 AM, Jeremy Keith <jeremy@adactio.com> wrote:
> Kornel wrote:
>> Note that the scale multiplier can be omitted already when only the size is specified
> I'm confused by what you mean by scale multiplier. The x value describes the pixel density of the device/screen, not the image, right?

You can think of it either way in this case.  Devices with a pixel
density less than the Nx descriptor of an image won't download that
image if they have a choice (unless you're zooming or something, where
the effective pixel density is higher).

However, the Nx descriptor does have an effect on the image, by
adjusting the intrinsic size of the image.  If the image is 600 pixels
(image pixels) wide and sent with a 2x descriptor, its intrinsic size
will be 300px (CSS px).  You'll only notice this if you're using
auto-sizing, though.

Received on Thursday, 17 May 2012 22:07:16 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC