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

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

From: Liam R E Quin <liam@w3.org>
Date: Fri, 26 Jul 2013 11:57:47 -0400
Message-ID: <1374854267.15669.722.camel@localhost>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style@w3.org
On Fri, 2013-07-26 at 15:36 +0100, Simon Sapin wrote:

>      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>
This is pretty much certain to give unsatisfactory results in cases
where one or both values are correct.

Probably you should scale down in one dimension to preserve aspect
ratio, as Florian said while I was writing this reply.

This sort of TIFF image is sometimes produced by fax machines, as
horizontal resolution is more important than vertical for
Western/Latin-script text, but I don't know how frequently one finds
them these days.


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Received on Friday, 26 July 2013 15:58:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:32 UTC