W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2011

[whatwg] Add "naturalOrientation" property to <img>

From: Glenn Maynard <glenn@zewt.org>
Date: Fri, 26 Aug 2011 12:57:45 -0400
Message-ID: <CABirCh9jr0H3O44hYFJWGvpe_Vo65n-UGoe-fxfn=p-J0i59_Q@mail.gmail.com>
On Fri, Aug 26, 2011 at 11:37 AM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> Summary
> =======
> The <img> element should expose a readonly "naturalOrientation"
> property that returns the EXIF orientation of the image (an integer
> 1-8), or 1 if the image has no EXIF orientation metadata or it is
> corrupted or the image type doesn't expose EXIF data at all.
>

Rather than baking magic EXIF constants into the API, would it make more
sense to translate to degrees?

-- 
Glenn Maynard
Received on Friday, 26 August 2011 09:57:45 UTC

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