W3C home > Mailing lists > Public > www-style@w3.org > July 2013

[css3-images] 'image-resolution: from-image' based on resolution X / Y

From: Simon Sapin <simon.sapin@exyr.org>
Date: Fri, 26 Jul 2013 15:36:38 +0100
Message-ID: <51F28976.5030900@exyr.org>
To: www-style@w3.org
Hi,

In TIFF and JPEG (EXIF), the resolution metadata can be specified as two 
fields: Resolution X and Resolution Y. Although I expect the two to be 
the same (when set at all) in most real images, what should a UA do when 
they’re different? 'image-resolution: from-image' expects a single value.

I think there is no good answer to this, but I dislike leaving it 
undefined. I suggest specifying something arbitrary. For example:

     If the image specifies two different resolutions for the horizontal 
and vertical direction, the average of the two values is used:
     <code>(horizontal + vertical) / 2 <code>


-- 
Simon Sapin
Received on Friday, 26 July 2013 14:37:02 UTC

This archive was generated by hypermail 2.3.1 : Friday, 26 July 2013 14:37:03 UTC