- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Fri, 26 Jul 2013 17:43:37 +0100
- To: www-style@w3.org
Le 26/07/2013 17:34, Tab Atkins Jr. a écrit : > On Fri, Jul 26, 2013 at 7:36 AM, Simon Sapin <simon.sapin@exyr.org> wrote: >> 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> > > I didn't realize this was even possible! We could either allow > image-resolution to take two values, or decide on how to merge two > values into one. > > I'm okay with ignoring one of the dimensions, but is there one we > should prefer? Liam suggests that horizontal resolution is more > important to preserve, at least for images containing text. Ok, I’m convinced that averaging is terrible :) I’m in favor of allowing two values (including specifying two in CSS.) If the WG rejects that, use the horizontal one. -- Simon Sapin
Received on Friday, 26 July 2013 16:44:00 UTC