W3C home > Mailing lists > Public > www-style@w3.org > April 2014

Re: Image orientation for backgrounds

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 15 Apr 2014 14:28:21 -0400
Message-ID: <534D7A45.6050608@mit.edu>
To: liam@w3.org
CC: www-style list <www-style@w3.org>
On 4/15/14 2:13 PM, Liam R E Quin wrote:
> Wouldn't a good way for Web apps be to have a JavaScript interface to
> EXIF metadata?

That's not enough, unfortunately, because there is no way to specify a 
rotation for just a background and if you process the JPEG image to 
produce a rotated image (e.g. by painting to a canvas, getImageData, 
etc) you end up with some quality loss during the reencode.  And if you 
don't reencode you pay a pretty hefty memory price for keeping the 
decompressed data in memory...

-Boris
Received on Tuesday, 15 April 2014 18:28:56 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC